/* NR Mizo Solutions — Sanitation Portal Stylesheet */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #d1fae5;
    --secondary: #0284c7;
    --accent: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-card: #1e293b;
    --gray-bg: #f8fafc;
    --gray-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 20px rgba(16, 185, 129, 0.11);
    --shadow-lg: 0 14px 32px rgba(0, 0, 0, 0.11);
}

html {
    font-size: 100%; /* Scaled up by 10% for crisp, perfectly readable size */
    -webkit-text-size-adjust: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: #f1f5f9;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Header & Nav */
.san-header {
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
    color: white;
    padding: 0.9rem 1.5rem;
    box-shadow: 0 3px 14px rgba(4, 120, 87, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.san-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.san-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: white;
}

.san-brand-icon {
    font-size: 1.45rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.san-brand-text h1 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.san-brand-text p {
    font-size: 0.76rem;
    opacity: 0.85;
}

.san-nav-links {
    display: flex;
    gap: 8px;
}

.san-nav-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 13px;
    border-radius: 18px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.san-nav-btn:hover, .san-nav-btn.active {
    background: white;
    color: var(--primary-dark);
}

/* Container */
.san-container {
    max-width: 1100px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    width: 100%;
    flex: 1;
    position: relative;
    z-index: 10;
}

/* Cards */
.san-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 10;
}

body.dark-mode .san-card {
    background: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6) !important;
    color: #f8fafc !important;
}

.san-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.95rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.san-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Selector Grid */
.san-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
}

.san-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem;
}

.san-modal-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 22px;
}

.san-modal-grid-full {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .san-modal-grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.san-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.95rem;
}

/* Form inputs */
.san-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 0.85rem;
}

.san-form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.san-select, .san-input, .san-textarea {
    padding: 8px 12px;
    border: 1.3px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease;
    background: white;
    min-height: 38px;
}

select, .san-select {
    cursor: pointer;
}

.san-select:focus, .san-input:focus, .san-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* Dynamic Input & Select Error Highlighting */
.san-input.san-input-error,
.san-select.san-input-error,
.san-textarea.san-input-error {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.28) !important;
    animation: sanInputShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes sanInputShake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* Button Loading & Spinner States */
.san-spinner {
    display: inline-block;
    width: 17px;
    height: 17px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: sanSpin 0.7s linear infinite;
    vertical-align: middle;
    flex-shrink: 0;
}

.san-btn:disabled,
.san-btn.is-loading {
    opacity: 0.82 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.san-btn.is-loading {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

@keyframes sanSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Password Eye Toggle Button */
.san-pwd-eye-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    padding: 4px 6px;
    border-radius: 6px;
    color: var(--text-muted, #64748b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    z-index: 5;
}
.san-pwd-eye-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.1);
}

/* Code and Password Badges */
.san-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    background: #f1f5f9;
    color: #334155;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}
.san-pwd-badge {
    cursor: pointer;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-dark);
    border-color: rgba(99, 102, 241, 0.2);
    user-select: none;
}
.san-pwd-badge:hover {
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}
.san-pwd-badge .pwd-plain {
    display: none;
}
.san-pwd-badge.revealed .pwd-plain {
    display: inline;
}
.san-pwd-badge.revealed .pwd-mask {
    display: none;
}
.san-pwd-badge .pwd-toggle-icon {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-left: 2px;
}

/* Buttons */
.san-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.1px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    user-select: none;
    min-height: 36px;
}

.san-btn:hover {
    transform: translateY(-1px);
}

.san-btn:active {
    transform: scale(0.97) translateY(0) !important;
    filter: brightness(0.94);
}

.san-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.san-btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(5, 150, 105, 0.28);
}

.san-btn-primary:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.38);
}

.san-btn-secondary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(2, 132, 199, 0.28);
}
.san-btn-secondary:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38);
}

.san-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.28);
}
.san-btn-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.38);
}

.san-btn-outline {
    background: white;
    border: 1.3px solid #cbd5e1;
    color: #334155;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.san-btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
}

.san-btn-block {
    width: 100%;
}

.san-btn-lg {
    padding: 11px 24px;
    font-size: 0.98rem;
    border-radius: var(--radius-md);
    min-height: 42px;
}

.san-btn-sm {
    padding: 5px 11px;
    font-size: 0.78rem;
    border-radius: 6px;
    min-height: 28px;
}

/* Global Ripple Effect */
.san-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: sanRippleEffect 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
}

@keyframes sanRippleEffect {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* Payment Channel Breakdown Box */
.san-channel-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.san-channel-box.rzp {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}
.san-channel-box.rzp .channel-title,
.san-channel-box.rzp .channel-amount {
    color: var(--primary-dark);
}
.san-channel-box.cash {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}
.san-channel-box.cash .channel-title,
.san-channel-box.cash .channel-amount {
    color: #0369a1;
}
.san-channel-box .channel-title {
    font-size: 0.95rem;
    font-weight: 700;
}
.san-channel-box .channel-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.san-channel-box .channel-amount {
    font-size: 1.15rem;
    font-weight: 800;
}

/* Bill Display Card */
.bill-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1.5px solid #a7f3d0;
    border-radius: var(--radius-md);
    padding: 1.8rem;
    position: relative;
    box-shadow: 0 9px 24px rgba(16, 185, 129, 0.12);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bill-hero-card:hover {
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.18);
}

.bill-amount-badge {
    display: inline-block;
    font-size: 2.1rem;
    font-weight: 900;
    color: #047857;
    margin: 0.4rem 0;
    letter-spacing: -0.4px;
}

.bill-breakdown-box {
    background: #ffffff;
    padding: 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.bill-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #cbd5e1;
    font-size: 0.88rem;
}

.bill-breakdown-row .breakdown-label {
    color: var(--text-muted);
}
.bill-breakdown-row .breakdown-label.arrears {
    color: #ef4444;
    font-weight: 600;
}

.bill-breakdown-row .breakdown-val {
    font-weight: 700;
    color: var(--dark);
}
.bill-breakdown-row .breakdown-val.arrears {
    color: #ef4444;
    font-weight: 800;
}

.bill-breakdown-row.total {
    border-top: 1.8px solid var(--primary);
    border-bottom: none;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-top: 9px;
    padding-top: 12px;
}
.bill-breakdown-row .breakdown-total-val {
    color: #047857;
    font-size: 1.25rem;
}

/* Stat Boxes */
.san-stat-box {
    background: #f8fafc;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}
.san-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}
.san-stat-val {
    font-size: 1rem;
    color: #0f172a;
    margin-top: 3px;
    display: block;
}

/* User Sidebar Profile Card */
.san-user-profile-box {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}
.san-user-avatar-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.18rem;
    flex-shrink: 0;
}
.san-user-houseno {
    font-size: 0.74rem;
    color: #065f46;
    font-weight: 700;
    display: block;
}

/* Status Badges */
.san-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease;
}
.san-badge:hover {
    transform: translateY(-1px);
}

.san-badge-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.san-badge-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.san-badge-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.san-badge-info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.san-badge-purple { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.san-badge-secondary { background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1; }
.san-badge-dark { background: #334155; color: #f8fafc; }

/* House Number Badge */
.san-house-badge {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

/* Tabs */
.san-tabs {
    display: flex;
    gap: 7px;
    margin-bottom: 1.2rem;
    border-bottom: 1.8px solid var(--border);
    padding-bottom: 3px;
    overflow-x: auto;
}

.san-tab-btn {
    padding: 8px 16px;
    border-radius: 9px 9px 0 0;
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.san-tab-btn:hover {
    color: var(--dark);
    background: rgba(0, 0, 0, 0.03);
}

.san-tab-btn.active {
    color: #047857;
    border-bottom: 2.8px solid #059669;
    background: white;
    box-shadow: 0 -1px 8px rgba(0,0,0,0.02);
}

/* Tables */
.san-table-responsive {
    overflow-x: auto;
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.02);
}

.san-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    background: white;
}

.san-table th, .san-table td {
    padding: 10px 13px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.san-table th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.san-table tbody tr {
    transition: all 0.18s ease;
}

.san-table tbody tr:hover {
    background: #f8fafc;
}

.san-table tbody tr[onclick] {
    cursor: pointer;
}
.san-table tbody tr[onclick]:hover {
    background: rgba(16, 185, 129, 0.05);
}

/* =======================================================
    MODERN CUSTOM SCROLLBAR & SCROLL INDICATOR
   ======================================================= */
/* Webkit Browsers (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.75);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

/* Modals System (Top Fixed Header & Scrollable Body) */
.san-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    padding: 1.25rem;
}

.san-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.san-modal-content {
    background: #ffffff;
    border-radius: var(--radius-md);
    width: 94vw;
    max-width: 760px;
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Fixes header at the top and hides overflowing content */
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    border: 1px solid #e2e8f0;
}

.san-modal-overlay.active .san-modal-content {
    transform: scale(1) translateY(0);
}

.san-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.4rem;
    margin: 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

.san-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 7px;
}

.san-modal-close {
    background: #f1f5f9;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    color: var(--text-muted, #64748b);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.san-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg) scale(1.08);
}

/* Scrollable Form & Body */
.san-modal-content > form,
.san-modal-body,
.san-modal-content > .san-receipt,
.san-modal-content > div:not(.san-modal-header):not(.san-modal-footer) {
    overflow-y: auto;
    flex: 1 1 auto;
    padding: 1.25rem 1.4rem 1.5rem 1.4rem;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.san-modal-content > form::-webkit-scrollbar,
.san-modal-body::-webkit-scrollbar,
.san-modal-content > div::-webkit-scrollbar {
    width: 6px;
}

.san-modal-content > form::-webkit-scrollbar-thumb,
.san-modal-body::-webkit-scrollbar-thumb,
.san-modal-content > div::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 9999px;
}

.san-modal-content > form::-webkit-scrollbar-thumb:hover,
.san-modal-body::-webkit-scrollbar-thumb:hover,
.san-modal-content > div::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.8);
}

.san-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    padding: 0.85rem 1.4rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 11px;
}

/* Receipt Print View */
.san-receipt {
    border: 2px dashed #059669;
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.san-receipt-header {
    text-align: center;
    border-bottom: 1px solid #a7f3d0;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.san-receipt-header h3 {
    color: var(--primary-dark);
    font-size: 1.08rem;
}

/* Stat Cards */
.san-stat-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.san-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.san-stat-icon.green { background: #dcfce7; color: #16a34a; }
.san-stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.san-stat-icon.amber { background: #fef3c7; color: #d97706; }
.san-stat-icon.purple { background: #f3e8ff; color: #9333ea; }

.san-stat-info h4 {
    font-size: 0.74rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.san-stat-info p {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--dark);
}

/* Notice Card */
.san-notice-card {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 0.85rem 1.1rem;
    border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
}

.san-notice-card.schedule {
    background: #ecfdf5;
    border-left-color: #10b981;
}

.san-notice-card.alert {
    background: #fff1f2;
    border-left-color: #f43f5e;
}

/* Footer */
.san-footer {
    background: var(--dark);
    color: #94a3b8;
    text-align: center;
    padding: 1.25rem;
    font-size: 0.8rem;
    margin-top: auto;
}

.san-footer a {
    color: #38bdf8;
    text-decoration: none;
}

/* Gateway / Selection Screen */
.san-gateway-hero {
    text-align: center;
    margin: 2rem auto 3rem;
    max-width: 760px;
    position: relative;
    z-index: 10;
}

.san-gateway-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(224, 242, 254, 0.85);
    backdrop-filter: blur(8px);
    color: #0369a1;
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 16px;
    border: 1px solid rgba(186, 230, 253, 0.8);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.san-gateway-hero h2 {
    font-size: 2.3rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.san-gateway-hero p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.6;
}

.san-gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 10;
}

.san-gateway-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.5rem 2.2rem;
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.san-gateway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.san-gateway-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.san-gateway-card:active {
    transform: translateY(-2px) scale(0.985) !important;
}

.san-gateway-card.citizen:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 24px 50px -12px rgba(16, 185, 129, 0.22);
}
.san-gateway-card.citizen::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.san-gateway-card.collector:hover {
    border-color: rgba(2, 132, 199, 0.4);
    box-shadow: 0 24px 50px -12px rgba(2, 132, 199, 0.22);
}
.san-gateway-card.collector::before {
    background: linear-gradient(90deg, #0284c7, #0369a1);
}

.san-gateway-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.san-gateway-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.san-gateway-card:hover .san-gateway-icon {
    transform: scale(1.1) rotate(4deg);
}

.san-gateway-icon.citizen-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #a7f3d0 100%);
    color: #065f46;
}

.san-gateway-icon.collector-icon {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
}

.san-gateway-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.6rem;
    letter-spacing: -0.3px;
}

.san-gateway-desc {
    color: #64748b;
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
}

.san-gateway-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.92rem;
    color: #334155;
}

