/* ERMS Custom Premium CSS Design System */



:root {

    --bg-primary: #F4F6F8;

    --bg-secondary: #E2E8F0;

    --bg-card: #FFFFFF;

    --bg-card-hover: #F8FAFC;

    --border-color: #E2E8F0;

    --border-hover: rgba(244, 115, 33, 0.45);

    

    /* Harmonious Color Palette - ADC Party Theme */

    --color-primary: #f47321;      /* ADC Vibrant Orange */

    --color-primary-hover: #d95f14; /* Darker ADC Orange */

    --color-primary-glow: rgba(244, 115, 33, 0.15);

    --color-accent: #12a650;       /* ADC Grassroots Green */

    --color-success: #059669;      /* Success Green */

    --color-success-bg: rgba(16, 185, 129, 0.12);

    --color-danger: #DC2626;       /* Crimson Red */

    --color-danger-bg: rgba(220, 38, 38, 0.1);

    --color-warning: #D97706;      /* Amber Gold */

    --color-warning-bg: rgba(217, 119, 6, 0.12);

    --color-flagged: #DB2777;      /* Pink Flagged */

    --color-flagged-bg: rgba(219, 39, 119, 0.12);

    --color-pending: #475569;      /* Slate Gray */

    --color-pending-bg: rgba(71, 85, 105, 0.1);

    

    /* Typography */

    --text-primary: #0F172A;       /* Crisp Dark Charcoal */

    --text-secondary: #475569;     /* Slate Secondary */

    --text-muted: #64748B;         /* Slate Muted */

    

    /* Shadows & Effects */

    --shadow-premium: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);

    --shadow-glow: 0 0 24px rgba(244, 115, 33, 0.2);

    --radius-sm: 8px;

    --radius-md: 12px;

    --radius-lg: 16px;

    

    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

}





* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

}



body {

    background-color: var(--bg-primary);

    background-image: 

        radial-gradient(circle at 15% 15%, rgba(244, 115, 33, 0.03) 0%, transparent 45%),

        radial-gradient(circle at 85% 85%, rgba(11, 122, 68, 0.03) 0%, transparent 50%),

        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),

        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);

    background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;

    background-attachment: fixed;

    color: var(--text-primary);

    min-height: 100vh;

    overflow-x: hidden;

    line-height: 1.5;

}



/* Custom Scrollbar */

::-webkit-scrollbar {

    width: 8px;

    height: 8px;

}

::-webkit-scrollbar-track {

    background: var(--bg-primary);

}

::-webkit-scrollbar-thumb {

    background: rgba(255, 255, 255, 0.1);

    border-radius: 4px;

}

::-webkit-scrollbar-thumb:hover {

    background: var(--color-primary);

}



/* App Container Layout */

#app {

    display: flex;

    flex-direction: row; /* Sidebar left, content right */

    min-height: 100vh;

}



/* Premium Solid Teal Sidebar */

.app-sidebar {

    width: 260px;

    height: 100vh;

    background: #0F172A;

    border-right: 1px solid rgba(255, 255, 255, 0.1);

    padding: 28px 20px;

    display: flex;

    flex-direction: column;

    position: sticky;

    top: 0;

    z-index: 100;

    flex-shrink: 0;

}



.sidebar-brand {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 32px;

}



.sidebar-crest {

    width: 32px;

    height: 32px;

    min-width: 32px;

    min-height: 32px;

    max-width: 32px;

    max-height: 32px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background: #ffffff;

    padding: 2px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);

    flex-shrink: 0;

}



.sidebar-crest img,

.brand-crest-img {

    width: 100% !important;

    height: 100% !important;

    max-width: 32px !important;

    max-height: 32px !important;

    object-fit: contain !important;

    display: block !important;

}



.sidebar-brand-text {

    display: flex;

    flex-direction: column;

    justify-content: center;

    line-height: 1.15;

}



.sidebar-brand-title {

    font-size: 1.05rem;

    font-weight: 800;

    letter-spacing: 0.5px;

    color: #ffffff !important;

}



.sidebar-brand-sub {

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 0.8px;

    color: rgba(255, 255, 255, 0.7) !important;

}



.brand-logo {

    width: 38px;

    height: 38px;

    background: rgba(255, 255, 255, 0.15);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);

}



.brand-logo svg {

    color: #ffffff;

    width: 20px;

    height: 20px;

}



.brand-name {

    font-size: 1.25rem;

    font-weight: 800;

    letter-spacing: -0.025em;

    color: #ffffff;

    background: none;

    -webkit-background-clip: initial;

    -webkit-text-fill-color: initial;

}



.sidebar-nav {

    flex-grow: 1;

    display: flex;

    flex-direction: column;

    gap: 6px;

}



/* Sidebar Links & Buttons */

.sidebar-btn {

    width: 100%;

    justify-content: flex-start !important;

    padding: 10px 0 !important;

    font-size: 0.95rem !important;

    font-weight: 600 !important;

    color: #ffffff !important;

    background: transparent !important;

    border: none !important;

    box-shadow: none !important;

    border-radius: 0 !important;

    transition: var(--transition-smooth);

    position: relative;

    padding-left: 0 !important;

}



.sidebar-btn:hover {

    color: #ffffff !important;

    background: transparent !important;

    border: none !important;

    box-shadow: none !important;

    transform: translateX(3px);

}



.sidebar-btn.active {

    color: #ffffff !important;

    font-weight: 700 !important;

    background: transparent !important;

    border: none !important;

    box-shadow: none !important;

}



.sidebar-btn svg {

    margin-right: 12px;

    flex-shrink: 0;

    color: #ffffff !important;

    stroke: #ffffff !important;

}





.sidebar-footer {

    border-top: 1px solid rgba(255, 255, 255, 0.15);

    padding-top: 20px;

    display: flex;

    flex-direction: column;

}



.user-badge {

    background: rgba(255, 255, 255, 0.08);

    padding: 8px 12px;

    border-radius: var(--radius-sm);

    font-size: 0.85rem;

    color: #ffffff;

    display: flex;

    align-items: center;

    gap: 8px;

    border: 1px solid rgba(255, 255, 255, 0.15);

}



.user-role-badge {

    font-size: 0.7rem;

    text-transform: uppercase;

    font-weight: 800;

    padding: 2px 6px;

    border-radius: 4px;

    letter-spacing: 0.05em;

}



.user-role-badge.super_admin {

    background: rgba(255, 255, 255, 0.2);

    color: #ffffff;

}

.user-role-badge.state_coordinator,

.user-role-badge.lga_coordinator {

    background: rgba(255, 255, 255, 0.2);

    color: #ffffff;

}

.user-role-badge.party_agent {

    background: rgba(255, 255, 255, 0.2);

    color: #ffffff;

}





/* Glass Cards */

.glass-card {

    background: var(--bg-card);

    backdrop-filter: blur(16px);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-lg);

    padding: 24px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(0, 0, 0, 0.02);

    transition: var(--transition-smooth);

}



