/* ==========================================================
   Estilos Mobile-First para Conteo Rápido - Río Negro
   ========================================================== */

:root {
    --primary-color: #1e3a8a;
    --primary-hover: #172554;
    --accent-color: #0284c7;
    --bg-light: #f8fafc;
    --card-border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --success-green: #16a34a;
    --warning-yellow: #ca8a04;
    --danger-red: #dc2626;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

/* Header & Navbar */
.app-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
}

/* Mobile-First Candidate Cards */
.vote-card {
    background: #ffffff;
    border: 1.5px solid var(--card-border);
    border-radius: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
}

.vote-card:active {
    transform: scale(0.99);
}

.vote-card.has-votes {
    border-color: var(--accent-color);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}

.vote-card.special-card {
    background: #fafafa;
    border-style: dashed;
}

.party-logo-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 4px;
    flex-shrink: 0;
}

.candidate-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
}

.order-badge {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
}

/* Touch-Friendly Stepper Buttons */
.stepper-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px !important;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: manipulation;
    transition: all 0.1s ease;
}

.stepper-btn:active {
    transform: scale(0.92);
}

.vote-input {
    width: 80px !important;
    height: 48px;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    text-align: center;
    border-radius: 12px !important;
    background: #ffffff;
    color: #0f172a;
    border: 2px solid #cbd5e1;
    -moz-appearance: textfield;
}

.vote-input::-webkit-outer-spin-button,
.vote-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.vote-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

/* Floating summary bar for Mobile Personero */
.floating-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    padding: 12px 16px;
    z-index: 1040;
    border-top: 1px solid var(--card-border);
}

/* Personero Login Form */
.login-card {
    max-width: 440px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--card-border);
}

.dni-input {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 6px;
    text-align: center;
    height: 64px;
    border-radius: 14px;
    border: 2.5px solid #cbd5e1;
}

.dni-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

/* Success Card */
.success-check-icon {
    width: 72px;
    height: 72px;
    background: #dcfce7;
    color: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 16px auto;
}

/* Admin Dashboard Elements */
.stat-card {
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.table-responsive {
    border-radius: 14px;
    overflow: hidden;
}

.pulse-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Padding to avoid floating footer overlap */
.pb-floating {
    padding-bottom: 95px !important;
}

/* Print Styles for official acta */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: #ffffff;
        color: #000000;
    }
    .stat-card, .table {
        box-shadow: none !important;
        border: 1px solid #000000 !important;
    }
}
