/* ERMS Custom Premium CSS Design System */

:root {
    --bg-primary: #F8FAFC;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.14);
    
    /* Harmonious Color Palette */
    --color-primary: #2563EB;      /* Blue */
    --color-primary-hover: #3B82F6; /* Lighter Blue */
    --color-primary-glow: rgba(37, 99, 235, 0.15);
    --color-accent: #4f46e5;       /* Indigo */
    --color-success: #10b981;      /* Emerald Green */
    --color-success-bg: rgba(16, 185, 129, 0.12);
    --color-danger: #ef4444;       /* Crimson Red */
    --color-danger-bg: rgba(239, 68, 68, 0.12);
    --color-warning: #f59e0b;      /* Amber Orange */
    --color-warning-bg: rgba(245, 158, 11, 0.12);
    --color-flagged: #ec4899;      /* Pink Flagged */
    --color-flagged-bg: rgba(236, 72, 153, 0.12);
    --color-pending: #6b7280;       /* Cool Gray */
    --color-pending-bg: rgba(107, 114, 128, 0.12);
    
    /* Typography */
    --text-primary: #1E293B;       /* Slate 800 */
    --text-secondary: #475569;     /* Slate 600 */
    --text-muted: #64748b;         /* Slate 500 */
    
    /* Shadows & Effects */
    --shadow-premium: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(0, 128, 128, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --transition-smooth: all 0.3s 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(at 0% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.08) 0px, transparent 50%);
    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;
}

.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: rgba(255, 255, 255, 0.75) !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;
}


.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 */
.metric-card.metric-card-filled {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.metric-card.metric-card-filled::before {
    display: none !important;
}

.metric-card.metric-card-filled .metric-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
}

.metric-card.metric-card-filled .metric-value {
    color: #ffffff !important;
}

.metric-card.metric-card-filled .metric-sub {
    color: rgba(255, 255, 255, 0.8) !important;
}

.metric-card-total { background: #00b59a !important; }
.metric-card-total:hover { border-color: rgba(255, 255, 255, 0.45) !important; box-shadow: 0 12px 30px rgba(0, 181, 154, 0.25) !important; }

.metric-card-submitted { background: #0070e2 !important; }
.metric-card-submitted:hover { border-color: rgba(255, 255, 255, 0.45) !important; box-shadow: 0 12px 30px rgba(0, 112, 226, 0.25) !important; }

.metric-card-pending { background: #ffa80c !important; }
.metric-card-pending:hover { border-color: rgba(255, 255, 255, 0.45) !important; box-shadow: 0 12px 30px rgba(255, 168, 12, 0.25) !important; }

.metric-card-verified { background: #7b3dd9 !important; }
.metric-card-verified:hover { border-color: rgba(255, 255, 255, 0.45) !important; box-shadow: 0 12px 30px rgba(123, 61, 217, 0.25) !important; }

.metric-card-vetting { background: #d97706 !important; }
.metric-card-vetting:hover { border-color: rgba(255, 255, 255, 0.45) !important; box-shadow: 0 12px 30px rgba(217, 119, 6, 0.25) !important; }

.metric-card-rejected { background: #fc5732 !important; }
.metric-card-rejected:hover { border-color: rgba(255, 255, 255, 0.45) !important; box-shadow: 0 12px 30px rgba(252, 87, 50, 0.25) !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: #ffffff;
    border-color: var(--color-primary);
    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: #ffffff !important;
    color: var(--color-primary) !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: #10b981 !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: #FFFFFF;
    color: #1E293B;
    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.4rem;
    font-weight: 800;
    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;
    }
}

/* ==========================================================================
   Split Login Screen Styles
   ========================================================================== */
.login-split-card {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    background: var(--bg-card);
}

.login-left-panel {
    flex: 1.25;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.93), rgba(79, 70, 229, 0.93)), 
                url('/uploads/erms_login_hero.png') no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    position: relative;
    height: 100vh;
}

.login-left-panel::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.login-left-header {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.brand-logo-light {
    width: 36px;
    height: 36px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    padding: 6px;
    backdrop-filter: blur(8px);
}

.brand-logo-light svg {
    width: 100%;
    height: 100%;
}

.brand-name-light {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-left-content {
    z-index: 2;
    margin: auto 0;
}

.login-left-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-left-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-left-footer {
    z-index: 2;
    margin-top: auto;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.security-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.login-right-panel {
    width: 480px;
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-card);
    flex-shrink: 0;
    height: 100vh;
}

.login-form-container {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.login-right-header {
    margin-bottom: 32px;
}

@media(max-width: 900px) {
    .login-left-panel {
        padding: 48px;
    }
    .login-left-title {
        font-size: 2.25rem;
    }
    .login-right-panel {
        width: 400px;
        padding: 48px 32px;
    }
}

@media(max-width: 768px) {
    .login-split-card {
        flex-direction: column;
        height: 100vh;
        min-height: 100vh;
    }
    .login-left-panel {
        display: none;
    }
    .login-right-panel {
        width: 100%;
        height: 100vh;
        padding: 48px 24px;
    }
}

/* ==========================================================================
   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 {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.sidebar-nav .sidebar-btn.active {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.sidebar-nav .sidebar-btn:focus,
.sidebar-nav .sidebar-btn:active {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

/* ==========================================================================
   User Profile Dropdown Menu Styling
   ========================================================================== */
.header-user-info {
    position: relative;
}

.user-badge {
    cursor: pointer;
    user-select: none;
    transition: var(--transition-smooth);
}

.user-badge:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: var(--color-primary) !important;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    width: 200px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    padding: 8px 0;
    z-index: 1000;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top right;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.user-dropdown-menu.show {
    display: flex;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #1E293B;
    font-size: 0.9rem;
    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: var(--color-primary) !important;
    color: #ffffff !important;
}

.user-dropdown-item svg {
    flex-shrink: 0;
    color: #475569;
}

.user-dropdown-item:hover svg {
    color: #ffffff;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 8px 0;
}