.glass-card:hover {

    border-color: rgba(0, 128, 128, 0.2);

    box-shadow: 0 16px 36px rgba(0, 128, 128, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);

    transform: translateY(-2px);

}



/* Collation Dashboard Sub-tab Button Custom Classes */

.sub-tab-select-btn {

    border-bottom: 2px solid transparent !important;

    background: transparent !important;

    color: var(--text-secondary) !important;

    border-radius: 0 !important;

    border: none !important;

    box-shadow: none !important;

    padding: 10px 20px !important;

    font-size: 0.875rem !important;

    font-weight: 600 !important;

    transition: var(--transition-smooth);

    border-top: none !important;

    border-left: none !important;

    border-right: none !important;

}



.sub-tab-select-btn:hover {

    color: var(--color-primary) !important;

    background: transparent !important;

    border-bottom-color: rgba(0, 128, 128, 0.3) !important;

}



.sub-tab-select-btn.active {

    color: var(--color-primary) !important;

    border-bottom: 2px solid var(--color-primary) !important;

    font-weight: 700 !important;

    background: transparent !important;

}



/* Grid Layouts */

.dashboard-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 20px;

    margin-bottom: 24px;

}



/* Metric Widgets */

.metric-card {

    position: relative;

    overflow: hidden;

}



.metric-card::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 4px;

    height: 100%;

    background: var(--accent-gradient, var(--color-accent));

}



.metric-label {

    font-size: 0.85rem;

    color: var(--text-secondary);

    text-transform: uppercase;

    letter-spacing: 0.05em;

    margin-bottom: 8px;

}



.metric-value {

    font-size: 2rem;

    font-weight: 800;

    color: var(--text-primary);

    margin-bottom: 4px;

}



.metric-sub {

    font-size: 0.75rem;

    color: var(--text-muted);

}



/* Filled Metric Cards (Vibrant Pastel Colors with Crisp Dark Text) */

.metric-card.metric-card-filled {

    border-radius: var(--radius-md) !important;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;

    transition: var(--transition-smooth) !important;

}



.metric-card.metric-card-filled::before {

    display: none !important;

}



.metric-card.metric-card-filled:hover {

    transform: translateY(-2px);

}



.metric-card-total {

    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%) !important;

    border: 1.5px solid #f47321 !important;

}