.san-gateway-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.san-gateway-features li span {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.san-gateway-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 1.02rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    user-select: none;
}

.san-gateway-btn span {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.san-gateway-card:hover .san-gateway-btn span {
    transform: translateX(6px);
}

.san-gateway-btn.citizen-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.san-gateway-btn.citizen-btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.san-gateway-btn.collector-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.san-gateway-btn.collector-btn:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
}

.san-gateway-admin-footer {
    margin-top: 1rem;
    text-align: center;
    background: white;
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.san-gateway-admin-footer span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.san-back-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* =======================================================
    ULTRA-MODERN ATMOSPHERIC SCENIC LOGIN (CHHUM & SAVA)
   ======================================================= */
.san-auth-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    overflow: hidden;
    /* Balanced, pleasant soothing daylight atmosphere (not overly dark) */
    background: radial-gradient(circle at 50% 18%, #ecfdf5 0%, #e0f2fe 35%, #f1f5f9 70%, #e2e8f0 100%);
    transition: background 0.4s ease;
}

body.dark-mode .san-auth-section {
    /* Rich deep emerald twilight in dark mode */
    background: radial-gradient(circle at 50% 18%, #064e3b 0%, #032b21 40%, #091a14 75%, #030a07 100%) !important;
}

/* Ambient Animated Scenic Sky Layer */
.san-auth-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Soft Radial Sky Glows */
.san-sky-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.san-sky-glow-1 {
    width: 550px;
    height: 550px;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.08) 60%, transparent 100%);
    animation: floatGlow 14s ease-in-out infinite alternate;
}
.san-sky-glow-2 {
    width: 450px;
    height: 450px;
    bottom: -100px;
    right: -80px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, rgba(56, 189, 248, 0.05) 65%, transparent 100%);
}

@keyframes floatGlow {
    0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

/* Mountain Silhouette at Horizon */
.san-mountain-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 240px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 280" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 280L0 180C140 140 280 200 420 160C560 120 700 170 840 130C980 90 1120 150 1260 120C1350 100 1410 130 1440 140L1440 280L0 280Z" fill="%23059669" fill-opacity="0.18"/><path d="M0 280L0 210C160 180 320 220 500 190C680 160 820 200 980 180C1140 160 1300 190 1440 170L1440 280L0 280Z" fill="%23047857" fill-opacity="0.25"/></svg>') no-repeat bottom center / cover;
    pointer-events: none;
    z-index: 1;
    transition: all 0.4s ease;
}

body.dark-mode .san-mountain-silhouette {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 280" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 280L0 180C140 140 280 200 420 160C560 120 700 170 840 130C980 90 1120 150 1260 120C1350 100 1410 130 1440 140L1440 280L0 280Z" fill="%23011a13" fill-opacity="0.75"/><path d="M0 280L0 210C160 180 320 220 500 190C680 160 820 200 980 180C1140 160 1300 190 1440 170L1440 280L0 280Z" fill="%23000f0a" fill-opacity="0.9"/></svg>') no-repeat bottom center / cover;
}

/*  1. Realistic Drifting Clouds (Chhum Animation Loop) */
.san-cloud-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 100%;
    pointer-events: none;
    background-repeat: repeat-x;
    z-index: 1;
}

.san-cloud-back {
    top: 2%;
    height: 220px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 200" xmlns="http://www.w3.org/2000/svg"><path d="M120,130 Q140,80 190,90 Q220,50 280,70 Q340,30 400,60 Q450,40 500,80 Q560,70 600,100 Q650,70 710,90 Q760,60 820,80 Q870,50 930,90 Q980,100 1000,130 L1000,200 L0,200 L0,140 Q60,120 120,130 Z" fill="white" fill-opacity="0.65"/></svg>');
    background-size: 1000px 200px;
    animation: cloudDriftSlow 70s linear infinite;
    opacity: 0.85;
}
body.dark-mode .san-cloud-back {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 200" xmlns="http://www.w3.org/2000/svg"><path d="M120,130 Q140,80 190,90 Q220,50 280,70 Q340,30 400,60 Q450,40 500,80 Q560,70 600,100 Q650,70 710,90 Q760,60 820,80 Q870,50 930,90 Q980,100 1000,130 L1000,200 L0,200 L0,140 Q60,120 120,130 Z" fill="white" fill-opacity="0.10"/></svg>');
    opacity: 0.7;
}

.san-cloud-mid {
    top: 14%;
    height: 260px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 240" xmlns="http://www.w3.org/2000/svg"><path d="M80,160 Q110,100 170,110 Q210,60 280,80 Q350,40 430,70 Q490,50 560,90 Q630,70 690,110 Q760,80 830,100 Q890,60 970,90 Q1040,70 1100,110 Q1160,90 1200,140 L1200,240 L0,240 L0,170 Q40,150 80,160 Z" fill="white" fill-opacity="0.8"/></svg>');
    background-size: 1200px 240px;
    animation: cloudDriftMid 45s linear infinite;
    opacity: 0.9;
}
body.dark-mode .san-cloud-mid {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 240" xmlns="http://www.w3.org/2000/svg"><path d="M80,160 Q110,100 170,110 Q210,60 280,80 Q350,40 430,70 Q490,50 560,90 Q630,70 690,110 Q760,80 830,100 Q890,60 970,90 Q1040,70 1100,110 Q1160,90 1200,140 L1200,240 L0,240 L0,170 Q40,150 80,160 Z" fill="%236ee7b7" fill-opacity="0.08"/></svg>');
    opacity: 0.8;
}

.san-cloud-front {
    top: 28%;
    height: 240px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 900 180" xmlns="http://www.w3.org/2000/svg"><path d="M100,120 Q130,70 190,80 Q240,40 310,65 Q370,35 440,60 Q500,45 560,80 Q620,65 680,95 Q740,70 800,85 Q860,60 900,105 L900,180 L0,180 L0,130 Q50,115 100,120 Z" fill="white" fill-opacity="0.7"/></svg>');
    background-size: 900px 180px;
    animation: cloudDriftFront 30s linear infinite;
    opacity: 0.75;
}
body.dark-mode .san-cloud-front {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 900 180" xmlns="http://www.w3.org/2000/svg"><path d="M100,120 Q130,70 190,80 Q240,40 310,65 Q370,35 440,60 Q500,45 560,80 Q620,65 680,95 Q740,70 800,85 Q860,60 900,105 L900,180 L0,180 L0,130 Q50,115 100,120 Z" fill="white" fill-opacity="0.06"/></svg>');
    opacity: 0.6;
}

@keyframes cloudDriftSlow {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-1000px, 0, 0); }
}
@keyframes cloudDriftMid {
    0% { transform: translate3d(-400px, 0, 0); }
    100% { transform: translate3d(-1600px, 0, 0); }
}
@keyframes cloudDriftFront {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-900px, 0, 0); }
}

/*  2. Graceful Flying Birds in Continuous Loop (Sava Thlawk Lai) */
.san-birds-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.san-bird-flock {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 20px;
}

.san-bird {
    position: relative;
    width: 26px;
    height: 14px;
    display: inline-block;
}

.san-bird .wing {
    position: absolute;
    top: 4px;
    width: 13px;
    height: 7px;
    border-top: 2.8px solid #0f766e;
    border-radius: 50% 50% 0 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
body.dark-mode .san-bird .wing {
    border-top: 2.5px solid #a7f3d0;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

.san-bird .wing.left {
    left: 0;
    transform-origin: bottom right;
    animation: birdFlapLeft 0.5s ease-in-out infinite alternate;
}

.san-bird .wing.right {
    right: 0;
    transform-origin: bottom left;
    animation: birdFlapRight 0.5s ease-in-out infinite alternate;
}

/* Floating Auth Theme Button */
.san-auth-theme-btn {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.san-auth-theme-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.san-auth-theme-btn:active {
    transform: scale(0.92);
}
body.dark-mode .san-auth-theme-btn {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

@keyframes birdFlapLeft {
    0% { transform: rotate(-35deg) skewX(-10deg); }
    100% { transform: rotate(40deg) skewX(10deg); }
}

@keyframes birdFlapRight {
    0% { transform: rotate(35deg) skewX(10deg); }
    100% { transform: rotate(-40deg) skewX(-10deg); }
}

/* Flock 1: Main Flight Path (Soaring left to right) */
.flock-1 {
    top: 10%;
    animation: flockFlight1 20s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}
.flock-1 .bird-2 {
    margin-top: 14px;
    transform: scale(0.85);
    opacity: 0.9;
}
.flock-1 .bird-3 {
    margin-top: 6px;
    transform: scale(0.7);
    opacity: 0.75;
}

/* Flock 2: Distant High Altitude Flight */
.flock-2 {
    top: 22%;
    animation: flockFlight2 30s cubic-bezier(0.25, 0.1, 0.25, 1) infinite 8s;
    transform: scale(0.7);
    opacity: 0.75;
}
.flock-2 .bird-5 {
    margin-top: 12px;
    transform: scale(0.8);
}

/* Flock 3: Gentle Low Glide */
.flock-3 {
    top: 6%;
    animation: flockFlight3 17s ease-in-out infinite 3s;
    transform: scale(1.05);
}

@keyframes flockFlight1 {
    0% {
        transform: translate3d(-15vw, 30px, 0);
        opacity: 0;
    }
    6% { opacity: 0.95; }
    50% {
        transform: translate3d(50vw, -25px, 0);
        opacity: 0.95;
    }
    92% { opacity: 0.95; }
    100% {
        transform: translate3d(115vw, 15px, 0);
        opacity: 0;
    }
}

@keyframes flockFlight2 {
    0% {
        transform: translate3d(-20vw, 20px, 0) scale(0.7);
        opacity: 0;
    }
    8% { opacity: 0.8; }
    50% {
        transform: translate3d(55vw, -30px, 0) scale(0.7);
        opacity: 0.8;
    }
    92% { opacity: 0.8; }
    100% {
        transform: translate3d(120vw, 10px, 0) scale(0.7);
        opacity: 0;
    }
}

@keyframes flockFlight3 {
    0% {
        transform: translate3d(-12vw, 0px, 0) scale(1.05);
        opacity: 0;
    }
    10% { opacity: 1; }
    50% {
        transform: translate3d(52vw, 25px, 0) scale(1.05);
        opacity: 1;
    }
    90% { opacity: 1; }
    100% {
        transform: translate3d(115vw, -20px, 0) scale(1.05);
        opacity: 0;
    }
}

/*  3. Floating Eco Leaves / Breeze (Save / Hnah) */
.san-leaves-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.san-float-leaf {
    position: absolute;
    font-size: 1.3rem;
    opacity: 0;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.4));
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.leaf-1 {
    left: 8%;
    bottom: -40px;
    animation: floatLeaf1 14s infinite 1s;
}
.leaf-2 {
    left: 28%;
    bottom: -40px;
    font-size: 1rem;
    animation: floatLeaf2 18s infinite 5s;
}
.leaf-3 {
    right: 14%;
    bottom: -40px;
    animation: floatLeaf1 16s infinite 3s;
}
.leaf-4 {
    right: 32%;
    bottom: -40px;
    font-size: 1.15rem;
    animation: floatLeaf2 20s infinite 8s;
}
.leaf-5 {
    left: 52%;
    bottom: -40px;
    font-size: 0.95rem;
    animation: floatLeaf1 15s infinite 11s;
}

@keyframes floatLeaf1 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }
    12% { opacity: 0.8; }
    50% {
        transform: translate3d(45px, -50vh, 0) rotate(180deg);
        opacity: 0.9;
    }
    88% { opacity: 0.6; }
    100% {
        transform: translate3d(90px, -105vh, 0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatLeaf2 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }
    12% { opacity: 0.75; }
    50% {
        transform: translate3d(-45px, -55vh, 0) rotate(-160deg);
        opacity: 0.85;
    }
    88% { opacity: 0.5; }
    100% {
        transform: translate3d(-90px, -105vh, 0) rotate(-320deg);
        opacity: 0;
    }
}

/* Glassmorphism Auth Card */
.san-auth-card-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 680px;
    margin: 2rem auto 3rem;
}

.san-auth-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0;
    border-radius: 28px;
    padding: 2.5rem 2.4rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    position: relative;
    z-index: 10;
}

