/* Modern Gov Styling for SNA SPARSH */
:root {
    --primary-navy: #0f274a;
    --primary-blue: #1d4ed8;
    --primary-light-blue: #eff6ff;
    --accent-gold: #f59e0b;
    --accent-emerald: #059669;
    --neutral-dark: #0f172a;
    --neutral-light: #f8fafc;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Govt Bar */
.govt-top-bar {
    background-color: #0b1727;
    font-size: 0.8rem;
    letter-spacing: 0.025em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Navbar */
.main-navbar {
    background: linear-gradient(135deg, #0f274a 0%, #1e3a8a 100%);
    border-bottom: 2px solid #f59e0b;
}

.brand-badge {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-title {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    line-height: 1.1;
    color: #ffffff;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14);
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #0f274a 0%, #1e3a8a 60%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Metric / KPI Cards */
.kpi-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.25s ease-in-out;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

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

/* Cards & Containers */
.custom-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
}

.card-header-styled {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 700;
    border-radius: 14px 14px 0 0 !important;
}

/* Master Data Badge */
.master-info-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 12px;
}

.master-info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #166534;
}

.master-info-value {
    font-size: 0.98rem;
    font-weight: 600;
    color: #0f172a;
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.15);
}

.attendance-input {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

/* Turnout meter badge */
.turnout-meter {
    border-radius: 12px;
    padding: 1rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    transition: all 0.3s ease;
}

/* Search Dropdown Results */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    max-height: 380px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-result-item:hover {
    background-color: #eff6ff;
}

/* Acknowledgment Slip (Print Optimized) */
.acknowledgment-sheet {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow-hover);
}

@media print {
    body {
        background: #ffffff !important;
        font-size: 11pt;
    }
    .govt-top-bar, .main-navbar, .footer, .btn, .no-print {
        display: none !important;
    }
    .acknowledgment-sheet {
        box-shadow: none !important;
        border: 1px solid #000000 !important;
        padding: 1.5rem !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}