.metric-card-total .metric-label { color: #047857 !important; font-weight: 700 !important; }

.metric-card-total .metric-value { color: #064E3B !important; font-weight: 800 !important; }

.metric-card-total:hover { box-shadow: 0 8px 20px rgba(244, 115, 33, 0.2) !important; border-color: #f47321 !important; }



.metric-card-submitted {

    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;

    border: 1.5px solid #3B82F6 !important;

}

.metric-card-submitted .metric-label { color: #1D4ED8 !important; font-weight: 700 !important; }

.metric-card-submitted .metric-value { color: #1E3A8A !important; font-weight: 800 !important; }

.metric-card-submitted:hover { box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2) !important; border-color: #2563EB !important; }



.metric-card-pending {

    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%) !important;

    border: 1.5px solid #F59E0B !important;

}

.metric-card-pending .metric-label { color: #B45309 !important; font-weight: 700 !important; }

.metric-card-pending .metric-value { color: #78350F !important; font-weight: 800 !important; }

.metric-card-pending:hover { box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2) !important; border-color: #D97706 !important; }



.metric-card-verified {

    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%) !important;

    border: 1.5px solid #8B5CF6 !important;

}

.metric-card-verified .metric-label { color: #6D28D9 !important; font-weight: 700 !important; }

.metric-card-verified .metric-value { color: #4C1D95 !important; font-weight: 800 !important; }

.metric-card-verified:hover { box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2) !important; border-color: #7C3AED !important; }



.metric-card-vetting {

    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%) !important;

    border: 1.5px solid #EA580C !important;

}

.metric-card-vetting .metric-label { color: #C2410C !important; font-weight: 700 !important; }

.metric-card-vetting .metric-value { color: #7C2D12 !important; font-weight: 800 !important; }

.metric-card-vetting:hover { box-shadow: 0 8px 20px rgba(234, 88, 12, 0.2) !important; border-color: #C2410C !important; }



.metric-card-rejected {

    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%) !important;

    border: 1.5px solid #EF4444 !important;

}

.metric-card-rejected .metric-label { color: #B91C1C !important; font-weight: 700 !important; }

.metric-card-rejected .metric-value { color: #7F1D1D !important; font-weight: 800 !important; }

.metric-card-rejected:hover { box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2) !important; border-color: #DC2626 !important; }



/* Form Styles */

.form-group {

    margin-bottom: 20px;

}



.form-label {

    display: block;

    font-size: 0.875rem;

    font-weight: 600;

    color: var(--text-secondary);

    margin-bottom: 8px;

}



.form-control {

    width: 100%;

    background: #f8fafc;

    border: 1px solid rgba(0, 0, 0, 0.08);

    color: var(--text-primary);

    padding: 12px 16px;

    border-radius: var(--radius-md);

    outline: none;

    font-size: 0.95rem;

    transition: var(--transition-smooth);

    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);

}



.form-control:focus {

    background-color: #050E07;

    border-color: #f47321;

    box-shadow: 0 0 0 4px var(--color-primary-glow), 0 1px 2px rgba(0, 0, 0, 0.05);

}



.form-control:disabled {

    background: #f1f5f9;

    color: var(--text-muted);

    cursor: not-allowed;

    border-color: rgba(0, 0, 0, 0.04);

}



/* Buttons */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 12px 24px;

    font-size: 0.95rem;

    font-weight: 700;

    border-radius: var(--radius-md);

    cursor: pointer;

    border: none;

    outline: none;

    transition: var(--transition-smooth);

}



.btn-primary {

    background: var(--color-primary) !important;

    color: white !important;

    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.2) !important;

}



.btn-primary:hover {

    background: var(--color-primary-hover) !important;

    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.35) !important;

    transform: translateY(-1px) !important;

}



.btn-secondary {

    background: #141414 !important;

    color: #B1C5BC !important;

    border: 1px solid var(--color-primary) !important;

    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;

}



.btn-secondary:hover {

    background: #eff6ff !important;

    border-color: var(--color-primary-hover) !important;

    color: var(--color-primary-hover) !important;

}



.btn-success {

    background: #f47321 !important;

    color: white !important;

}



.btn-success:hover {

    background: #059669 !important;

}



.btn-danger {

    background: #DC2626 !important;

    color: white !important;

    border-color: #DC2626 !important;

}



.btn-danger:hover {

    background: #B91C1C !important;

    border-color: #B91C1C !important;

}



/* Edit/Delete list action buttons */

.btn-edit-election, .btn-edit-candidate, .btn-user-edit {

    color: var(--color-primary) !important;

    border-color: rgba(37, 99, 235, 0.3) !important;

}

.btn-edit-election:hover, .btn-edit-candidate:hover, .btn-user-edit:hover {

    color: var(--color-primary-hover) !important;

    border-color: var(--color-primary-hover) !important;

    background: #eff6ff !important;

}



.btn-delete-election, .btn-delete-candidate, .btn-user-delete {

    color: #DC2626 !important;

    border-color: rgba(220, 38, 38, 0.3) !important;

}

.btn-delete-election:hover, .btn-delete-candidate:hover, .btn-user-delete:hover {

    color: #B91C1C !important;

    border-color: #B91C1C !important;

    background: #fef2f2 !important;

}



.btn-danger.btn-user-delete {

    color: white !important;

}

.btn-danger.btn-user-delete:hover {

    color: white !important;

}



.sub-tab-select-btn.active {

    color: var(--color-primary) !important;

    border-bottom: 2px solid var(--color-primary) !important;

}

.sub-tab-select-btn:hover {

    color: var(--color-primary) !important;

    border-bottom-color: rgba(37, 99, 235, 0.3) !important;

}



/* Badge System */

.badge {

    display: inline-flex;

    align-items: center;

    padding: 4px 8px;

    font-size: 0.75rem;

    font-weight: 700;

    border-radius: 6px;

    text-transform: uppercase;

    letter-spacing: 0.05em;

}



.badge-pending { background: var(--color-pending-bg); color: var(--color-pending); }

.badge-verified { background: var(--color-success-bg); color: var(--color-success); }

.badge-rejected { background: var(--color-danger-bg); color: var(--color-danger); }

.badge-flagged { background: var(--color-flagged-bg); color: var(--color-flagged); }



/* Table styling */

.table-responsive {

    overflow-x: auto;

    width: 100%;

    margin-top: 16px;

}



.table {

    width: 100%;

    border-collapse: collapse;

    text-align: left;

}



.table th {

    padding: 16px;

    background: #f8fafc;

    font-weight: 700;

    font-size: 0.85rem;

    text-transform: uppercase;

    color: var(--text-secondary);

    border-bottom: 1px solid var(--border-color);

}



.table td {

    padding: 16px;

    border-bottom: 1px solid var(--border-color);

    font-size: 0.9rem;

    color: var(--text-primary);

}



.table tr {

    transition: var(--transition-smooth);

}



.table tr:hover {

    background: rgba(0, 0, 0, 0.015);

}





/* Charts Wrapper */

.chart-container {

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    width: 100%;

    height: 100%;

}



.chart-title {

    font-weight: 700;

    margin-bottom: 16px;

    color: var(--text-secondary);

    align-self: flex-start;

}



/* Interactive SVG Charts */

.svg-chart {

    max-width: 100%;

    overflow: visible;

}



.chart-bar {

    cursor: pointer;

    transition: var(--transition-smooth);

}



.chart-bar:hover {

    filter: brightness(1.2);

}



.chart-pie-slice {

    cursor: pointer;

    transition: var(--transition-smooth);

}



.chart-pie-slice:hover {

    filter: brightness(1.15);

    transform: scale(1.02);

    transform-origin: center;

}



/* Split verification layout */

.verify-container {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 24px;

}



.verify-image-panel {

    background: #f8fafc;

    border-radius: var(--radius-lg);

    border: 1px solid var(--border-color);

    padding: 16px;

    display: flex;

    justify-content: center;

    align-items: center;

    max-height: 70vh;

    overflow: auto;

    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);

}



.verify-image-panel img {

    max-width: 100%;

    object-fit: contain;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

    border-radius: 4px;

    border: 1px solid rgba(0, 0, 0, 0.05);

    transition: var(--transition-smooth);

}



.verify-image-panel img:hover {

    transform: scale(1.02);

}



/* Toast alert notification container */

.toast-container {

    position: fixed;

    bottom: 24px;

    right: 24px;

    z-index: 1000;

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.toast {

    background: #1f2937;

    color: #ffffff;

    padding: 16px 20px;

    border-radius: var(--radius-md);

    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);

    display: flex;

    align-items: center;

    gap: 12px;

    animation: slideIn 0.3s ease-out forwards;

    border-left: 4px solid var(--color-primary);

}





.toast-success { border-left-color: var(--color-success); }

.toast-danger { border-left-color: var(--color-danger); }

.toast-warning { border-left-color: var(--color-warning); }



@keyframes slideIn {

    from {

        transform: translateX(100%);

        opacity: 0;

    }

    to {

        transform: translateX(0);

        opacity: 1;

    }

}



/* View transitions */

.view-fade-in {

    animation: fadeIn 0.4s ease-out forwards;

}



@keyframes fadeIn {

    from { opacity: 0; transform: translateY(10px); }

    to { opacity: 1; transform: translateY(0); }

}



/* Header & Footer Styling */

.app-header {

    background-color: #060E09;

    color: #FFFFFF;

    height: 70px;

    padding: 0 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    flex-shrink: 0;

}



.header-brand {

    display: flex;

    align-items: center;

    gap: 8px;

}



.header-title {

    font-size: 1.15rem;

    font-weight: 700;

    letter-spacing: -0.025em;

    color: #1E293B;

}



.header-user-info {

    display: flex;

    align-items: center;

}



.header-user-info .user-badge {

    background: #F1F5F9;

    border: 1px solid rgba(0, 0, 0, 0.08);

    padding: 8px 16px;

    border-radius: var(--radius-sm);

    color: #1E293B;

    display: flex;

    align-items: center;

    gap: 12px;

}



.header-user-info .user-name {

    font-weight: 700;

    font-size: 0.9rem;

    white-space: nowrap;

}



.header-user-info .user-role-badge {

    font-size: 0.7rem;

    text-transform: uppercase;

    font-weight: 800;

    padding: 2px 6px;

    border-radius: 4px;

    letter-spacing: 0.05em;

    background: #E2E8F0;

    color: #475569;

}



.app-footer {

    background-color: #0F172A;

    color: rgba(255, 255, 255, 0.85);

    padding: 16px 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    font-size: 0.85rem;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    flex-shrink: 0;

}



.footer-left {

    font-weight: 500;

}



.footer-right {

    font-weight: 500;

}



/* Mobile responsive constraints */

@media(max-width: 768px) {

    #app {

        flex-direction: column;

    }

    

    .app-sidebar {

        width: 100%;

        height: auto;

        border-right: none;

        border-bottom: 1px solid var(--border-color);

        padding: 12px 16px;

        flex-direction: row;

        justify-content: space-between;

        align-items: center;

        position: sticky;

        top: 0;

    }

    

    .sidebar-brand {

        margin-bottom: 0;

    }

    

    .sidebar-nav {

        flex-direction: row;

        align-items: center;

        gap: 8px;

        margin: 0 12px;

    }

    

    .sidebar-btn {

        margin-bottom: 0;

        width: auto;

        padding: 8px 12px;

        font-size: 0.8rem;

    }

    

    .sidebar-btn svg {

        margin-right: 4px;

    }

    

    .sidebar-btn span {

        display: none; /* Hide button text on mobile */

    }

    

    .sidebar-footer {

        border-top: none;

        padding-top: 0;

        flex-direction: row;

        align-items: center;

        gap: 8px;

    }

    

    .sidebar-footer .user-badge {

        display: none;

    }

    

    #logout-btn {

        width: auto;

        padding: 8px 12px;

    }



    .verify-container {

        grid-template-columns: 1fr;

    }



    /* Mobile Header & Footer Adjustments */

    .app-header {

        height: 60px;

        padding: 0 16px;

    }

    .header-title {

        font-size: 0.95rem;

    }

    .header-user-info .user-badge {

        padding: 6px 10px;

        gap: 8px;

    }

    .header-user-info .user-name {

        font-size: 0.8rem;

    }

    .app-footer {

        padding: 12px 16px;

        flex-direction: column;

        gap: 6px;

        text-align: center;

        font-size: 0.8rem;

    }

}



/* Form & Transmission View Responsiveness */

.form-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;

}



.form-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom: 1px solid var(--border-color);

    padding-bottom: 16px;

    margin-bottom: 24px;

    gap: 16px;

}



.form-title {

    font-weight: 800;

    font-size: 1.35rem;

    margin: 0;

}



.election-select {

    width: auto;

    padding: 6px 12px;

}



.candidate-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(0,0,0,0.02);

    padding: 12px 20px;

    border-radius: var(--radius-md);

    border: 1px solid var(--border-color);

    gap: 12px;

    transition: var(--transition-smooth);

}