/* 2-Column Responsive Form Grid */
.san-auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    margin-bottom: 1.25rem;
}

.san-auth-form-grid .grid-full {
    grid-column: 1 / -1;
}

@media (max-width: 620px) {
    .san-auth-card-wrap {
        max-width: 100%;
    }
    .san-auth-card {
        padding: 1.8rem 1.4rem;
    }
    .san-auth-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

body.dark-mode .san-auth-card {
    background: #0f172a !important;
    border: 1.5px solid #1e293b !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
    color: #f8fafc !important;
}

/* Card Header & Floating Logo */
.san-auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.san-auth-logo-box {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.san-auth-logo-img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: floatLogo 5s ease-in-out infinite;
}

.san-auth-logo-halo {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
    filter: blur(10px);
    z-index: 1;
    animation: pulseHalo 3s ease-in-out infinite alternate;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulseHalo {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.9; }
}

.san-auth-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 0 0 4px;
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #0f172a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .san-auth-title {
    background: linear-gradient(135deg, #ecfdf5 0%, #34d399 50%, #60a5fa 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.san-auth-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0 0 10px;
    line-height: 1.4;
}

body.dark-mode .san-auth-subtitle {
    color: #94a3b8 !important;
}

.san-auth-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #047857;
}

body.dark-mode .san-auth-badge-pill {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}

/* Step Progress Indicator */
.san-auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 14px;
}

body.dark-mode .san-auth-steps {
    background: rgba(255, 255, 255, 0.04) !important;
}

.san-auth-step {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    transition: color 0.25s ease;
}

.san-auth-step.active {
    color: #047857;
}

body.dark-mode .san-auth-step.active {
    color: #34d399 !important;
}

.san-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.san-auth-step.active .san-step-num {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.san-auth-step-line {
    width: 18px;
    height: 2px;
    background: #cbd5e1;
    border-radius: 2px;
}

body.dark-mode .san-auth-step-line {
    background: #334155 !important;
}

/* Form Groups & Inputs */
.san-auth-group {
    display: flex;
    flex-direction: column;
}

.san-auth-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

body.dark-mode .san-auth-label {
    color: #cbd5e1 !important;
}

.san-auth-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    font-size: 0.92rem;
    color: #0f172a;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.san-auth-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
    transform: translateY(-1px);
}

body.dark-mode .san-auth-input {
    background: #0b1120 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

body.dark-mode .san-auth-input:focus {
    border-color: #34d399 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25) !important;
}

/* Password Eye Button */
.san-auth-eye-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 6px;
    color: #64748b;
    transition: transform 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.san-auth-eye-btn:hover {
    color: #0f172a;
    transform: scale(1.15);
}

.san-auth-eye-btn:active {
    transform: scale(0.9);
}

/* Quick Fill Tag */
.san-quick-fill-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0284c7;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(2, 132, 199, 0.08);
    transition: all 0.2s ease;
}

.san-quick-fill-tag:hover {
    background: rgba(2, 132, 199, 0.18);
    transform: translateY(-1px);
}

.san-quick-fill-tag:active {
    transform: scale(0.95);
}

/* Submit Button & Micro-Interactions */
.san-auth-submit-btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px -4px rgba(5, 150, 105, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, filter 0.2s ease;
    margin-top: 18px;
}

.san-auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -6px rgba(5, 150, 105, 0.5);
    filter: brightness(1.05);
}

.san-auth-submit-btn:active:not(:disabled) {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.san-auth-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Shimmer Light Sweep on Submit Button */
.san-auth-submit-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: rotate(25deg);
    animation: btnShimmer 3.5s infinite;
}

@keyframes btnShimmer {
    0% { left: -60%; }
    25%, 100% { left: 140%; }
}

/* Shake Animation on Card on Error */
.san-auth-card.shake {
    animation: shakeCard 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeCard {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Footer Links in Card */
.san-auth-footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.82rem;
}

body.dark-mode .san-auth-footer-links {
    border-top-color: #1e293b !important;
}

.san-auth-back-link {
    color: #0284c7;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.san-auth-back-link:hover {
    color: #0369a1;
    transform: translateX(-3px);
}

.san-auth-hint {
    color: #94a3b8;
}

.san-auth-hint code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

body.dark-mode .san-auth-hint code {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}

@media (max-width: 540px) {
    .san-auth-card {
        padding: 1.8rem 1.4rem;
        border-radius: 22px;
    }
    .san-auth-title {
        font-size: 1.3rem;
    }
    .san-auth-steps {
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   NR MIZO SOLUTIONS — SANITATION MASTER ADMIN PANEL LAYOUT & STYLES
   ========================================================================== */

.san-admin-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.san-admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.san-admin-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 1.1rem;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.san-admin-toggle-btn:hover {
    background: #e2e8f0;
    color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.san-admin-toggle-btn:active,
.san-admin-toggle-btn.btn-clicked {
    transform: scale(0.88);
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d;
}

.san-admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
}

.san-admin-brand img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.san-admin-brand-title {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.2;
    color: #0f172a;
    transition: color 0.25s ease;
}

.san-admin-brand-sub {
    font-size: 0.72rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.25s ease;
}

.san-admin-brand-sub .badge-ver {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
}

.san-admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.san-admin-status-pill {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
    padding: 4px 10px;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.san-admin-status-pill .pulse-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
    animation: adminPulse 2s infinite;
}

@keyframes adminPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.san-admin-user-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 18px;
    font-size: 0.78rem;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

/* Sidebar / Left Drawer */
.san-admin-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 295px;
    max-width: 88vw;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 12px;
    overflow-y: auto;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease, border-color 0.25s ease;
}

.san-admin-nav-group {
    margin-bottom: 16px;
}

.san-admin-nav-heading {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    padding: 5px 10px 4px;
}

.san-admin-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: #475569;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    margin-bottom: 3px;
    border: 1px solid transparent;
}

.san-admin-nav-item .nav-icon {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

.san-admin-nav-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.san-admin-nav-item.active {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-weight: 700;
}

.san-admin-sidebar-footer {
    padding: 11px 10px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.38;
    transition: all 0.25s ease;
}

.san-admin-sidebar-footer strong {
    color: #0f172a;
    display: block;
    margin-bottom: 2px;
}

/* Main Content Workspace */
.san-admin-main {
    margin-top: 56px;
    margin-left: 295px;
    padding: 20px 24px;
    min-height: calc(100vh - 56px);
    background: #f8fafc;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease, color 0.25s ease;
}

.san-admin-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 850;
}

.san-admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.3rem;
    flex-wrap: wrap;
    gap: 10px;
}

.san-admin-page-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.san-admin-page-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

/* Table Pagination & Summary Bar */
.san-pagination-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-dark);
    flex-wrap: wrap;
    gap: 9px;
}

.san-pagination-summary {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--dark);
}

.san-pagination-summary .total-badge {
    background: #e2e8f0;
    color: #0f172a;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 700;
}

.san-pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.san-pagination-btn {
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.san-pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.san-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
}

.san-pagination-page-indicator {
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm);
}

.san-pagination-limit-select {
    padding: 4px 8px;
    font-size: 0.78rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-weight: 600;
    color: var(--dark);
}

.san-pagination-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 9px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* Responsive Breakpoints for Admin Panel */
@media (max-width: 960px) {
    .san-admin-toggle-btn {
        display: inline-block;
    }

    .san-admin-sidebar {
        transform: translateX(-100%);
    }

    .san-admin-sidebar.open {
        transform: translateX(0);
    }

    .san-admin-backdrop.active {
        display: block;
    }

    .san-admin-main {
        margin-left: 0;
        padding: 16px;
    }

    .san-admin-status-pill {
        display: none;
    }
}

/* Interactive Clickable Table Rows */
.san-table-interactive tbody tr {
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.1s ease;
}

.san-table-interactive tbody tr:hover {
    background-color: #f0fdf4 !important;
}

.san-table-interactive tbody tr:active {
    background-color: #dcfce7 !important;
}

/* Modern Top Floating Toast Notification */
.san-toast-container {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 90vw;
    width: 440px;
}

.san-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 12px;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.25), 0 6px 14px -3px rgba(0, 0, 0, 0.15);
    font-size: 0.92rem;
    font-weight: 600;
    animation: sanToastSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.san-toast.toast-success {
    background: #064e3b;
    color: #ecfdf5;
    border-left: 5px solid #10b981;
}

.san-toast.toast-error {
    background: #881337;
    color: #fff1f2;
    border-left: 5px solid #f43f5e;
}

.san-toast.toast-info {
    background: #0f172a;
    color: #f8fafc;
    border-left: 5px solid #38bdf8;
}

.san-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.san-toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.san-toast-close {
    background: transparent;
    border: none;
    color: currentColor;
    opacity: 0.75;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0 4px;
    border-radius: 4px;
    transition: opacity 0.15s ease;
}

.san-toast-close:hover {
    opacity: 1;
}

@keyframes sanToastSlideDown {
    from {
        opacity: 0;
        transform: translateY(-28px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.san-toast.toast-hiding {
    opacity: 0;
    transform: translateY(-20px) scale(0.92);
}

/* Bulk Action Bar & Checkbox Styling */
.san-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    animation: sanSlideInDown 0.25s ease-out;
}

@keyframes sanSlideInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.san-bulk-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
}

.san-bulk-badge {
    background: #ef4444;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.san-btn-danger {
    background: #ef4444;
    color: white;
    border: 1px solid #dc2626;
}

.san-btn-danger:hover {
    background: #dc2626;
}

.san-btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
}

.san-checkbox-cell {
    width: 60px;
    text-align: center;
    vertical-align: middle;
}

.san-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.san-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.san-sl-no {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ==========================================
   COLLECTOR PORTAL LAYOUT & THEMES
   Light Theme (Default) + Dark Theme (body.dark-mode)
   ========================================== */

/* ─── 1. TOPBAR (LIGHT MODE DEFAULT) ─── */
.san-collector-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 950;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.san-collector-topbar .san-admin-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 1.1rem;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}
.san-collector-topbar .san-admin-toggle-btn:hover {
    background: #e2e8f0;
    color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.san-collector-topbar .san-admin-toggle-btn:active,
.san-collector-topbar .san-admin-toggle-btn.btn-clicked {
    transform: scale(0.88);
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d;
}

.san-collector-topbar .san-brand-title {
    color: #0f172a;
    font-size: 0.98rem;
    transition: color 0.25s ease;
}
.san-collector-topbar .san-brand-subtitle {
    color: #64748b;
    font-size: 0.72rem;
    transition: color 0.25s ease;
}

.san-collector-topbar .san-session-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
    padding: 4px 10px;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 700;
}

