/* ===== GarbaPass Design System ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #C0392B;
    --primary-dark: #96281B;
    --primary-light: #FADBD8;
    --secondary: #E67E22;
    --secondary-light: #FDEBD0;
    --accent: #1A5276;
    --accent-light: #D6EAF8;
    --success: #1E8449;
    --success-light: #D5F5E3;
    --warning: #D4AC0D;
    --warning-light: #FEF9E7;
    --danger: #C0392B;
    --danger-light: #FADBD8;
    --info: #1F618D;
    --info-light: #D6EAF8;

    --bg-page: #F5F0EB;
    --bg-card: #FFFFFF;
    --bg-sidebar: #1C1C1E;
    --bg-sidebar-hover: #2C2C2E;
    --bg-sidebar-active: #C0392B;

    --text-primary: #1A1A1A;
    --text-secondary: #5D5D5D;
    --text-muted: #9E9E9E;
    --text-white: #FFFFFF;
    --text-sidebar: #C8C8C8;
    --text-sidebar-active: #FFFFFF;

    --border: #E0D9D0;
    --border-focus: #C0392B;

    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-xl: 22px;
    --radius-pill: 999px;

    --sidebar-width: 260px;
    --header-height: 64px;

    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'Courier New', monospace;

    --transition: 0.18s ease;
}

html { font-size: 15px; }
body { font-family: var(--font); background: var(--bg-page); color: var(--text-primary); line-height: 1.6; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ===== LAYOUT ===== */
.app-wrapper { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); background: var(--bg-sidebar); position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 100; display: flex; flex-direction: column; transition: transform var(--transition); }
.main-content { margin-left: var(--sidebar-width); flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: var(--header-height); background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 90; box-shadow: var(--shadow-sm); }
.page-content { flex: 1; padding: 28px 32px; }