.candidate-row:hover {

    background: rgba(0,0,0,0.04);

    border-color: rgba(0, 128, 128, 0.2);

}



.cand-vote-input {

    width: 120px;

}





.upload-zone {

    position: relative;

    border: 2px dashed var(--border-color);

    padding: 32px 24px;

    border-radius: var(--radius-lg);

    text-align: center;

    cursor: pointer;

    transition: var(--transition-smooth);

}



.upload-zone:hover {

    border-color: var(--color-primary);

    background: rgba(0, 128, 128, 0.02);

}



@media(max-width: 768px) {

    .form-grid {

        grid-template-columns: 1fr;

    }



    .glass-card {

        padding: 16px;

    }



    .form-header {

        flex-direction: column;

        align-items: stretch;

        gap: 12px;

    }



    .election-select {

        width: 100%;

    }

}



@media(max-width: 480px) {

    .candidate-row {

        flex-direction: column;

        align-items: stretch;

        padding: 12px 16px;

    }



    .candidate-row .cand-vote-input {

        width: 100% !important;

        text-align: left !important;

        margin-top: 8px;

    }

}



/* ==========================================================================

   Executive APM Split Login Screen Styles (Ultra-Modern Front-End Redesign)

   ========================================================================== */

html:has(.login-page-wrapper),

body:has(.login-page-wrapper) {

    overflow: hidden !important;

    height: 100vh !important;

    max-height: 100vh !important;

    margin: 0 !important;

    padding: 0 !important;

    background: #0a0a0a !important;

}



body:has(.login-page-wrapper) #app,

body:has(.login-page-wrapper) #app > div,

body:has(.login-page-wrapper) main#main-content,

main#main-content:has(.login-page-wrapper) {

    padding: 0 !important;

    margin: 0 !important;

    min-height: 100vh !important;

    height: 100vh !important;

    max-height: 100vh !important;

    width: 100vw !important;

    max-width: 100vw !important;

    overflow: hidden !important;

    border: none !important;

}



.login-page-wrapper {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    width: 100vw;

    height: 100vh;

    max-height: 100vh;

    overflow: hidden !important;

    background: #0a0a0a;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 !important;

    padding: 0 !important;

    z-index: 500;

}



/* Ambient Dynamic Background Mesh */

.login-bg-mesh {

    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;

}



.login-mesh-orb {

    position: absolute;

    border-radius: 50%;

    filter: blur(90px);

    opacity: 0.28;

    animation: orbFloat 12s ease-in-out infinite alternate;

}



.login-mesh-orb.orb-1 {

    width: 550px;

    height: 550px;

    background: radial-gradient(circle, #f47321 0%, #9a3412 60%, transparent 80%);

    top: -120px;

    left: -100px;

}



.login-mesh-orb.orb-2 {

    width: 480px;

    height: 480px;

    background: radial-gradient(circle, #12a650 0%, #064e24 60%, transparent 80%);

    bottom: -100px;

    right: -80px;

    animation-delay: -6s;

}



@keyframes orbFloat {

    0% { transform: translate(0, 0) scale(1); }

    100% { transform: translate(40px, 30px) scale(1.1); }

}



.login-mesh-grid {

    position: absolute;

    inset: 0;

    background-image: 

        linear-gradient(rgba(244, 115, 33, 0.05) 1px, transparent 1px),

        linear-gradient(90deg, rgba(244, 115, 33, 0.05) 1px, transparent 1px);

    background-size: 36px 36px;

    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);

}



.login-split-card {

    display: flex;

    width: 100%;

    height: 100vh;

    max-height: 100vh;

    margin: 0;

    border: none !important;

    background: transparent;

    overflow: hidden !important;

    position: relative;

    z-index: 1;

}



/* --- Left Hero Panel --- */

.login-left-panel {

    flex: 1.35;

    position: relative;

    padding: 32px 48px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    color: #ffffff;

    height: 100vh;

    max-height: 100vh;

    overflow: hidden !important;

    background: linear-gradient(145deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 6, 6, 0.95) 50%, rgba(10, 10, 10, 0.98) 100%);

    border: none !important;

    border-right: none !important;

}



.login-left-panel.custom-hero-modern {

    padding: 0;

    background: #0a0a0a;

    overflow: hidden !important;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    height: 100vh;

    max-height: 100vh;

    position: relative;

    border: none !important;

    border-right: none !important;

}



/* Brand Badge in Left Header */

.apm-brand-badge {

    display: inline-flex;

    align-items: center;

    gap: 16px;

    padding: 10px 22px 10px 12px;

    background: rgba(10, 10, 10, 0.92);

    border: 1.5px solid rgba(244, 115, 33, 0.45);

    border-radius: 50px;

    backdrop-filter: blur(20px);

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);

    z-index: 2;

}



.apm-brand-img {

    width: 54px;

    height: 54px;

    border-radius: 50%;

    object-fit: cover;

    border: 2.5px solid #f47321;

    box-shadow: 0 0 16px rgba(244, 115, 33, 0.6);

    flex-shrink: 0;

}



.apm-brand-title {

    display: block;

    font-size: 1.25rem;

    font-weight: 900;

    color: #ffffff;

    letter-spacing: 1px;

    line-height: 1.15;

}