.san-collector-topbar .san-pulse-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.san-collector-topbar .san-council-badge-top {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #0f172a;
    padding: 4px 10px;
    border-radius: 18px;
    font-size: 0.78rem;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

.san-collector-topbar .san-theme-toggle-btn,
.san-admin-topbar .san-theme-toggle-btn,
.san-theme-toggle-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 1rem;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.san-collector-topbar .san-theme-toggle-btn:hover,
.san-admin-topbar .san-theme-toggle-btn:hover,
.san-theme-toggle-btn:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.san-collector-topbar .san-btn-logout,
.san-collector-sidebar .san-btn-logout {
    color: #dc2626;
    border: 1px solid #fca5a5;
    background: #fef2f2;
    padding: 7px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}
.san-collector-topbar .san-btn-logout:hover,
.san-collector-sidebar .san-btn-logout:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #b91c1c;
}


/* ─── 2. LEFT DRAWER SIDEBAR (LIGHT MODE DEFAULT) ─── */
.san-collector-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 295px;
    max-width: 88vw;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 12px;
    overflow-y: auto;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease, border-color 0.25s ease;
}

.san-collector-sidebar .san-jurisdiction-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    transition: all 0.25s ease;
}
.san-collector-sidebar .san-jurisdiction-label {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.7px;
    margin-bottom: 3px;
}
.san-collector-sidebar .san-jurisdiction-name {
    color: #0f172a;
    font-size: 0.92rem;
    display: block;
    line-height: 1.2;
}
.san-collector-sidebar .san-jurisdiction-sub {
    font-size: 0.74rem;
    color: #0284c7;
    font-weight: 600;
}

.san-collector-sidebar .san-admin-nav-heading {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    padding: 5px 10px 4px;
}

.san-collector-sidebar .san-admin-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: #475569;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    margin-bottom: 3px;
    border: 1px solid transparent;
}
.san-collector-sidebar .san-admin-nav-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.san-collector-sidebar .san-admin-nav-item.active {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-weight: 700;
}

.san-collector-sidebar .san-admin-sidebar-footer {
    padding: 11px 10px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.38;
    transition: all 0.25s ease;
}
.san-collector-sidebar .san-admin-sidebar-footer .san-footer-brand {
    color: #0f172a;
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
}
.san-collector-sidebar .san-admin-sidebar-footer .san-footer-sub {
    color: #64748b;
    font-size: 0.7rem;
    display: block;
}


/* ─── 3. MAIN WORKSPACE (LIGHT MODE DEFAULT) ─── */
.san-collector-main {
    margin-top: 56px;
    margin-left: 295px;
    padding: 20px 24px;
    min-height: calc(100vh - 56px);
    background: #f8fafc;
    color: #0f172a;
    transition: margin-left 0.3s ease, background 0.25s ease, color 0.25s ease;
}
.san-collector-main.unauth,
.san-admin-main.unauth {
    margin-top: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    background: transparent !important;
}

body:has(.san-collector-main.unauth) .san-footer,
.san-collector-main.unauth ~ .san-footer,
body:has(.san-admin-main.unauth) .san-footer,
.san-admin-main.unauth ~ .san-footer {
    display: none !important;
}

@media (max-width: 960px) {
    .san-collector-sidebar,
    .san-user-sidebar {
        transform: translateX(-100%);
    }
    .san-collector-sidebar.open,
    .san-user-sidebar.open {
        transform: translateX(0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    }
    .san-collector-main,
    .san-user-main {
        margin-left: 0;
        padding: 16px;
    }
}

/* Drawer Backdrop for Mobile */
.san-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 850;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.san-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ─── Desktop / Laptop Drawer Collapse Support (> 960px) ─── */
@media (min-width: 961px) {
    /* Collector & User Portal Collapse */
    body.collector-sidebar-collapsed .san-collector-sidebar,
    body.user-sidebar-collapsed .san-collector-sidebar,
    body.user-sidebar-collapsed .san-user-sidebar {
        transform: translateX(-100%) !important;
        box-shadow: none !important;
    }
    body.collector-sidebar-collapsed .san-collector-main,
    body.user-sidebar-collapsed .san-collector-main,
    body.user-sidebar-collapsed .san-user-main {
        margin-left: 0 !important;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    body.collector-sidebar-collapsed .san-footer,
    body.user-sidebar-collapsed .san-footer {
        margin-left: 0 !important;
    }

    /* Admin Portal Collapse */
    body.admin-sidebar-collapsed .san-admin-sidebar {
        transform: translateX(-100%) !important;
        box-shadow: none !important;
    }
    body.admin-sidebar-collapsed .san-admin-main {
        margin-left: 0 !important;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    body.admin-sidebar-collapsed .san-footer {
        margin-left: 0 !important;
    }
}

/* ─── 4. ENHANCED FILTER PILLS & ACTION BUTTONS ─── */
.san-filter-pills {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

#btnFilterAll.active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
}
#btnFilterUnpaid.active {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
    border-color: #b91c1c !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
}
#btnFilterOverdue.active {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    border-color: #b45309 !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
}
#btnFilterPaid.active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    border-color: #047857 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}
#btnFilterInactive.active {
    background: #475569 !important;
    color: #ffffff !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 14px rgba(71, 85, 105, 0.25) !important;
}

body.dark-mode #btnFilterAll.active {
    background: #10b981 !important;
    color: #042f1a !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

/* Enhanced Stat Cards */
.san-collector-stat {
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
}
.san-collector-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}
.san-collector-stat:active {
    transform: scale(0.985);
}

/* =======================================================
    UNIVERSAL SEARCHABLE SELECT MODAL PICKER (SAN-SS)
   ======================================================= */
.san-ss-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: sanSsFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.2s ease;
}

@keyframes sanSsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.san-ss-modal {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    border-radius: 24px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: sanSsScaleUp 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid #e2e8f0;
}

body.dark-mode .san-ss-modal {
    background: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}

@keyframes sanSsScaleUp {
    from { transform: scale(0.94) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Mobile Bottom Sheet style */
@media (max-width: 600px) {
    .san-ss-backdrop {
        align-items: flex-end;
        padding: 0;
    }
    .san-ss-modal {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 24px 24px 0 0;
        animation: sanSsSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes sanSsSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}

.san-ss-drag-handle {
    display: none;
    width: 44px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 999px;
    margin: 10px auto 4px;
}
@media (max-width: 600px) {
    .san-ss-drag-handle {
        display: block;
    }
}

/* Header */
.san-ss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid #f1f5f9;
}
body.dark-mode .san-ss-header {
    border-bottom-color: #1e293b !important;
}

.san-ss-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.san-ss-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #059669;
}
body.dark-mode .san-ss-icon {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
}

.san-ss-title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}
body.dark-mode .san-ss-title {
    color: #f8fafc !important;
}

.san-ss-sub {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: #64748b;
}
body.dark-mode .san-ss-sub {
    color: #94a3b8 !important;
}

.san-ss-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 1rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.san-ss-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.08);
}
body.dark-mode .san-ss-close-btn {
    background: #1e293b !important;
    color: #94a3b8 !important;
}
body.dark-mode .san-ss-close-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

/* Search Bar */
.san-ss-search-wrap {
    padding: 12px 20px;
    position: relative;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
body.dark-mode .san-ss-search-wrap {
    background: #0b1120 !important;
    border-bottom-color: #1e293b !important;
}

.san-ss-search-icon {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #94a3b8;
    pointer-events: none;
}

.san-ss-search-input {
    width: 100%;
    padding: 12px 38px 12px 38px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
}
.san-ss-search-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
body.dark-mode .san-ss-search-input {
    background: #131b2e !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
body.dark-mode .san-ss-search-input:focus {
    border-color: #34d399 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
}

.san-ss-clear-btn {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    background: #cbd5e1;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Options List */
.san-ss-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 160px;
    max-height: 48vh;
}

.san-ss-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}
.san-ss-item:hover {
    background: #f0fdf4;
    border-color: #86efac;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}
.san-ss-item:active {
    transform: scale(0.98);
}
.san-ss-item.selected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08));
    border-color: #10b981;
    font-weight: 700;
}
body.dark-mode .san-ss-item {
    background: #131b2e !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
}
body.dark-mode .san-ss-item:hover {
    background: #1e293b !important;
    border-color: #059669 !important;
}
body.dark-mode .san-ss-item.selected {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: #34d399 !important;
}

.san-ss-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.san-ss-item-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}
.san-ss-item-title {
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.3;
}
body.dark-mode .san-ss-item-title {
    color: #f8fafc !important;
}
.san-ss-item-sub {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 1px;
}
body.dark-mode .san-ss-item-sub {
    color: #94a3b8 !important;
}

.san-ss-item-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #10b981;
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Empty State */
.san-ss-empty {
    padding: 36px 20px;
    text-align: center;
    color: #64748b;
}

/* Footer */
.san-ss-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}
body.dark-mode .san-ss-footer {
    border-top-color: #1e293b !important;
    background: #0b1120 !important;
}


/* ─── 4. TOAST NOTIFICATIONS (LIGHT MODE DEFAULT) ─── */
.san-toast {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}
.san-toast.toast-success, .san-toast.success {
    background: #ffffff;
    color: #065f46;
    border-left: 5px solid #10b981;
    border-top: 1px solid #a7f3d0;
    border-right: 1px solid #a7f3d0;
    border-bottom: 1px solid #a7f3d0;
}
.san-toast.toast-error, .san-toast.error {
    background: #ffffff;
    color: #991b1b;
    border-left: 5px solid #ef4444;
    border-top: 1px solid #fecaca;
    border-right: 1px solid #fecaca;
    border-bottom: 1px solid #fecaca;
}
.san-toast.toast-info, .san-toast.info {
    background: #ffffff;
    color: #075985;
    border-left: 5px solid #0284c7;
    border-top: 1px solid #bae6fd;
    border-right: 1px solid #bae6fd;
    border-bottom: 1px solid #bae6fd;
}

/* ─── 4.5. POPUP MODALS (LIGHT MODE DEFAULT) ─── */
.san-modal-content {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}
.san-modal-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}
/* =======================================================
    4.4 HOUSEHOLD DETAILS & PAYMENT HISTORY MODAL (REDESIGNED)
   ======================================================= */
.san-hd-modal-container {
    background: #ffffff;
    max-width: 960px;
    width: 95vw;
    max-height: 88vh;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    animation: sanSsScaleUp 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.san-hd-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.san-hd-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.san-hd-header-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.15);
    flex-shrink: 0;
}

.san-hd-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.san-hd-subtitle {
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 2px;
}

.san-hd-close-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.san-hd-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
    transform: rotate(90deg);
}

.san-hd-body-grid {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Left Panel (Executive Clean Drawer) */
.san-hd-left-panel {
    width: 330px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 18px 20px;
    overflow-y: auto;
    flex-shrink: 0;
}

/* 1. Citizen Identity Profile Card */
.san-hd-profile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: visible;
}

.san-hd-profile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.san-hd-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.2px;
    word-break: break-word;
}

.san-hd-guardian {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 3px;
    font-weight: 500;
}

.san-hd-guardian strong {
    color: #334155;
    font-weight: 700;
}

.san-hd-house-tag {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 4px 8px;
    text-align: center;
    flex-shrink: 0;
}