/* ===== SIDEBAR ===== */
.sidebar-brand { padding: 20px 22px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 12px; }
.sidebar-brand-icon { width: 40px; height: 40px; background: var(--primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.sidebar-brand-text { font-size: 18px; font-weight: 700; color: var(--text-white); letter-spacing: -0.3px; }
.sidebar-brand-sub { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 1px; }
.sidebar-nav { padding: 14px 0; flex: 1; }
.sidebar-section-title { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,0.3); padding: 12px 22px 6px; font-weight: 600; }
.sidebar-link { display: flex; align-items: center; gap: 11px; padding: 10px 22px; color: var(--text-sidebar); font-size: 14px; font-weight: 500; transition: background var(--transition), color var(--transition); border-left: 3px solid transparent; text-decoration: none; }
.sidebar-link:hover { background: var(--bg-sidebar-hover); color: var(--text-white); text-decoration: none; }
.sidebar-link.active { background: rgba(192,57,43,0.18); color: var(--text-white); border-left-color: var(--primary); }
.sidebar-link .icon { width: 20px; text-align: center; font-size: 16px; opacity: 0.85; }
.sidebar-footer { padding: 16px 22px; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.sidebar-user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--primary); }
.sidebar-user-name { font-size: 13px; color: var(--text-white); font-weight: 500; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ===== TOPBAR ===== */
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-title { font-size: 17px; font-weight: 600; color: var(--text-primary); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-btn { background: none; border: none; cursor: pointer; padding: 8px; border-radius: var(--radius-md); color: var(--text-secondary); font-size: 18px; transition: background var(--transition); }
.topbar-btn:hover { background: var(--bg-page); }

/* ===== PAGE HEADER ===== */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.page-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { opacity: 0.5; }

/* ===== CARDS ===== */
.card { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--border); background: #FAFAF9; }

/* ===== STAT CARDS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 22px; display: flex; align-items: flex-start; justify-content: space-between; box-shadow: var(--shadow-sm); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-icon.primary { background: var(--primary-light); color: var(--primary); }
.stat-icon.success { background: var(--success-light); color: var(--success); }
.stat-icon.warning { background: var(--warning-light); color: var(--warning); }
.stat-icon.info { background: var(--info-light); color: var(--info); }
.stat-icon.secondary { background: var(--secondary-light); color: var(--secondary); }

/* ===== GRID ===== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: var(--radius-md); border: none; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; transition: all var(--transition); line-height: 1.4; }
.btn:hover { text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; justify-content: center; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 2px 8px rgba(192,57,43,0.25); }
.btn-primary:hover { background: var(--primary-dark); color: white; box-shadow: 0 4px 14px rgba(192,57,43,0.35); }
.btn-secondary { background: var(--bg-page); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text-primary); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #155d34; color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--primary-dark); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-info { background: var(--info); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--bg-page); border-color: var(--border); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-group { display: flex; gap: 8px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-control { width: 100%; padding: 9px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: 14px; color: var(--text-primary); background: var(--bg-card); transition: border-color var(--transition), box-shadow var(--transition); }
.form-control:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group .btn { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--bg-card); }
thead { background: #F9F7F4; }
th { padding: 12px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-secondary); text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 14px 16px; font-size: 14px; color: var(--text-primary); border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFAF9; }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; letter-spacing: 0.2px; white-space: nowrap; }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-secondary { background: #EEE; color: var(--text-secondary); }
.badge-primary { background: var(--primary-light); color: var(--primary); }

/* ===== ALERTS ===== */
.alert { 
    padding: 13px 17px; 
    border-radius: var(--radius-md); 
    font-size: 14px; 
    margin-bottom: 18px; 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    animation: slideInDown 0.3s ease-out;
}
.alert.auto-dismiss {
    animation: slideInDown 0.3s ease-out;
}
.alert.dismissing {
    animation: slideOutUp 0.3s ease-in forwards;
    opacity: 0;
    transform: translateY(-20px);
}
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
        margin-bottom: 18px;
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}
.alert-success { background: var(--success-light); color: var(--success); border-color: #a9dfbf; }
.alert-danger { background: var(--danger-light); color: var(--danger); border-color: #f1948a; }
.alert-warning { background: var(--warning-light); color: #7D6608; border-color: #f9e79f; }
.alert-info { background: var(--info-light); color: var(--info); border-color: #85c1e9; }

/* ===== TOAST NOTIFICATIONS ===== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: all;
    animation: toastSlideIn 0.3s ease-out;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.toast.toast-success {
    border-left-color: var(--success);
}

.toast.toast-error {
    border-left-color: var(--danger);
}

.toast.toast-warning {
    border-left-color: var(--warning);
}

.toast.toast-info {
    border-left-color: var(--info);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: toastProgress 4s linear forwards;
}

.toast.toast-success .toast-progress {
    color: var(--success);
}

.toast.toast-error .toast-progress {
    color: var(--danger);
}

.toast.toast-warning .toast-progress {
    color: var(--warning);
}

.toast.toast-info .toast-progress {
    color: var(--info);
}

.toast.toast-removing {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* ===== AUTH PAGES ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1C1C1E 0%, #2C1810 50%, #1C1C1E 100%); padding: 20px; }
.auth-card { background: var(--bg-card); border-radius: var(--radius-xl); padding: 42px 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-icon { width: 64px; height: 64px; background: var(--primary); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 12px; }
.auth-logo-name { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.auth-logo-tagline { font-size: 13px; color: var(--text-muted); }
.auth-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 26px; }
.auth-divider { text-align: center; position: relative; margin: 20px 0; color: var(--text-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: calc(50% - 24px); height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ===== MODALS ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: var(--bg-card); border-radius: var(--radius-xl); width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); transform: translateY(-10px); transition: transform var(--transition); }
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); padding: 4px; border-radius: var(--radius-sm); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ===== PROGRESS BAR ===== */
.progress { height: 8px; background: var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: var(--radius-pill); transition: width 0.4s ease; }
.progress-bar.success { background: var(--success); }
.progress-bar.warning { background: var(--warning); }
.progress-bar.danger { background: var(--danger); }

/* ===== UPLOAD ===== */
.upload-box { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.upload-box:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-box.dragover { border-color: var(--primary); background: var(--primary-light); }
.upload-preview { width: 100px; height: 100px; object-fit: cover; border-radius: var(--radius-md); margin: 0 auto 12px; }

/* ===== STEPS ===== */
.steps { display: flex; margin-bottom: 32px; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.step::after { content: ''; position: absolute; top: 16px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.step:last-child::after { display: none; }
.step-circle { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg-card); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--text-muted); position: relative; z-index: 1; }
.step.active .step-circle { border-color: var(--primary); background: var(--primary); color: white; }
.step.done .step-circle { border-color: var(--success); background: var(--success); color: white; }
.step-label { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-align: center; }
.step.active .step-label { color: var(--primary); font-weight: 600; }

/* ===== QR CODE ===== */
.qr-container { text-align: center; padding: 24px; }
.qr-container img { width: 200px; height: 200px; margin: 0 auto; border: 3px solid var(--border); border-radius: var(--radius-md); padding: 8px; }

/* ===== EPASS CARD ===== */
.epass-card { background: linear-gradient(135deg, #1C1C1E 0%, #C0392B 100%); color: white; border-radius: var(--radius-xl); padding: 28px; position: relative; overflow: hidden; }
.epass-card::before { content: '🎭'; position: absolute; right: -10px; top: -10px; font-size: 120px; opacity: 0.06; }
.epass-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.epass-event-name { font-size: 20px; font-weight: 700; }
.epass-pass-id { font-size: 12px; opacity: 0.7; margin-top: 2px; font-family: var(--font-mono); }
.epass-content { display: flex; gap: 20px; }
.epass-photo { width: 80px; height: 80px; border-radius: var(--radius-md); object-fit: cover; border: 2px solid rgba(255,255,255,0.3); flex-shrink: 0; }
.epass-info-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.epass-field label { font-size: 10px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.5px; }
.epass-field span { display: block; font-size: 14px; font-weight: 600; margin-top: 1px; }
.epass-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.epass-qr img { width: 90px; height: 90px; background: white; padding: 4px; border-radius: 6px; }
.epass-type-badge { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-pill); padding: 3px 12px; font-size: 12px; font-weight: 600; margin-top: 12px; }

/* ===== VALIDATOR SCAN ===== */
.scan-page { max-width: 480px; margin: 0 auto; text-align: center; }
.scan-result { border-radius: var(--radius-xl); padding: 28px; margin-top: 20px; animation: scaleIn 0.2s ease; }
.scan-result.allowed { background: var(--success-light); border: 2px solid var(--success); }
.scan-result.denied { background: var(--danger-light); border: 2px solid var(--danger); }
.scan-result-icon { font-size: 48px; margin-bottom: 12px; }
.scan-result-title { font-size: 24px; font-weight: 700; }
.scan-result.allowed .scan-result-title { color: var(--success); }
.scan-result.denied .scan-result-title { color: var(--danger); }
.scan-result-info { display: flex; align-items: center; gap: 14px; margin-top: 16px; text-align: left; }
.scan-result-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ===== CAPACITY METER ===== */
.capacity-meter { margin-bottom: 8px; }
.capacity-meter-header { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }

/* ===== EVENT CARDS (Customer) ===== */
.event-card { background: var(--bg-card); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-card-image { width: 100%; height: 180px; object-fit: cover; }
.event-card-body { padding: 18px; }
.event-card-title { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.event-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.event-card-meta span { display: flex; align-items: center; gap: 4px; }
.event-card-price { font-size: 22px; font-weight: 700; color: var(--primary); }
.event-card-price sub { font-size: 12px; font-weight: 400; color: var(--text-muted); }

/* ===== PRICE SUMMARY ===== */
.price-summary { background: var(--bg-page); border-radius: var(--radius-lg); padding: 18px; }
.price-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.price-row.discount { color: var(--success); }
.price-row.total { font-size: 16px; font-weight: 700; border-top: 1.5px solid var(--border); padding-top: 12px; margin-top: 4px; }

/* ===== MISC ===== */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 14px; }
.empty-state-title { font-size: 17px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state-text { font-size: 14px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.text-muted { color: var(--text-muted); }
.text-primary-color { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.mb-4 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 14px; }
.gap-4 { gap: 20px; }
.w-full { width: 100%; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ===== TOGGLE SWITCH ===== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

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

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-group {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

/* ===== ANIMATIONS ===== */
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeIn 0.25s ease; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 4px; justify-content: center; padding: 16px 0; }
.pagination a, .pagination span { padding: 7px 13px; border-radius: var(--radius-md); font-size: 14px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); text-decoration: none; transition: all var(--transition); }
.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    :root { --sidebar-width: 0px; }
    .sidebar { transform: translateX(-260px); }
    .sidebar.open { transform: translateX(0); width: 260px; }
    .main-content { margin-left: 0; }
    .page-content { padding: 20px 16px; }
    .grid-2, .grid-3, .grid-4, .grid-2-1 { grid-template-columns: 1fr; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .topbar { padding: 0 16px; }
}
@media (max-width: 600px) {
    .auth-card { padding: 28px 22px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