.apm-brand-sub {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: 1px;
    margin-top: 3px;
}



/* Left Hero Content */

.login-left-content {

    z-index: 2;

    margin: 20px 0;

    max-width: 640px;

}



.login-left-title {

    font-size: 2.5rem;

    font-weight: 900;

    line-height: 1.16;

    color: #ffffff;

    letter-spacing: -0.5px;

    margin-bottom: 16px;

    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);

}



.login-left-title-gradient {

    background: linear-gradient(135deg, #ffffff 30%, #f47321 100%);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}



.login-left-subtitle {

    font-size: 1.02rem;

    line-height: 1.6;

    color: #94a3b8;

    font-weight: 400;

    margin-bottom: 24px;

}



/* Feature Tiles in Left Hero */

.hero-feature-tiles {

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.hero-tile {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 12px 16px;

    background: rgba(18, 18, 18, 0.75);

    border: 1px solid rgba(244, 115, 33, 0.25);

    border-radius: 12px;

    backdrop-filter: blur(10px);

    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;

}



.hero-tile:hover {

    transform: translateX(5px);

    border-color: rgba(244, 115, 33, 0.5);

    background: rgba(28, 12, 12, 0.85);

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);

}



.hero-tile-icon {

    width: 40px;

    height: 40px;

    flex-shrink: 0;

    border-radius: 10px;

    background: rgba(244, 115, 33, 0.15);

    border: 1px solid rgba(244, 115, 33, 0.35);

    color: #f47321;

    display: flex;

    align-items: center;

    justify-content: center;

}



.hero-tile-icon svg {

    width: 20px;

    height: 20px;

}



.hero-tile-text strong {

    display: block;

    font-size: 0.92rem;

    font-weight: 800;

    color: #ffffff;

    margin-bottom: 2px;

}



.hero-tile-text span {

    display: block;

    font-size: 0.8rem;

    color: #94a3b8;

}



/* Left Footer */

.login-left-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    z-index: 2;

    padding-top: 16px;

    border-top: 1px solid rgba(244, 115, 33, 0.2);

    flex-wrap: wrap;

    gap: 12px;

}



.security-badge-executive {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #94a3b8;

    font-size: 0.8rem;

    font-weight: 600;

}



.security-badge-executive svg {

    width: 15px;

    height: 15px;

    color: #f47321;

}



.server-status-chip {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 6px 14px;

    background: rgba(18, 18, 18, 0.85);

    border: 1px solid rgba(244, 115, 33, 0.3);

    border-radius: 20px;

    font-size: 0.78rem;

    color: #cbd5e1;

    font-family: monospace;

}



.status-indicator-green {

    width: 8px;

    height: 8px;

    background: #f47321;

    border-radius: 50%;

    box-shadow: 0 0 6px #f47321;

}



/* --- Right Authentication Panel --- */

.login-right-panel {

    width: 490px;

    flex-shrink: 0;

    height: 100vh;

    max-height: 100vh;

    background: radial-gradient(circle at 50% 30%, rgba(26, 6, 6, 0.98) 0%, #0a0a0a 100%);

    border: none !important;

    border-left: none !important;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 32px 40px;

    overflow: hidden !important;

    position: relative;

    backdrop-filter: blur(12px);

}



.login-right-content {

    width: 100%;

    max-width: 390px;

    margin: auto 0;

}



.login-form-container {

    width: 100%;

    background: rgba(15, 15, 15, 0.85);

    border: 1px solid rgba(244, 115, 33, 0.25);

    border-radius: 20px;

    padding: 30px 28px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(20px);

}



.login-card-header {

    text-align: center;

    margin-bottom: 24px;

}



.login-crest-container {

    width: 72px;

    height: 72px;

    margin: 0 auto 14px auto;

    border-radius: 50%;

    background: #0a0a0a;

    border: 2.5px solid #f47321;

    box-shadow: 0 0 24px rgba(244, 115, 33, 0.45);

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    position: relative;

    animation: crestGlow 3s infinite ease-in-out;

}



@keyframes crestGlow {

    0%, 100% { box-shadow: 0 0 18px rgba(244, 115, 33, 0.4); }

    50% { box-shadow: 0 0 30px rgba(244, 115, 33, 0.7); }

}



.login-crest-img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.login-portal-title {

    font-size: 1.6rem;

    font-weight: 900;

    color: #ffffff;

    letter-spacing: -0.3px;

    margin-bottom: 4px;

}



.login-portal-subtitle {

    font-size: 0.84rem;

    color: #94a3b8;

    line-height: 1.4;

    font-weight: 500;

}



/* Form Groups & Inputs */

.form-group-modern {

    margin-bottom: 18px;

}



.form-label-modern {

    display: block;

    font-size: 0.82rem;

    font-weight: 700;

    color: #cbd5e1;

    margin-bottom: 6px;

    letter-spacing: 0.4px;

    text-transform: uppercase;

}



.input-with-icon {

    position: relative;

    display: flex;

    align-items: center;

}



.input-icon {

    position: absolute;

    left: 14px;

    color: #f47321;

    display: flex;

    align-items: center;

    justify-content: center;

    pointer-events: none;

    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;

}



.input-icon svg {

    width: 18px;

    height: 18px;

}



/* Disappear input icons when clicked, focused, or field has value */

.input-with-icon:focus-within .input-icon,

.input-with-icon.has-value .input-icon,

.input-with-icon.is-focused .input-icon {

    opacity: 0 !important;

    visibility: hidden !important;

    transform: scale(0.6) translateX(-10px);

}



.form-control-modern {

    width: 100%;

    height: 48px;

    padding: 10px 14px 10px 42px;

    background: rgba(10, 10, 10, 0.85);

    border: 1.5px solid rgba(244, 115, 33, 0.25);

    border-radius: 12px;

    color: #ffffff;

    font-size: 0.95rem;

    font-weight: 500;

    transition: padding-left 0.2s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;

    outline: none;

}



.input-with-icon:focus-within .form-control-modern,

.input-with-icon.has-value .form-control-modern,

.input-with-icon.is-focused .form-control-modern {

    padding-left: 14px;

}



.form-control-modern:focus {

    border-color: #f47321;

    background: rgba(15, 15, 15, 0.95);

    box-shadow: 0 0 0 3.5px rgba(244, 115, 33, 0.25);

}



.form-control-modern::placeholder {

    color: rgba(255, 255, 255, 0.3);

}



.btn-toggle-pwd {

    position: absolute;

    right: 12px;

    background: transparent;

    border: none;

    color: #64748b;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 6px;

    border-radius: 6px;

    transition: color 0.2s ease;

}



.btn-toggle-pwd:hover {

    color: #f47321;

}



.btn-toggle-pwd svg {

    width: 18px;

    height: 18px;

}



/* Executive Submit Button */

.btn-login-executive {

    width: 100%;

    height: 50px;

    margin-top: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    background: linear-gradient(135deg, #f47321 0%, #c2410c 100%);

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 12px;

    color: #ffffff;

    font-size: 1rem;

    font-weight: 800;

    letter-spacing: 0.4px;

    cursor: pointer;

    box-shadow: 0 8px 24px -2px rgba(244, 115, 33, 0.45);

    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;

    overflow: hidden;

}



.btn-login-executive::after {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    transition: left 0.6s ease;

}



.btn-login-executive:hover::after {

    left: 100%;

}



.btn-login-executive:hover {

    background: linear-gradient(135deg, #fb923c 0%, #f47321 100%);

    box-shadow: 0 10px 28px -2px rgba(244, 115, 33, 0.65);

    transform: translateY(-2px);

}



.btn-login-executive:active {

    transform: translateY(0);

}



.btn-login-executive:disabled {

    opacity: 0.6;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;

}



.btn-arrow {

    width: 18px;

    height: 18px;

    transition: transform 0.2s ease;

}



.btn-login-executive:hover .btn-arrow {

    transform: translateX(4px);

}



/* Login Security Footer */

.login-footer-security {

    margin-top: 22px;

    text-align: center;

    border-top: 1px solid rgba(244, 115, 33, 0.2);

    padding-top: 14px;

}



.security-lock-line {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    font-size: 0.76rem;

    color: #94a3b8;

    font-weight: 600;

    margin-bottom: 6px;

}



.security-lock-line svg {

    width: 14px;

    height: 14px;

    color: #f47321;

}



.login-copyright {

    font-size: 0.72rem;

    color: rgba(255, 255, 255, 0.4);

    margin: 0;

}



/* Responsive Media Queries */

@media(max-width: 1100px) {

    .login-left-panel {

        padding: 24px 28px;

    }

    .login-left-title {

        font-size: 2rem;

    }

    .login-right-panel {

        width: 440px;

        padding: 24px 20px;

    }

}



@media(max-width: 860px) {

    .login-split-card {

        flex-direction: column;

    }

    .login-left-panel {

        display: none;

    }

    .login-right-panel {

        width: 100%;

        height: 100vh;

        border: none !important;

        padding: 20px 16px;

    }

    .login-form-container {

        padding: 24px 18px;

    }

}





/* ==========================================================================

   Sidebar Buttons Styling Overrides

   ========================================================================== */

.sidebar-nav .sidebar-btn {

    background: transparent !important;

    background-color: transparent !important;

    border: none !important;

    border-color: transparent !important;

    outline: none !important;

    box-shadow: none !important;

    color: rgba(255, 255, 255, 0.75) !important;

}



.sidebar-nav .sidebar-btn:hover {
    color: #ffffff !important;
    background: #f47321 !important;
    transform: translateX(3px);
}



.sidebar-nav .sidebar-btn:hover svg {

    color: #ffffff !important;

    stroke: #ffffff !important;

}



.sidebar-nav .sidebar-btn.active {

    color: #ffffff !important;

    font-weight: 800 !important;

    background: #f47321 !important;

    border-left: 3.5px solid #f47321 !important;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);

}



.sidebar-nav .sidebar-btn.active svg {

    color: #ffffff !important;

    stroke: #ffffff !important;

}



.sidebar-footer {

    border-top: 1px solid #1f1f1f;

    padding-top: 18px;

    margin-top: 8px;

}



/* --- Top Header Styling --- */

.app-header {

    height: 70px;

    background: #0a0a0a;

    border-bottom: 1.5px solid #1f1f1f;

    padding: 0 32px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: sticky;

    top: 0;

    z-index: 90;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);

}



.header-left-group {

    display: flex;

    align-items: center;

    gap: 16px;

}



.header-live-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 5px 12px;

    background: rgba(244, 115, 33, 0.15);

    border: 1px solid rgba(244, 115, 33, 0.4);

    border-radius: 20px;

    font-size: 0.72rem;

    font-weight: 800;

    color: #34D399;

    letter-spacing: 0.6px;

}



.live-dot-pulse {

    width: 7px;

    height: 7px;

    background: #f47321;

    border-radius: 50%;

    box-shadow: 0 0 6px #f47321;

    animation: pulseGlow 1.8s infinite;

}



.header-title {

    font-size: 1.15rem;

    font-weight: 800;

    color: #ffffff;

    letter-spacing: 0.2px;

}



.header-user-info {

    position: relative;

}



.user-badge {

    background: #141414;

    padding: 7px 14px;

    border-radius: 30px;

    font-size: 0.85rem;

    color: #ffffff;

    display: flex;

    align-items: center;

    gap: 10px;

    border: 1.5px solid #1f1f1f;

    cursor: pointer;

    transition: var(--transition-smooth);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

}



.user-badge:hover {

    border-color: #f47321;

    background: #1f1414;

}



.user-avatar-initial {

    font-size: 1.1rem;

}



.user-name {

    font-weight: 700;

    color: #ffffff;

}



.user-role-badge {

    font-size: 0.7rem;

    text-transform: uppercase;

    font-weight: 800;

    padding: 3px 8px;

    border-radius: 6px;

    letter-spacing: 0.05em;

    background: rgba(244, 115, 33, 0.2);

    color: #34D399;

    border: 1px solid rgba(244, 115, 33, 0.35);

}



.user-dropdown-menu {

    position: absolute;

    top: calc(100% + 10px);

    right: 0;

    background: #141414;

    border: 1.5px solid #1f1f1f;

    border-radius: 12px;

    width: 220px;

    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);

    display: none;

    flex-direction: column;

    padding: 8px 0;

    z-index: 1000;

    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;

}



.user-dropdown-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 11px 18px;

    color: #A7C2B4;

    font-size: 0.88rem;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    background: transparent;

    border: none;

    width: 100%;

    text-align: left;

    transition: var(--transition-smooth);

}