.san-hd-house-label {
    display: block;
    font-size: 0.58rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.san-hd-house-num {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
}

.san-hd-meta-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.san-hd-loc-bar {
    font-size: 0.78rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
}

.san-hd-loc-bar span:first-child {
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Contact Strip */
.san-hd-phone-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.san-hd-phone-val {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.san-hd-phone-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.san-hd-contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    transition: all 0.15s ease;
    line-height: 1;
}

.chip-call {
    background: #eff6ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.chip-call:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.chip-wa {
    background: #22c55e;
    color: #ffffff;
    border: 1px solid #16a34a;
    box-shadow: 0 1px 4px rgba(34, 197, 94, 0.25);
}

.chip-wa:hover {
    background: #16a34a;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35);
}

.san-hd-alt-phone {
    font-size: 0.75rem;
    color: #64748b;
    padding-left: 2px;
}

.san-hd-alt-phone strong {
    color: #0f172a;
}

/* 2. Unified Financial Statement Card */
.san-hd-finance-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.san-hd-finance-hero {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-bottom: 1px solid #d1fae5;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.san-hd-finance-hero-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 2px;
}

.san-hd-finance-hero-val {
    font-size: 1.45rem;
    font-weight: 900;
    color: #065f46;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.san-hd-finance-hero-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    white-space: nowrap;
}

.san-hd-finance-breakdown {
    display: flex;
    flex-direction: column;
}

.san-hd-breakdown-row {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
}

.san-hd-breakdown-row:last-child {
    border-bottom: none;
}

.san-hd-breakdown-info {
    display: flex;
    flex-direction: column;
}

.san-hd-breakdown-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
}

.san-hd-breakdown-sub {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 1px;
}

.san-hd-breakdown-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.san-hd-breakdown-val.val-arrears {
    color: #dc2626;
}

.san-hd-notes-box {
    background: #fffbeb;
    border-top: 1px solid #fef3c7;
    padding: 9px 14px;
    font-size: 0.76rem;
    color: #92400e;
    line-height: 1.35;
}

/* 3. Action Buttons */
.san-hd-left-footer {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.san-hd-btn-collect {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.san-hd-btn-collect:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.san-hd-paid-settled-box {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1.5px solid #6ee7b7;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.san-hd-paid-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.san-hd-paid-content {
    flex: 1;
    min-width: 0;
}

.san-hd-paid-title {
    font-weight: 800;
    font-size: 0.88rem;
    color: #065f46;
    line-height: 1.2;
}

.san-hd-paid-desc {
    font-size: 0.72rem;
    color: #047857;
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.2;
}

.san-hd-actions-sub {
    display: flex;
    gap: 8px;
}

.san-hd-actions-sub .san-btn {
    flex: 1;
    justify-content: center;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 5px;
}

/* Right Panel: Payment History */
.san-hd-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
}

.san-hd-sub-header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
    background: #fafafa;
}

.san-hd-sub-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.san-hd-table-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px;
}

.san-hd-table-container {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.san-hd-table {
    width: 100%;
    margin: 0;
    font-size: 0.85rem;
}

.san-hd-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px 14px;
    border-bottom: 1.5px solid #e2e8f0;
    z-index: 2;
}

.san-hd-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.san-hd-table tbody tr:hover {
    background: #f8fafc;
}

/* Responsive */
@media (max-width: 860px) {
    .san-hd-modal-container {
        max-height: 94vh;
        width: 98vw;
        border-radius: 18px;
    }
    .san-hd-body-grid {
        flex-direction: column;
        overflow-y: auto;
    }
    .san-hd-left-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        overflow-y: visible;
    }
    .san-hd-table-wrap {
        padding: 14px;
    }
}

/* =======================================================
    5. DARK MODE THEME SYSTEM (body.dark-mode)
   ======================================================= */
body.dark-mode {
    background: #090d16 !important;
    color: #f1f5f9 !important;
    --gray-bg: #0b1120;
    --gray-card: #131b2e;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --dark: #f8fafc;
}

/* ─── 5.1. HOME HEADER & GATEWAY IN DARK MODE ─── */
body.dark-mode .san-header {
    background: linear-gradient(135deg, #090d16 0%, #0f172a 50%, #1e293b 100%) !important;
    border-bottom: 1px solid #1e293b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .san-gateway-hero h2 {
    color: #f8fafc !important;
}
body.dark-mode .san-gateway-hero p {
    color: #94a3b8 !important;
}
body.dark-mode .san-gateway-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}
body.dark-mode .san-gateway-card {
    background: #131b2e !important;
    border: 1px solid #1e293b !important;
    color: #f8fafc !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .san-gateway-card.citizen:hover {
    border-color: #10b981 !important;
    background: linear-gradient(180deg, #131b2e 0%, #064e3b 100%) !important;
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.25) !important;
}
body.dark-mode .san-gateway-card.collector:hover {
    border-color: #0284c7 !important;
    background: linear-gradient(180deg, #131b2e 0%, #0c4a6e 100%) !important;
    box-shadow: 0 16px 36px rgba(2, 132, 199, 0.25) !important;
}
body.dark-mode .san-gateway-card-title {
    color: #f8fafc !important;
}
body.dark-mode .san-gateway-desc {
    color: #94a3b8 !important;
}
body.dark-mode .san-gateway-features {
    color: #cbd5e1 !important;
}
body.dark-mode .san-gateway-features li span {
    background: #1e293b !important;
    border-radius: 6px;
    padding: 2px 5px;
}
body.dark-mode .san-gateway-icon.citizen-icon {
    background: linear-gradient(135deg, #064e3b, #047857) !important;
    color: #ecfdf5 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode .san-gateway-icon.collector-icon {
    background: linear-gradient(135deg, #0c4a6e, #0369a1) !important;
    color: #f0f9ff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

/* ─── 5.2. CITIZEN PORTAL IN DARK MODE ─── */
body.dark-mode #citizenLoginCard,
body.dark-mode #citizenDashboard,
body.dark-mode #citizenScheduleCard {
    background: #131b2e !important;
    border: 1px solid #1e293b !important;
    color: #f8fafc !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Hero Bill Card in Dark Mode */
body.dark-mode .bill-hero-card {
    background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%) !important;
    border: 1.5px solid #059669 !important;
    color: #f8fafc !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .bill-hero-card h2,
body.dark-mode #displayUserName {
    color: #ffffff !important;
}
body.dark-mode #displayUserAddress,
body.dark-mode #displayHouseNo,
body.dark-mode #displayLocality,
body.dark-mode #displayLC {
    color: #cbd5e1 !important;
}
body.dark-mode .bill-amount-badge {
    color: #34d399 !important;
    text-shadow: 0 0 16px rgba(52, 211, 153, 0.25);
}

/* Bill Breakdown Box in Dark Mode */
body.dark-mode .bill-breakdown-box {
    background: #1e293b !important;
    border: 1.5px solid #334155 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}
body.dark-mode .bill-breakdown-row {
    border-bottom: 1px dashed #334155 !important;
    color: #f1f5f9 !important;
}
body.dark-mode .bill-breakdown-row .breakdown-label {
    color: #94a3b8 !important;
}
body.dark-mode .bill-breakdown-row .breakdown-label.arrears {
    color: #f87171 !important;
}
body.dark-mode .bill-breakdown-row .breakdown-val {
    color: #f8fafc !important;
}
body.dark-mode .bill-breakdown-row .breakdown-val.arrears {
    color: #f87171 !important;
}
body.dark-mode .bill-breakdown-row.total {
    border-top: 2px solid #10b981 !important;
    color: #ffffff !important;
}
body.dark-mode .bill-breakdown-row .breakdown-total-val,
body.dark-mode #displayBreakdownTotal {
    color: #34d399 !important;
}

/* Stat Boxes in Dark Mode */
body.dark-mode .san-stat-box {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}
body.dark-mode .san-stat-label {
    color: #94a3b8 !important;
}
body.dark-mode .san-stat-val {
    color: #f8fafc !important;
}

/* User Sidebar Profile Card in Dark Mode */
body.dark-mode .san-user-profile-box {
    background: #0f172a !important;
    border: 1px solid #064e3b !important;
}
body.dark-mode .san-user-profile-box .san-jurisdiction-label {
    color: #34d399 !important;
}
body.dark-mode .san-user-profile-box .san-jurisdiction-name {
    color: #f8fafc !important;
}
body.dark-mode .san-user-profile-box .san-user-houseno {
    color: #6ee7b7 !important;
}
body.dark-mode .san-user-profile-box .san-jurisdiction-sub {
    color: #94a3b8 !important;
}

/* Due Date Alert in Dark Mode */
body.dark-mode #dueDateAlert,
body.dark-mode .san-notice-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
body.dark-mode .san-notice-card strong {
    color: #f8fafc !important;
}

/* Action Buttons Outline in Dark Mode */
body.dark-mode .san-btn-outline {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
body.dark-mode .san-btn-outline:hover {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

/* Table in Dark Mode */
body.dark-mode .san-table {
    color: #f1f5f9 !important;
}
body.dark-mode .san-table th {
    background: #0b1120 !important;
    color: #94a3b8 !important;
    border-bottom: 2px solid #1e293b !important;
}
body.dark-mode .san-table td {
    border-bottom: 1px solid #1e293b !important;
    color: #cbd5e1 !important;
}
body.dark-mode .san-table tr:hover td {
    background: rgba(255, 255, 255, 0.03) !important;
}
body.dark-mode .san-table code {
    background: #1e293b !important;
    color: #38bdf8 !important;
    border: 1px solid #334155 !important;
}

/* House Number Badge in Dark Mode */
body.dark-mode .san-house-badge {
    background: #1e293b !important;
    color: #38bdf8 !important;
    border-color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Badges in Dark Mode */
body.dark-mode .san-badge-info {
    background: rgba(14, 165, 233, 0.15) !important;
    color: #38bdf8 !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
}
body.dark-mode .san-badge-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}
body.dark-mode .san-badge-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}
body.dark-mode .san-badge-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}
body.dark-mode .san-badge-purple {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
    border-color: rgba(168, 85, 247, 0.35) !important;
}
body.dark-mode .san-badge-secondary {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

/* Universal Fallback for inline light backgrounds on text elements in dark mode */
body.dark-mode strong[style*="background: #f1f5f9"],
body.dark-mode strong[style*="background:#f1f5f9"],
body.dark-mode span[style*="background: #f1f5f9"],
body.dark-mode span[style*="background:#f1f5f9"],
body.dark-mode code[style*="background: #f1f5f9"],
body.dark-mode code[style*="background:#f1f5f9"],
body.dark-mode .san-table strong[style*="monospace"],
body.dark-mode .san-table td strong[style*="background"],
body.dark-mode .san-hd-table td strong[style*="background"],
body.dark-mode [style*="color: #334155"],
body.dark-mode [style*="color:#334155"] {
    background: #1e293b !important;
    color: #38bdf8 !important;
    border-color: #334155 !important;
}

/* Schedules Tab in Dark Mode */
body.dark-mode #scheduleListContainer > div {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f1f5f9 !important;
}

/* Segregation Guides in Dark Mode */
body.dark-mode #tabGuide > .san-card > .san-grid-3 > div:nth-child(1) {
    background: #064e3b !important;
    border: 1.5px solid #059669 !important;
}
body.dark-mode #tabGuide > .san-card > .san-grid-3 > div:nth-child(1) strong {
    color: #6ee7b7 !important;
}
body.dark-mode #tabGuide > .san-card > .san-grid-3 > div:nth-child(1) span {
    color: #a7f3d0 !important;
}
body.dark-mode #tabGuide > .san-card > .san-grid-3 > div:nth-child(1) ul {
    color: #ecfdf5 !important;
}

body.dark-mode #tabGuide > .san-card > .san-grid-3 > div:nth-child(2) {
    background: #0c4a6e !important;
    border: 1.5px solid #0284c7 !important;
}
body.dark-mode #tabGuide > .san-card > .san-grid-3 > div:nth-child(2) strong {
    color: #7dd3fc !important;
}
body.dark-mode #tabGuide > .san-card > .san-grid-3 > div:nth-child(2) span {
    color: #bae6fd !important;
}
body.dark-mode #tabGuide > .san-card > .san-grid-3 > div:nth-child(2) ul {
    color: #f0f9ff !important;
}

body.dark-mode #tabGuide > .san-card > .san-grid-3 > div:nth-child(3) {
    background: #7f1d1d !important;
    border: 1.5px solid #dc2626 !important;
}
body.dark-mode #tabGuide > .san-card > .san-grid-3 > div:nth-child(3) strong {
    color: #fca5a5 !important;
}
body.dark-mode #tabGuide > .san-card > .san-grid-3 > div:nth-child(3) span {
    color: #fecaca !important;
}
body.dark-mode #tabGuide > .san-card > .san-grid-3 > div:nth-child(3) ul {
    color: #fef2f2 !important;
}