.user-dropdown-item:hover {

    background: rgba(244, 115, 33, 0.18) !important;

    color: #ffffff !important;

}



.user-dropdown-item svg {

    color: #f47321;

}



.user-dropdown-divider {

    height: 1px;

    background: #1f1f1f;

    margin: 6px 0;

}



/* --- Footer Styling --- */

.app-footer {

    height: 52px;

    background: #0a0a0a;

    border-top: 1.5px solid #142B21;

    padding: 0 32px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    font-size: 0.82rem;

    color: #6E8F82;

    z-index: 80;

}



.footer-left span {

    color: #6E8F82;

}



/* --- Main Content Cards & Containers (Light Theme with Colorful Accents & Dark Text) --- */

main#main-content:not(:has(.login-page-wrapper)) {

    background: transparent;

    padding: 10px 24px 24px 24px;

    min-height: calc(100vh - 122px);

    color: #0F172A;

}



.glass-card, .card {

    background: #FFFFFF !important;

    border: 1px solid #E2E8F0 !important;

    border-top: 3.5px solid #f47321 !important;

    border-radius: 14px !important;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;

    color: #0F172A !important;

}



.glass-card:hover, .card:hover {

    border-color: #CBD5E1 !important;

    border-top-color: #ef4444 !important;

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06) !important;

}