/* Contacts Tab in Dark Mode */
body.dark-mode #tabContact > .san-card > .san-grid-2 > div {
    background: #1e293b !important;
    border: 1.5px solid #334155 !important;
}
body.dark-mode #tabContact strong {
    color: #f8fafc !important;
}
body.dark-mode #tabContact p {
    color: #94a3b8 !important;
}

/* Digital Receipt Modal in Dark Mode */
body.dark-mode .san-modal-content {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    color: #f8fafc !important;
}
body.dark-mode .san-receipt {
    background: #0b1120 !important;
    border: 1.5px solid #1e293b !important;
    color: #f8fafc !important;
}
body.dark-mode .san-receipt-header {
    border-bottom: 1px solid #1e293b !important;
}
body.dark-mode .san-receipt-header h3 {
    color: #34d399 !important;
}
body.dark-mode .san-receipt div {
    color: #cbd5e1 !important;
}
body.dark-mode .san-receipt strong {
    color: #f8fafc !important;
}

body.dark-mode .san-bill-card {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    color: #f8fafc !important;
}
body.dark-mode .san-bill-row {
    border-bottom-color: #1e293b !important;
}
body.dark-mode .san-bill-total {
    border-top-color: #334155 !important;
    color: #f8fafc !important;
}
body.dark-mode .san-schedule-item {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    color: #f8fafc !important;
}
body.dark-mode .san-tab-btn {
    color: #94a3b8 !important;
    border-color: transparent !important;
}
body.dark-mode .san-tab-btn:hover {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.05) !important;
}
body.dark-mode .san-tab-btn.active {
    color: #34d399 !important;
    border-bottom-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

/* ─── 5.3. ADMIN PORTAL IN DARK MODE ─── */
body.dark-mode .san-admin-topbar {
    background: #0b0f19 !important;
    border-bottom: 1px solid #1e293b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}
body.dark-mode .san-admin-sidebar {
    background: #0b0f19 !important;
    border-right: 1px solid #1e293b !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .san-admin-nav-heading {
    color: #64748b !important;
}
body.dark-mode .san-admin-nav-item {
    color: #94a3b8 !important;
}
body.dark-mode .san-admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f8fafc !important;
}
body.dark-mode .san-admin-nav-item.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2)) !important;
    color: #34d399 !important;
    border-left: 4px solid #10b981 !important;
}
body.dark-mode .san-admin-sidebar-footer {
    background: #060911 !important;
    border: 1px solid #1e293b !important;
    color: #94a3b8 !important;
}
body.dark-mode .san-admin-sidebar-footer strong {
    color: #f8fafc !important;
}
body.dark-mode .san-admin-main {
    background: #060911 !important;
    color: #f1f5f9 !important;
}
body.dark-mode .san-admin-page-header {
    border-bottom: 1px solid #1e293b !important;
}
body.dark-mode .san-admin-page-title {
    color: #f8fafc !important;
}
body.dark-mode .san-admin-page-desc {
    color: #94a3b8 !important;
}
body.dark-mode .san-admin-card,
body.dark-mode .san-tab-content.san-card {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    color: #f8fafc !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .san-admin-brand {
    color: #f8fafc !important;
}
body.dark-mode .san-admin-brand-title {
    color: #f8fafc !important;
}
body.dark-mode .san-admin-brand-sub {
    color: #94a3b8 !important;
}
body.dark-mode .san-admin-user-pill {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}
body.dark-mode .san-admin-status-pill {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}
body.dark-mode .san-admin-toggle-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
}
body.dark-mode #btnAdminDarkToggle {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #f8fafc !important;
}
body.dark-mode #adminLoginSection {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    color: #f8fafc !important;
}

/* ─── Channel Boxes in Dark Mode ─── */
body.dark-mode .san-channel-box.rzp {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}
body.dark-mode .san-channel-box.rzp .channel-title,
body.dark-mode .san-channel-box.rzp .channel-amount {
    color: #34d399 !important;
}
body.dark-mode .san-channel-box.cash {
    background: rgba(2, 132, 199, 0.12) !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
}
body.dark-mode .san-channel-box.cash .channel-title,
body.dark-mode .san-channel-box.cash .channel-amount {
    color: #38bdf8 !important;
}
body.dark-mode .san-channel-box .channel-subtitle {
    color: #94a3b8 !important;
}

/* ─── Stat Icons & Badges in Dark Mode ─── */
body.dark-mode .san-stat-icon.green {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}
body.dark-mode .san-stat-icon.blue {
    background: rgba(2, 132, 199, 0.18) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
}
body.dark-mode .san-stat-icon.amber {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}
body.dark-mode .san-stat-icon.purple {
    background: rgba(168, 85, 247, 0.18) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
}

/* ─── Pagination in Dark Mode ─── */
body.dark-mode .san-pagination-header {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    color: #f1f5f9 !important;
}
body.dark-mode .san-pagination-header .san-pagination-summary {
    color: #f1f5f9 !important;
}
body.dark-mode .san-pagination-header .san-pagination-summary .total-badge {
    background: #1e293b !important;
    color: #38bdf8 !important;
    border: 1px solid #334155 !important;
}
body.dark-mode .san-pagination-header .san-pagination-controls label {
    color: #94a3b8 !important;
}
body.dark-mode .san-pagination-footer {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    color: #94a3b8 !important;
}
body.dark-mode .san-pagination-btn {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}
body.dark-mode .san-pagination-btn:hover:not(:disabled) {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}
body.dark-mode .san-pagination-btn:disabled {
    background: #0b0f19 !important;
    color: #475569 !important;
    border-color: #1e293b !important;
}
body.dark-mode .san-pagination-page-indicator {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}
body.dark-mode .san-pagination-limit-select {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

/* ─── Bulk Action Bars in Dark Mode ─── */
body.dark-mode .san-bulk-bar {
    background: #1e1b4b !important;
    border: 1px solid #4338ca !important;
    color: #e0e7ff !important;
}
body.dark-mode .san-bulk-badge {
    background: #4338ca !important;
    color: #ffffff !important;
}

/* ─── Settings Tab in Dark Mode ─── */
body.dark-mode #tabPaymentSettings h4 {
    color: #34d399 !important;
}
body.dark-mode #tabPaymentSettings div[style*="border-top"] {
    border-top-color: #1e293b !important;
}
body.dark-mode #tabPaymentSettings label {
    color: #cbd5e1 !important;
}

/* ─── 5.4. COLLECTOR PORTAL IN DARK MODE ─── */
/* Main content workspace */
body.dark-mode .san-collector-main {
    background: #060911 !important;
    color: #f1f5f9 !important;
}

/* ─── Topbar in Dark Mode ─── */
body.dark-mode .san-collector-topbar {
    background: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .san-collector-topbar .san-admin-toggle-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
}
body.dark-mode .san-collector-topbar .san-admin-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}
body.dark-mode .san-collector-topbar .san-brand-title {
    color: #f8fafc !important;
}
body.dark-mode .san-collector-topbar .san-brand-subtitle {
    color: #94a3b8 !important;
}
body.dark-mode .san-collector-topbar .san-council-badge-top {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
}
body.dark-mode .san-collector-topbar .san-session-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}
body.dark-mode .san-collector-topbar .san-theme-toggle-btn,
body.dark-mode .san-admin-topbar .san-theme-toggle-btn,
body.dark-mode .san-theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #f8fafc !important;
}
body.dark-mode .san-collector-topbar .san-theme-toggle-btn:hover,
body.dark-mode .san-admin-topbar .san-theme-toggle-btn:hover,
body.dark-mode .san-theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}
body.dark-mode .san-collector-topbar .san-btn-logout,
body.dark-mode .san-collector-sidebar .san-btn-logout {
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    background: rgba(239, 68, 68, 0.12) !important;
}
body.dark-mode .san-collector-sidebar .san-btn-logout:hover {
    background: rgba(239, 68, 68, 0.22) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #fecaca !important;
}

/* ─── Left Drawer Sidebar in Dark Mode ─── */
body.dark-mode .san-collector-sidebar {
    background: #0f172a !important;
    border-right: 1px solid #1e293b !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .san-collector-sidebar .san-jurisdiction-box {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}
body.dark-mode .san-collector-sidebar .san-jurisdiction-label {
    color: #94a3b8 !important;
}
body.dark-mode .san-collector-sidebar .san-jurisdiction-name {
    color: #f8fafc !important;
}
body.dark-mode .san-collector-sidebar .san-jurisdiction-sub {
    color: #38bdf8 !important;
}
body.dark-mode .san-collector-sidebar .san-admin-nav-heading {
    color: #64748b !important;
}
body.dark-mode .san-collector-sidebar .san-admin-nav-item {
    color: #94a3b8 !important;
}
body.dark-mode .san-collector-sidebar .san-admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f8fafc !important;
}
body.dark-mode .san-collector-sidebar .san-admin-nav-item.active {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}
body.dark-mode .san-collector-sidebar .san-admin-sidebar-footer {
    background: #060911 !important;
    border: 1px solid #1e293b !important;
    color: #94a3b8 !important;
}
body.dark-mode .san-collector-sidebar .san-admin-sidebar-footer .san-footer-brand {
    color: #f8fafc !important;
}
body.dark-mode .san-collector-sidebar .san-admin-sidebar-footer .san-footer-sub {
    color: #94a3b8 !important;
}

/* ─── Cards & Stat Blocks in Dark Mode ─── */
body.dark-mode .san-card,
body.dark-mode .san-stat-card,
body.dark-mode .san-table-responsive {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}
body.dark-mode .san-card-header {
    border-bottom-color: #1e293b !important;
}
body.dark-mode .san-card-title {
    color: #f8fafc !important;
}

/* ─── Tables in Dark Mode ─── */
body.dark-mode .san-table thead th {
    background: #0b0f19 !important;
    color: #94a3b8 !important;
    border-color: #1e293b !important;
}
body.dark-mode .san-table tbody tr {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    border-color: #1e293b !important;
}
body.dark-mode .san-table tbody tr:hover {
    background: #1e293b !important;
}
body.dark-mode .san-table td,
body.dark-mode .san-table th {
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

/* ─── Inputs, Selects & Forms in Dark Mode ─── */
body.dark-mode .san-input,
body.dark-mode .san-select,
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #0b0f19 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #475569 !important;
}
body.dark-mode select option {
    background: #0f172a !important;
    color: #f8fafc !important;
}

/* Autofill Dark Mode Fix */
body.dark-mode input:-webkit-autofill,
body.dark-mode input:-webkit-autofill:hover, 
body.dark-mode input:-webkit-autofill:focus, 
body.dark-mode input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0b0f19 inset !important;
    -webkit-text-fill-color: #f8fafc !important;
    caret-color: #f8fafc !important;
    border-color: #334155 !important;
}

/* Password Eye Buttons in Dark Mode */
body.dark-mode .san-pwd-eye-btn {
    color: #94a3b8 !important;
}
body.dark-mode .san-pwd-eye-btn:hover {
    background: #1e293b !important;
    color: #f8fafc !important;
}

/* Code & Password Badges in Dark Mode */
body.dark-mode .san-code-badge {
    background: #1e293b !important;
    color: #38bdf8 !important;
    border: 1px solid #334155 !important;
}
body.dark-mode .san-pwd-badge {
    background: rgba(99, 102, 241, 0.18) !important;
    color: #a5b4fc !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
}
body.dark-mode .san-pwd-badge:hover {
    background: rgba(99, 102, 241, 0.28) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    color: #c7d2fe !important;
}

/* ─── Headings, Text & Badges in Dark Mode ─── */
body.dark-mode h1, body.dark-mode h2,
body.dark-mode h3, body.dark-mode h4, body.dark-mode h5 {
    color: #f8fafc !important;
}
body.dark-mode .san-admin-page-title {
    color: #f8fafc !important;
}
body.dark-mode .san-admin-page-desc {
    color: #94a3b8 !important;
}