.glass-card h1, .glass-card h2, .glass-card h3, .glass-card h4, .glass-card h5, .glass-card h6,

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,

.chart-title, .form-title {

    color: #0F172A !important;

    font-weight: 800 !important;

}



/* Modal Header Bar ONLY: Ensure crisp white title text on dark top bar */

.modal-header-dark,

.modal-header-dark h1, .modal-header-dark h2, .modal-header-dark h3, .modal-header-dark h4,

#pu-modal-title {

    color: #FFFFFF !important;

    -webkit-text-fill-color: #FFFFFF !important;

}



/* Modal Body Content: Ensure all headings, labels and titles inside modal body cards are dark */

#pu-details-modal .modal-body-content h1,

#pu-details-modal .modal-body-content h2,

#pu-details-modal .modal-body-content h3,

#pu-details-modal .modal-body-content h4,

#pu-details-modal .modal-body-content h5,

#pu-details-modal .modal-body-content h6,

#pu-details-modal .card-heading-dark,

.card-heading-dark {

    color: #0F172A !important;

    -webkit-text-fill-color: #0F172A !important;

    font-weight: 800 !important;

}



.glass-card p, .card p, .glass-card span:not(.badge):not(.metric-label):not(.metric-value), .card span:not(.badge) {

    color: #334155 !important;

}



/* Metric Cards in Light Mode */

.metric-card {

    border-radius: 12px !important;

}



.metric-label {

    font-size: 0.75rem !important;

    text-transform: uppercase !important;

    letter-spacing: 0.05em !important;

    margin-bottom: 4px !important;

    font-weight: 700 !important;

}



.metric-value {

    font-size: 1.75rem !important;

    font-weight: 800 !important;

    margin-bottom: 2px !important;

}



.metric-sub {

    font-size: 0.75rem !important;

    color: #64748B !important;

}



/* --- Tables & Data Grids (Crisp Light Theme) --- */

table, .table {

    width: 100%;

    border-collapse: collapse;

    color: #1E293B;

    background: #FFFFFF;

    border: 1px solid #E2E8F0;

    border-radius: 10px;

    overflow: hidden;

}



table th, .table th {

    background: #F8FAFC !important;

    color: #f47321 !important;

    font-weight: 800 !important;

    font-size: 0.8rem !important;

    text-transform: uppercase !important;

    letter-spacing: 0.6px !important;

    padding: 14px 16px !important;

    border-bottom: 1.5px solid #E2E8F0 !important;

    border-top: none !important;

}



table td, .table td {

    padding: 13px 16px !important;

    border-bottom: 1px solid #F1F5F9 !important;

    color: #334155 !important;

    font-size: 0.88rem !important;

    background: #FFFFFF;

}



table tr:hover td, .table tr:hover td {

    background: #FEF2F2 !important;

}



/* --- Form Inputs & Controls (Light Theme) --- */

.form-control, input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea {

    background: #FFFFFF !important;

    border: 1.5px solid #CBD5E1 !important;

    border-radius: 10px !important;

    color: #0F172A !important;

    padding: 10px 14px !important;

    font-size: 0.92rem !important;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;

    transition: var(--transition-smooth) !important;

}



.form-control:focus, input:focus, select:focus, textarea:focus {

    border-color: #f47321 !important;

    background: #FFFFFF !important;

    box-shadow: 0 0 0 3px rgba(244, 115, 33, 0.15) !important;

    outline: none !important;

}



.form-control:disabled, input:disabled, select:disabled {

    background: #F1F5F9 !important;

    color: #94A3B8 !important;

    border-color: #E2E8F0 !important;

}



.form-label {

    font-size: 0.84rem !important;

    font-weight: 700 !important;

    color: #334155 !important;

    margin-bottom: 6px !important;

    display: block;

}



/* --- Buttons --- */

.btn-primary {

    background: linear-gradient(135deg, #f47321 0%, #c2410c 100%) !important;

    border: 1px solid rgba(255, 255, 255, 0.15) !important;

    color: #ffffff !important;

    border-radius: 10px !important;

    font-weight: 700 !important;

    box-shadow: 0 4px 14px rgba(244, 115, 33, 0.25) !important;

    transition: var(--transition-smooth) !important;

}



.btn-primary:hover {

    background: linear-gradient(135deg, #fb923c 0%, #f47321 100%) !important;

    box-shadow: 0 6px 20px rgba(244, 115, 33, 0.35) !important;

    transform: translateY(-1px);

}



.btn-secondary {

    background: #FFFFFF !important;

    border: 1.5px solid #CBD5E1 !important;

    color: #334155 !important;

    border-radius: 10px !important;

    font-weight: 600 !important;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;

    transition: var(--transition-smooth) !important;

}



.btn-secondary:hover {

    border-color: #f47321 !important;

    color: #f47321 !important;

    background: #FEF2F2 !important;

}



/* --- Modals & Overlays (Crisp Light Theme) --- */

.modal-overlay, #modal-container, #evidence-modal-overlay, #verify-modal-container {

    backdrop-filter: blur(8px);

}



.modal-content, .modal-card, .evidence-modal-card {

    background: #FFFFFF !important;

    border: 1px solid #E2E8F0 !important;

    color: #0F172A !important;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;

}



.modal-header, .evidence-modal-header {

    border-bottom: 1px solid #E2E8F0 !important;

    color: #0F172A !important;

}



.modal-title, .evidence-modal-title {

    color: #0F172A !important;

    font-weight: 800 !important;

}



.modal-footer, .evidence-modal-footer {

    border-top: 1px solid #E2E8F0 !important;

    background: #F8FAFC !important;

}



/* Sub-Tab Navigation in Light Mode */

.sub-tab-select-btn {

    color: #64748B !important;

}



.sub-tab-select-btn:hover {

    color: #f47321 !important;

    border-bottom-color: rgba(244, 115, 33, 0.3) !important;

}



.sub-tab-select-btn.active {

    color: #f47321 !important;

    border-bottom: 2px solid #f47321 !important;

    font-weight: 700 !important;

}



/* --- Retain Premium Dark Elements: Sidebar, Header, Footer --- */

.app-sidebar {

    background: #0a0a0a !important;

    border-right: 1.5px solid #1f1f1f !important;

    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3) !important;

    overflow: hidden !important;

}



.sidebar-brand-title {

    color: #ffffff !important;

}



.sidebar-sponsor-badge {

    background: #141414 !important;

    border: 1px solid rgba(244, 115, 33, 0.4) !important;

}



.sidebar-sponsor-badge .sponsor-name {

    color: #ffffff !important;

}



.sidebar-nav {

    flex-grow: 1;

    display: flex;

    flex-direction: column;

    gap: 4px;

    overflow: hidden !important;

    overflow-y: visible !important;

}



.sidebar-nav::-webkit-scrollbar {

    display: none !important;

    width: 0 !important;

}



.sidebar-nav .sidebar-btn {

    color: #ffffff !important;

}



.sidebar-nav .sidebar-btn span {

    color: #ffffff !important;

}



.sidebar-nav .sidebar-btn svg {

    color: #ffffff !important;

    stroke: #ffffff !important;

}



.sidebar-nav .sidebar-btn:hover {
    color: #ffffff !important;
    background: #f47321 !important;
    transform: translateX(3px);
}



.sidebar-nav .sidebar-btn:hover span {

    color: #ffffff !important;

}



.sidebar-nav .sidebar-btn:hover svg {

    color: #ffffff !important;

    stroke: #ffffff !important;

}



.sidebar-nav .sidebar-btn.active {

    color: #ffffff !important;

    font-weight: 800 !important;

    background: #f47321 !important;

    border-left: 3.5px solid #f47321 !important;

}



.sidebar-nav .sidebar-btn.active span {

    color: #ffffff !important;

}



.sidebar-nav .sidebar-btn.active svg {

    color: #ffffff !important;

    stroke: #ffffff !important;

}



.sidebar-footer {

    border-top: 1px solid #1f1f1f !important;

}



.app-header {

    background: #0a0a0a !important;

    border-bottom: 1.5px solid #1f1f1f !important;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;

}



.header-title {

    color: #ffffff !important;

}

.header-title .situation-room-text {
    color: #ffffff !important;
}



.header-user-info .user-badge {

    background: #141414 !important;

    border: 1.5px solid #1f1f1f !important;

    color: #ffffff !important;

}



.user-dropdown-menu {

    background: #141414 !important;

    border: 1.5px solid #1f1f1f !important;

    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7) !important;

}



.user-dropdown-item {

    color: #ffffff !important;

}



.user-dropdown-item svg {

    color: #ffffff !important;

    stroke: #ffffff !important;

}



.user-dropdown-item:hover {

    background: rgba(244, 115, 33, 0.18) !important;

    color: #ffffff !important;

}



.user-dropdown-divider {

    background: #1f1f1f !important;

}



.user-avatar-btn {

    width: 38px;

    height: 38px;

    border-radius: 8px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: all 0.2s ease;

    background: #141414 !important;

    border: 1.5px solid #1f1f1f !important;

    color: #ffffff !important;

}

.user-avatar-btn svg {

    stroke: #ffffff !important;

    color: #ffffff !important;

    transition: stroke 0.2s ease;

}



.user-avatar-btn:hover {

    border-color: #ffffff !important;

    background: #ffffff !important;

    background-color: #ffffff !important;

    color: #060E09 !important;

    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.25) !important;

}

.user-avatar-btn:hover svg {

    stroke: #060E09 !important;

    color: #060E09 !important;

}



.app-footer {

    background: #040906 !important;

    border-top: 1.5px solid #142B21 !important;

    color: #6E8F82 !important;

}





/* Collation Venue & Accessibility - Force White Text on All Green Backgrounds */

.glass-card span.badge-adc-live,

.badge-adc-live,

.glass-card span[style*="background: #008000"],

.glass-card span[style*="background:#008000"],

.glass-card [style*="background: #008000"],

.glass-card [style*="background:#008000"],

.card span[style*="background: #008000"],

.card span[style*="background:#008000"],

.card [style*="background: #008000"],

.card [style*="background:#008000"],

[style*="background: #008000"],

[style*="background:#008000"],

[style*="background: #008000 !important"],

[style*="background: rgb(0, 128, 0)"],

[style*="background: rgb(0,128,0)"],

.btn-inspect-card-action,

.btn-inspect-card-action *,

.btn-dual-inspect,

.btn-dual-inspect * {

    color: #ffffff !important;

}



.btn-inspect-card-action svg,

.btn-dual-inspect svg {

    stroke: #ffffff !important;

}



/* ==========================================================================
   Collation Venue Module - Mobile Device Responsiveness & Touch Optimization
   ========================================================================== */

@media (max-width: 992px) {
    .collation-scoreboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .collation-venue-root {
        padding: 12px 14px !important;
    }

    .collation-header-card {
        padding: 16px !important;
    }

    .collation-header-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .collation-header-actions button,
    .collation-header-actions a {
        width: 100% !important;
        justify-content: center !important;
        min-height: 42px !important;
    }

    .collation-kpi-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .collation-scoreboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .collation-toolbar-card {
        padding: 12px !important;
    }

    .collation-filter-group {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .collation-filter-group > div,
    .collation-filter-group > select {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 40px !important;
    }

    .collation-floor-checklist-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .collation-floor-checklist-bar > div:first-child {
        width: 100% !important;
    }

    .collation-floor-checklist-bar > div:first-child > div:last-child {
        width: 100% !important;
    }

    .pu-cards-grid,
    .ward-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .pu-card-item,
    .ward-card-item {
        padding: 14px !important;
    }

    /* Dual inspect modal on tablets and phones */
    #collation-modal-dialog {
        max-width: 98vw !important;
        max-height: 95vh !important;
        padding: 14px !important;
    }

    .dual-modal-mobile-tabs {
        display: flex !important;
    }

    #dual-inspect-panels-grid {
        grid-template-columns: 1fr !important;
    }

    #panel-irev-ec8a {
        display: none;
    }

    /* Collation upload dialog on phones */
    #collation-upload-dialog {
        max-width: 98vw !important;
        max-height: 95vh !important;
        padding: 14px 16px !important;
    }

    /* Collation sheet dialog on phones */
    #collation-sheet-modal-backdrop .glass-card {
        max-width: 98vw !important;
        max-height: 95vh !important;
        padding: 14px 16px !important;
    }
}

@media (max-width: 480px) {
    .collation-venue-root {
        padding: 8px 10px !important;
    }

    .collation-scoreboard-grid {
        grid-template-columns: 1fr !important;
    }

    .collation-header-actions {
        grid-template-columns: 1fr !important;
    }

    #collation-upload-dialog form > div:first-child {
        grid-template-columns: 1fr !important;
    }

    .pu-card-item button,
    .ward-card-item button {
        min-height: 44px !important;
    }
}


/* ==========================================================================
   UI Protection & Anti-Copying Rules
   ========================================================================== */
body, * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Maintain proper selection & typing functionality inside input fields */
input, textarea, select, [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Prevent image dragging */
img {
    -webkit-user-drag: none !important;
    user-drag: none !important;
}


/* ==========================================================================
   User Management & Content Container Overlap Protections
   ========================================================================== */
.user-tabs-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.user-tabs-bar .sub-tab-select-btn,
.sub-tab-select-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

#main-content {
    min-width: 0 !important;
    max-width: 100% !important;
}

#users-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

#users-table th, #users-table td {
    vertical-align: middle;
}