/* ─── Buttons in Dark Mode ─── */
body.dark-mode .san-btn-outline {
    border-color: #334155 !important;
    color: #cbd5e1 !important;
    background: transparent !important;
}
body.dark-mode .san-btn-outline:hover {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}
body.dark-mode .san-btn-secondary {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
body.dark-mode .san-btn-secondary:hover {
    background: #334155 !important;
}

/* ─── Inline Style Overrides in Dark Mode ─── */
body.dark-mode div[style*="background: white"],
body.dark-mode div[style*="background:white"],
body.dark-mode div[style*="background: #ffffff"],
body.dark-mode div[style*="background:#f8fafc"],
body.dark-mode div[style*="background: #f8fafc"],
body.dark-mode div[style*="background: #f1f5f9"],
body.dark-mode div[style*="background:#f1f5f9"],
body.dark-mode div[style*="background: #ecfdf5"],
body.dark-mode div[style*="background:#ecfdf5"],
body.dark-mode div[style*="background: #f0f9ff"],
body.dark-mode div[style*="background:#f0f9ff"],
body.dark-mode div[style*="background: #eff6ff"],
body.dark-mode div[style*="background:#eff6ff"],
body.dark-mode div[style*="background: rgb(248"] {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}
body.dark-mode div[style*="background: #f0fdf4"],
body.dark-mode div[style*="background:#f0fdf4"] {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #86efac !important;
}
body.dark-mode div[style*="background: #fffbeb"],
body.dark-mode div[style*="background:#fffbeb"] {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #fde68a !important;
}
body.dark-mode div[style*="background: #fef2f2"],
body.dark-mode div[style*="background:#fef2f2"],
body.dark-mode div[style*="background: #fee2e2"] {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}
body.dark-mode [style*="color: var(--dark)"] {
    color: #f8fafc !important;
}
body.dark-mode [style*="color: #1e293b"] {
    color: #f8fafc !important;
}
body.dark-mode [style*="color: var(--text-dark)"] {
    color: #f8fafc !important;
}

/* ─── Modals in Dark Mode ─── */
body.dark-mode .san-modal-content {
    background: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
}
body.dark-mode .san-modal-header {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
    color: #f8fafc !important;
}
body.dark-mode .san-modal-header h3 {
    color: #34d399 !important;
}
body.dark-mode .san-modal-header [style*="color: var(--primary-dark)"] {
    color: #34d399 !important;
}
body.dark-mode .san-modal-close {
    background: #334155 !important;
    color: #94a3b8 !important;
}
body.dark-mode .san-modal-close:hover {
    background: #7f1d1d !important;
    color: #fca5a5 !important;
}
body.dark-mode .san-modal-footer {
    background: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-mode .san-hd-modal-container {
    background: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .san-hd-modal-header {
    background: #0b1120 !important;
    border-bottom: 1px solid #1e293b !important;
}
body.dark-mode .san-hd-header-badge {
    background: #132e22 !important;
    box-shadow: none !important;
}
body.dark-mode .san-hd-title {
    color: #f8fafc !important;
}
body.dark-mode .san-hd-subtitle {
    color: #94a3b8 !important;
}
body.dark-mode .san-hd-close-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}
body.dark-mode .san-hd-close-btn:hover {
    background: #7f1d1d !important;
    color: #fca5a5 !important;
}
body.dark-mode .san-hd-left-panel {
    background: #0b1120 !important;
    border-right: 1px solid #1e293b !important;
    border-bottom: 1px solid #1e293b !important;
}
body.dark-mode .san-hd-profile-card {
    background: #131b2e !important;
    border-color: #1e293b !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode .san-hd-name {
    color: #f8fafc !important;
}
body.dark-mode .san-hd-guardian {
    color: #94a3b8 !important;
}
body.dark-mode .san-hd-guardian strong {
    color: #e2e8f0 !important;
}
body.dark-mode .san-hd-house-tag {
    background: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-mode .san-hd-house-label {
    color: #94a3b8 !important;
}
body.dark-mode .san-hd-house-num {
    color: #38bdf8 !important;
}
body.dark-mode .san-hd-loc-bar {
    color: #94a3b8 !important;
}
body.dark-mode .san-hd-phone-row {
    background: #0b1120 !important;
    border-color: #1e293b !important;
}
body.dark-mode .san-hd-phone-val {
    color: #f1f5f9 !important;
}
body.dark-mode .chip-call {
    background: rgba(2, 132, 199, 0.15) !important;
    color: #38bdf8 !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
}
body.dark-mode .san-hd-alt-phone {
    color: #94a3b8 !important;
}
body.dark-mode .san-hd-alt-phone strong {
    color: #f8fafc !important;
}
body.dark-mode .san-hd-finance-card {
    background: #131b2e !important;
    border-color: #1e293b !important;
}
body.dark-mode .san-hd-finance-hero {
    background: linear-gradient(135deg, #062d1d 0%, #064e3b 100%) !important;
    border-bottom-color: #047857 !important;
}
body.dark-mode .san-hd-finance-hero-label {
    color: #6ee7b7 !important;
}
body.dark-mode .san-hd-finance-hero-val {
    color: #a7f3d0 !important;
}
body.dark-mode .san-hd-finance-hero-badge {
    background: #064e3b !important;
    color: #a7f3d0 !important;
    border-color: #059669 !important;
}
body.dark-mode .san-hd-breakdown-row {
    border-bottom-color: #1e293b !important;
}
body.dark-mode .san-hd-breakdown-name {
    color: #e2e8f0 !important;
}
body.dark-mode .san-hd-breakdown-sub {
    color: #64748b !important;
}
body.dark-mode .san-hd-breakdown-val {
    color: #f8fafc !important;
}
body.dark-mode .san-hd-breakdown-val.val-arrears {
    color: #f87171 !important;
}
body.dark-mode .san-hd-notes-box {
    background: #291804 !important;
    border-top-color: #78350f !important;
    color: #fde68a !important;
}
body.dark-mode .san-hd-right-panel {
    background: #0f172a !important;
}
body.dark-mode .san-hd-sub-header {
    background: #0b1120 !important;
    border-bottom: 1px solid #1e293b !important;
}
body.dark-mode .san-hd-sub-title {
    color: #f8fafc !important;
}
body.dark-mode .san-hd-table-container {
    border-color: #1e293b !important;
    background: #0f172a !important;
}
body.dark-mode .san-hd-table thead th {
    background: #0b1120 !important;
    border-bottom: 1.5px solid #1e293b !important;
    color: #cbd5e1 !important;
}
body.dark-mode .san-hd-table tbody td {
    border-bottom: 1px solid #1e293b !important;
    color: #f8fafc !important;
}
body.dark-mode .san-hd-table tbody tr:hover {
    background: #1e293b !important;
}
body.dark-mode .san-hd-paid-settled-box {
    background: #064e3b !important;
    border-color: #059669 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode .san-hd-paid-title {
    color: #a7f3d0 !important;
}
body.dark-mode .san-hd-paid-desc {
    color: #6ee7b7 !important;
}
body.dark-mode .san-receipt {
    background: #131b2e !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}


/* ─── Toasts in Dark Mode ─── */
body.dark-mode .san-toast {
    background: #131b2e !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}
body.dark-mode .san-toast.toast-success, body.dark-mode .san-toast.success {
    background: #064e3b !important;
    color: #ecfdf5 !important;
    border-left: 5px solid #10b981 !important;
    border-color: #059669 !important;
}
body.dark-mode .san-toast.toast-error, body.dark-mode .san-toast.error {
    background: #881337 !important;
    color: #fff1f2 !important;
    border-left: 5px solid #f43f5e !important;
    border-color: #be123c !important;
}
body.dark-mode .san-toast.toast-info, body.dark-mode .san-toast.info {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-left: 5px solid #38bdf8 !important;
    border-color: #334155 !important;
}

/* ─── 6. FOOTERS (LIGHT & DARK MODE) ─── */
.san-footer {
    background: #ffffff;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    margin-top: auto;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.san-footer a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}
.san-footer a:hover {
    text-decoration: underline;
}

/* Footer on Collector and Admin layouts accounts for sidebar */
.san-collector-sidebar:not([style*="display: none"]) ~ .san-footer,
.san-admin-sidebar:not([style*="display: none"]) ~ .san-footer,
.san-user-sidebar:not([style*="display: none"]) ~ .san-footer,
body:has(.san-collector-sidebar:not([style*="display: none"])) .san-footer,
body:has(.san-admin-sidebar:not([style*="display: none"])) .san-footer,
body:has(.san-user-sidebar:not([style*="display: none"])) .san-footer {
    margin-left: 295px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 960px) {
    .san-collector-sidebar:not([style*="display: none"]) ~ .san-footer,
    .san-admin-sidebar:not([style*="display: none"]) ~ .san-footer,
    .san-user-sidebar:not([style*="display: none"]) ~ .san-footer,
    body:has(.san-collector-sidebar:not([style*="display: none"])) .san-footer,
    body:has(.san-admin-sidebar:not([style*="display: none"])) .san-footer,
    body:has(.san-user-sidebar:not([style*="display: none"])) .san-footer {
        margin-left: 0 !important;
    }
}

/* Dark Mode Footers */
body.dark-mode .san-footer {
    background: #090d16 !important;
    border-top: 1px solid #1e293b !important;
    color: #94a3b8 !important;
}
body.dark-mode .san-footer a {
    color: #38bdf8 !important;
}

/* Dark Mode Pagination & Table Footers */
body.dark-mode .san-pagination-footer {
    background: #0b1120 !important;
    border-top: 1px solid #1e293b !important;
    color: #94a3b8 !important;
}
body.dark-mode .san-pagination-btn {
    background: #131b2e !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
body.dark-mode .san-pagination-btn:hover:not(:disabled) {
    background: #1e293b !important;
    color: #34d399 !important;
    border-color: #059669 !important;
}
body.dark-mode .san-pagination-btn:disabled {
    background: #0b1120 !important;
    color: #475569 !important;
    border-color: #1e293b !important;
}
body.dark-mode .san-pagination-page-indicator {
    background: #064e3b !important;
    border-color: #059669 !important;
    color: #ecfdf5 !important;
}
body.dark-mode .san-pagination-limit-select {
    background: #0b1120 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}



/* ─── Clean Minimalist Global Footer ─────────────────────────────────────── */
.san-clean-footer {
    border-top: 1px solid #e2e8f0;
    padding: 2rem 1.25rem;
    text-align: center;
    background: #ffffff;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

body.dark-mode .san-clean-footer {
    background: #0f172a;
    border-top-color: #1e293b;
}

.san-footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.san-footer-nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

body.dark-mode .san-footer-nav a {
    color: #94a3b8;
}

.san-footer-nav a:hover {
    color: #047857;
    text-decoration: underline;
}

body.dark-mode .san-footer-nav a:hover {
    color: #34d399;
}

.san-clean-footer p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}


/* ─── Professional Digital Receipt Styles ────────────────────────── */
.san-receipt-document {
    background: #ffffff;
    border: 2px solid #a7f3d0;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.06);
    position: relative;
    box-sizing: border-box;
}

body.dark-mode .san-receipt-document {
    background: #0f172a;
    border-color: #065f46;
}

.san-rcpt-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.san-rcpt-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.san-rcpt-title-wrap {
    flex: 1;
}

.san-rcpt-title {
    font-size: 1.12rem;
    font-weight: 900;
    color: #065f46;
    margin: 0;
    letter-spacing: -0.2px;
    line-height: 1.2;
}
body.dark-mode .san-rcpt-title {
    color: #34d399;
}

.san-rcpt-subtitle {
    font-size: 0.78rem;
    color: #334155;
    margin: 2px 0 0 0;
    font-weight: 700;
}
body.dark-mode .san-rcpt-subtitle {
    color: #94a3b8;
}

.san-rcpt-org {
    font-size: 0.72rem;
    color: #64748b;
    display: block;
    margin-top: 1px;
}

.san-rcpt-stamp-badge {
    background: #ecfdf5;
    border: 1.5px solid #10b981;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: nowrap;
}

.san-rcpt-divider {
    height: 1.5px;
    background: #e2e8f0;
    margin: 16px 0;
}
body.dark-mode .san-rcpt-divider {
    background: #334155;
}

.san-rcpt-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 16px;
    margin-bottom: 14px;
}

.san-rcpt-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.san-rcpt-val {
    font-size: 0.88rem;
    color: #0f172a;
    font-weight: 600;
}
body.dark-mode .san-rcpt-val {
    color: #f8fafc;
}

.san-rcpt-mono-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    font-weight: 800;
    color: #047857;
}

.san-rcpt-citizen-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
body.dark-mode .san-rcpt-citizen-card {
    background: #1e293b;
    border-color: #334155;
}

.san-rcpt-citizen-heading {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #047857;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.san-rcpt-citizen-name {
    font-size: 1rem;
    font-weight: 900;
    color: #0f172a;
}
body.dark-mode .san-rcpt-citizen-name {
    color: #f8fafc;
}

.san-rcpt-citizen-sub {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 2px;
}

.san-rcpt-table-wrap {
    margin-bottom: 14px;
}

.san-rcpt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.san-rcpt-table th {
    text-align: left;
    padding: 8px 0;
    color: #64748b;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 800;
    border-bottom: 1.5px solid #cbd5e1;
}

.san-rcpt-table td {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}
body.dark-mode .san-rcpt-table td {
    color: #f8fafc;
    border-bottom-color: #334155;
}

.san-rcpt-total-row td {
    border-top: 2px solid #10b981;
    border-bottom: none;
    padding-top: 12px;
}

.san-rcpt-footer-note {
    background: #f0fdf4;
    border: 1px dashed #86efac;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.75rem;
    color: #065f46;
    line-height: 1.45;
}
body.dark-mode .san-rcpt-footer-note {
    background: rgba(16, 185, 129, 0.1);
    border-color: #059669;
    color: #6ee7b7;
}

/* ─── CITIZEN HELP & CONTACT CARDS ──────────────────────────────── */
.san-contact-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.san-contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

body.dark-mode .san-contact-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .san-contact-card strong,
body.dark-mode .san-contact-card h3,
body.dark-mode .san-contact-card #collectorContactCouncilTitle,
body.dark-mode .san-contact-card #displayCouncilOfficeTitle {
    color: #f8fafc !important;
}

body.dark-mode .san-contact-box {
    background: #0f172a !important;
    border-color: #334155 !important;
    box-shadow: none !important;
}

body.dark-mode .san-contact-box strong,
body.dark-mode .san-contact-box p,
body.dark-mode .san-contact-box span:not([style*="text-transform"]) {
    color: #f8fafc !important;
}

body.dark-mode .san-contact-box span[style*="text-transform"] {
    color: #94a3b8 !important;
}

/* ─── NOTICES, SCHEDULES & GUIDE ITEMS (LIGHT + DARK MODE) ────────── */
.san-notice-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #f59e0b;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.san-notice-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.san-notice-item .san-notice-title {
    color: var(--dark, #0f172a);
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.san-notice-item .san-notice-body {
    font-size: 0.88rem;
    color: #334155;
    margin: 8px 0;
    line-height: 1.55;
}

.san-notice-item .san-notice-meta {
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

body.dark-mode .san-notice-item {
    background: #1e293b !important;
    border-color: #334155 !important;
    border-left: 4px solid #f59e0b !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .san-notice-item .san-notice-title {
    color: #f8fafc !important;
}

body.dark-mode .san-notice-item .san-notice-body {
    color: #cbd5e1 !important;
}

body.dark-mode .san-notice-item .san-notice-meta {
    color: #94a3b8 !important;
}

/* Schedules */
.san-schedule-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #059669;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.san-schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.san-schedule-item .san-sched-vehicle {
    color: #047857;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.san-schedule-item .san-sched-timing {
    font-size: 0.9rem;
    color: #1e293b;
    margin: 6px 0 4px;
    font-weight: 700;
}

.san-schedule-item .san-sched-driver {
    font-size: 0.82rem;
    color: #64748b;
}

body.dark-mode .san-schedule-item {
    background: #1e293b !important;
    border-color: #334155 !important;
    border-left: 4px solid #10b981 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .san-schedule-item .san-sched-vehicle {
    color: #34d399 !important;
}

body.dark-mode .san-schedule-item .san-sched-timing {
    color: #f8fafc !important;
}

body.dark-mode .san-schedule-item .san-sched-driver {
    color: #94a3b8 !important;
}

/* Waste Segregation Guide Cards */
.san-guide-box {
    border-radius: 14px;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.san-guide-box:hover {
    transform: translateY(-2px);
}

.san-guide-wet {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
}
.san-guide-wet strong { color: #15803d; }
.san-guide-wet span { color: #166534; }
.san-guide-wet ul { color: #14532d; }

.san-guide-dry {
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
}
.san-guide-dry strong { color: #1d4ed8; }
.san-guide-dry span { color: #1e40af; }
.san-guide-dry ul { color: #1e3a8a; }

.san-guide-hazardous {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
}
.san-guide-hazardous strong { color: #b91c1c; }
.san-guide-hazardous span { color: #991b1b; }
.san-guide-hazardous ul { color: #7f1d1d; }

body.dark-mode .san-guide-wet {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}
body.dark-mode .san-guide-wet strong { color: #34d399 !important; }
body.dark-mode .san-guide-wet span { color: #6ee7b7 !important; }
body.dark-mode .san-guide-wet ul { color: #d1fae5 !important; }

body.dark-mode .san-guide-dry {
    background: rgba(14, 165, 233, 0.12) !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
}
body.dark-mode .san-guide-dry strong { color: #38bdf8 !important; }
body.dark-mode .san-guide-dry span { color: #7dd3fc !important; }
body.dark-mode .san-guide-dry ul { color: #e0f2fe !important; }

body.dark-mode .san-guide-hazardous {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}
body.dark-mode .san-guide-hazardous strong { color: #f87171 !important; }
body.dark-mode .san-guide-hazardous span { color: #fca5a5 !important; }
body.dark-mode .san-guide-hazardous ul { color: #fee2e2 !important; }

/* ─── FIXED TOP NOTICE & SCHEDULE TICKER BAR (LIGHT + DARK MODE) ── */
.san-top-ticker-bar {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    height: 38px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    z-index: 940;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body.dark-mode .san-top-ticker-bar {
    background: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.san-ticker-badge-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    height: 100%;
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.san-ticker-badge-wrap .san-ticker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    animation: sanTickerPulse 1.5s infinite;
}

@keyframes sanTickerPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.san-ticker-viewport {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.san-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    will-change: transform;
}

.san-ticker-viewport:hover .san-ticker-track {
    animation-play-state: paused;
}

.san-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #334155;
    font-weight: 600;
}

.san-ticker-item strong {
    color: #0f172a;
    font-weight: 800;
}

body.dark-mode .san-ticker-item {
    color: #cbd5e1 !important;
}

body.dark-mode .san-ticker-item strong {
    color: #f8fafc !important;
}

.san-ticker-item .san-ticker-tag {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Light Mode Tags */
.san-ticker-tag-welcome {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.san-ticker-tag-schedule {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.san-ticker-tag-notice {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Dark Mode Tags */
body.dark-mode .san-ticker-tag-welcome {
    background: rgba(14, 165, 233, 0.2) !important;
    color: #7dd3fc !important;
    border: 1px solid rgba(14, 165, 233, 0.4) !important;
}

body.dark-mode .san-ticker-tag-schedule {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #6ee7b7 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

body.dark-mode .san-ticker-tag-notice {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fde047 !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

.san-ticker-sep {
    color: #94a3b8;
    font-size: 0.8rem;
    user-select: none;
    margin: 0 4px;
}

body.dark-mode .san-ticker-sep {
    color: rgba(255, 255, 255, 0.3) !important;
}

.san-ticker-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 8px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 2;
    transition: all 0.2s ease;
}

.san-ticker-close-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: scale(1.1);
}

body.dark-mode .san-ticker-close-btn {
    color: #94a3b8 !important;
}

body.dark-mode .san-ticker-close-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

/* Adjust layout when ticker is active */
body.has-top-ticker .san-collector-sidebar,
body.has-top-ticker .san-user-sidebar {
    top: 94px !important;
}

body.has-top-ticker .san-collector-main,
body.has-top-ticker .san-user-main {
    margin-top: 94px !important;
    min-height: calc(100vh - 94px) !important;
}

/* ─── PRINT & SAVE PDF MEDIA QUERIES ─────────────────────────────── */
@media print {
    @page {
        margin: 0.8cm;
        size: portrait;
    }

    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    }

    /* Remove all background content from print flow entirely to prevent blank pages */
    body > *:not(#receiptModal):not(#collectorReceiptModal) {
        display: none !important;
    }

    /* Modal Overlay Reset */
    #receiptModal,
    #collectorReceiptModal {
        position: static !important;
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        box-shadow: none !important;
        border: none !important;
        inset: auto !important;
        overflow: visible !important;
    }

    .san-modal-content,
    .san-receipt-modal-content {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        transform: none !important;
        background: transparent !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .san-modal-body {
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .no-print,
    .san-modal-header,
    .san-receipt-actions,
    .san-modal-close,
    .san-clean-footer,
    .san-collector-topbar,
    .san-collector-sidebar,
    .san-header,
    #sanMobileMenu,
    #sanMobileBackdrop,
    .san-auth-sidebar,
    .san-user-sidebar,
    #userPublicHeader,
    #userTopHeader {
        display: none !important;
        visibility: hidden !important;
    }

    .san-receipt-document,
    #printableReceiptDoc,
    #colReceiptArea {
        border: 2px solid #059669 !important;
        border-radius: 12px !important;
        padding: 20px 24px !important;
        margin: 0 auto !important;
        max-width: 620px !important;
        width: 100% !important;
        background: #ffffff !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
        page-break-before: avoid !important;
        break-before: avoid !important;
    }

    .san-rcpt-stamp-badge {
        border: 1.5px solid #059669 !important;
        background: #ecfdf5 !important;
        color: #065f46 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* =======================================================
    PROFESSIONAL TOGGLE SWITCH & FEE SETTINGS COMPONENTS
   ======================================================= */
.san-toggle-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f8fafc;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 12px 0;
    transition: all 0.25s ease;
}

.san-toggle-box:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

body.dark-mode .san-toggle-box {
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .san-toggle-box:hover {
    border-color: #059669;
    background: rgba(6, 78, 59, 0.15);
}

.san-toggle-info {
    flex: 1;
}

.san-toggle-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark, #0f172a);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

body.dark-mode .san-toggle-title {
    color: #f1f5f9;
}

.san-toggle-desc {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    line-height: 1.4;
    margin: 0;
}

.san-toggle-desc strong {
    color: var(--primary-dark, #047857);
}

/* Switch styling */
.san-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.san-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.san-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}

.san-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.san-switch input:checked + .san-slider {
    background-color: #10b981;
}

.san-switch input:focus + .san-slider {
    box-shadow: 0 0 1px #10b981;
}

.san-switch input:checked + .san-slider:before {
    transform: translateX(24px);
}

/* ─── Push Notification Audit History & Modal Details ─── */
.notif-history-row {
    cursor: pointer;
    transition: background-color 0.16s ease;
}
.notif-history-row:hover {
    background-color: rgba(79, 70, 229, 0.05) !important;
}
body.dark-mode .notif-history-row:hover {
    background-color: rgba(99, 102, 241, 0.12) !important;
}

.notif-modal-card {
    background: #f8fafc;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
body.dark-mode .notif-modal-card {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.notif-phone-preview {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    position: relative;
    margin-bottom: 16px;
}
body.dark-mode .notif-phone-preview {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

