:root {
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --secondary: #10B981;
    --bg-gradient: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --border-radius: 16px;
    --danger: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100dvh;
    display: flex;
    justify-content: center;
}

#app {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hidden { display: none !important; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 25px; }

/* Sections */
.view-section {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

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

.view-section.active {
    display: block;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin: -20px -20px 40px -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.glass-header.with-back {
    justify-content: flex-start;
    gap: 15px;
}

/* Auth Layout */
.auth-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9999;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    display: flex; flex-direction: row; overflow: hidden; align-items: stretch;
}
.auth-left {
    flex: 1; position: relative; z-index: 2; display: flex; flex-direction: column;
    justify-content: flex-start; padding: 40px; overflow: hidden; min-width: 0;
}
.auth-text-container {
    text-align: left; margin-bottom: 20px; z-index: 10;
}
.auth-desc {
    font-size: clamp(0.85rem, 1.2vw, 1rem); color: #4B5563; line-height: 1.5; max-width: 90%;
}
.auth-features {
    display: flex; flex-direction: row; flex-wrap: wrap; gap: 15px; margin-top: 30px; z-index: 10; max-width: 100%;
}
.auth-feature-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px); padding: 15px 20px; border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.2s;
    flex: 1; min-width: 140px;
}
.auth-feature-card:hover {
    transform: translateX(10px);
}
.auth-feature-card h4 { font-size: 0.95rem; color: #1F2937; margin: 0 0 2px 0; font-weight: 700; }
.auth-feature-card p { font-size: 0.8rem; color: #6B7280; margin: 0; }
.af-icon {
    width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: rgba(245, 158, 11, 0.15); color: var(--primary); font-size: 1.1rem;
}
.auth-image-container {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 55%;
    display: flex; justify-content: center; align-items: flex-end; pointer-events: none; padding: 0 5%;
}
.auth-image-box {
    position: relative; width: 45%; max-width: 300px; height: 100%;
    display: flex; align-items: flex-end; justify-content: center;
}
.auth-badge {
    position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
    background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); padding: 5px 15px;
    border-radius: 20px; border: 1px solid rgba(245,158,11,0.2); width: max-content;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); color: #1F2937; font-size: 0.75rem; font-weight: 700;
}
.auth-right {
    width: 100%; max-width: 400px; position: relative; z-index: 3; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 30px; background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid rgba(255,255,255,0.8); box-shadow: -10px 0 30px rgba(0,0,0,0.03);
}

}

/* Auth Section */
.auth-card {
    margin-top: 10vh;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.logo-container h1 { font-size: 1.5rem; font-weight: 700; }
.logo-container p { color: var(--text-muted); font-size: 0.9rem; }

.auth-tabs {
    display: flex;
    background: rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.auth-form { display: none; }
.auth-form.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Inputs & Buttons */
.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button.btn-primary, button.btn-secondary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

button.btn-primary {
    background: var(--primary);
    color: white;
    margin-top: 10px;
}

button.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

button.btn-secondary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

button.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

/* Dashboard Elements */
.header-info h2 { font-size: 1.3rem; }
.header-info p { color: var(--text-muted); font-size: 0.85rem; }

.dashboard-content { padding-bottom: 30px; }

.section-title {
    font-size: 1.1rem;
    margin: 20px 0 15px 5px;
    color: var(--text-main);
}

/* Banner Active Ticket */
.banner {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #1e293b;
    color: white;
    cursor: pointer;
    margin-bottom: 20px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.banner-future {
    background: #334155;
}

.banner-icon {
    font-size: 24px;
    background: var(--primary);
    color: white;
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    margin-right: 15px;
}

.banner-text {
    flex: 1;
}

.banner-text h3 { font-size: 1.1rem; margin-bottom: 4px; display:flex; align-items:center; gap: 8px;}
.banner-text h3 span.badge { background: #10b981; font-size:0.65rem; padding: 2px 6px; border-radius: 4px; vertical-align: middle; }
.banner-text p { font-size: 0.8rem; opacity: 0.7; }
.banner .arrow { margin-left: auto; background: rgba(255,255,255,0.1); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;}

/* Grid Lists */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.layanan-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 15px;
}
.layanan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.lc-icon {
    width: 45px; height: 45px;
    background: rgba(245, 158, 11, 0.15); /* light orange */
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}
.lc-text {
    flex: 1;
}
.lc-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}
.lc-arrow {
    width: 30px; height: 30px;
    background: rgba(0,0,0,0.04);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Instansi Cards */
.grid-item-card {
    background: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.grid-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.gic-top {
    height: 110px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.gic-top::before {
    content: '';
    position: absolute;
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    top: -20px; left: -20px;
}
.gic-top::after {
    content: '';
    position: absolute;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    bottom: -30px; right: -30px;
}
.gic-icon {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.25);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    backdrop-filter: blur(4px);
}
.gic-bottom {
    padding: 20px 15px;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gic-bottom h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

/* Skeleton Loading */
.skeleton-card {
    height: 90px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5) 25%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.5) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 14px;
}

@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Ticket View */
.ticket-card {
    text-align: center;
    margin-bottom: 20px;
    background: white;
    position: relative;
}

.ticket-card::before, .ticket-card::after {
    content: '';
    position: absolute;
    top: 70px;
    width: 30px;
    height: 30px;
    background: var(--bg-gradient);
    border-radius: 50%;
    z-index: 2;
}

.ticket-card::before { left: -15px; border-right: 1px solid var(--glass-border); }
.ticket-card::after { right: -15px; border-left: 1px solid var(--glass-border); }

.ticket-header {
    border-bottom: 2px dashed rgba(0,0,0,0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.ticket-header h4 { font-size: 1.2rem; color: var(--primary); }
.ticket-header p { font-size: 0.9rem; color: var(--text-muted); }

.queue-number h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 5px 0;
}

.queue-number span, .booking-code span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.booking-code { margin-top: 20px; }
.booking-code h2 { font-size: 2rem; font-family: monospace; letter-spacing: 4px; margin: 5px 0; }
.booking-code .instruction { font-size: 0.75rem; color: var(--danger); margin-top: 10px; }

.status-box {
    display: flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.1);
    padding: 12px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: left;
}

.status-box i { font-size: 1.5rem; color: var(--secondary); margin-right: 15px; }
.status-text span { font-size: 1.1rem; font-weight: 700; color: var(--secondary); }
.status-text p { font-size: 0.75rem; color: var(--text-muted); margin: 0; }

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.toast.show { 
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--secondary); }

/* Navigation (Mobile Bottom Nav / Desktop Sidebar) */
.sidebar {
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    padding: 10px 5px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.03);
    z-index: 1000;
}

.sidebar-logo {
    display: none;
}
.sidebar-menu {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px;
    border-radius: 12px;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: scale(1.1);
}

/* Dashboard Header (Android theme) */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary) 0%, #fbbf24 100%);
    border-radius: 0 0 30px 30px;
    padding: 30px 20px 40px 20px;
    margin: -20px -20px 20px -20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: white;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}
.text-white { color: white !important; }
.dashboard-header h2 { font-size: 1.5rem; margin-bottom: 5px; color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.dashboard-header p { font-size: 0.9rem; color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.15); font-weight: 500; }
.date-text { font-size: 0.8rem !important; margin-top: 10px; color: white; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.logout-btn { background: rgba(255,255,255,0.2) !important; border-radius: 50% !important; width: 40px; height: 40px; color: white; text-shadow: none; }

/* Quick Action Cards */
.quick-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}
.quick-card {
    border-radius: 20px;
    padding: 20px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.quick-card:hover { transform: translateY(-3px); }
.qc-icon {
    font-size: 1.5rem;
    background: rgba(255,255,255,0.2);
    width: 40px; height: 40px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 12px;
    margin-bottom: 15px;
}
.quick-card h4 { font-size: 1rem; margin-bottom: 5px; }
.quick-card p { font-size: 0.75rem; opacity: 0.9; }
.bg-orange { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.bg-indigo { background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%); }
.bg-green { background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%); }
.bg-red { background: linear-gradient(135deg, #ef4444 0%, #f87171 100%); }
.row-card { display: flex; align-items: center; }
.row-card .qc-icon { margin-bottom: 0; margin-right: 15px; }
.row-card .arrow { margin-left: auto; background: rgba(255,255,255,0.2); padding: 5px 10px; border-radius: 50%; }

/* Desktop Sidebar Layout (Global Default) */
#app.desktop-layout {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    width: 100%;
    margin: 0;
    background: transparent;
    padding: 20px;
    gap: 20px;
}
.sidebar {
    position: sticky;
    top: 20px;
    width: 250px;
    height: calc(100vh - 40px);
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 20px;
    padding: 30px 15px;
    box-shadow: var(--shadow-soft);
    background: white;
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
    padding: 0 10px;
}
.sidebar-logo i { font-size: 1.5rem; }
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 15px;
    border-radius: 12px;
    justify-content: flex-start;
}
.nav-item i { margin-bottom: 0; margin-right: 15px; width: 20px; font-size: 1.2rem;}
.nav-item.active { 
    color: var(--primary);
    background: rgba(245, 158, 11, 0.1); 
}
.nav-item.active i { transform: scale(1.1); }
.nav-item:hover {
    background: rgba(245, 158, 11, 0.05);
}

.main-content {
    flex: 1;
    background: var(--glass-bg);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 40px);
    box-shadow: var(--shadow-soft);
}
.view-section { height: 100%; overflow-y: auto; padding: 40px; }

/* Adjust Dashboard for desktop */
.dashboard-header, .glass-header { margin: -40px -40px 40px -40px; border-radius: 0; padding: 40px; }

@media (max-width: 768px) {
    /* Mobile Auth Layout */
    .auth-container {
        flex-direction: column;
        overflow: hidden; /* No scrolling */
        justify-content: flex-end;
    }
    .auth-left {
        flex: 1; /* Take maximum space */
        padding: 30px 20px 0 20px;
        min-height: 0; /* Allow shrinking if needed */
        display: flex;
        flex-direction: column;
        justify-content: space-around; /* Distribute space to prevent empty middle */
    }
    .auth-text-container {
        margin-bottom: 5px;
    }
    .auth-image-container {
        position: relative;
        flex: none; /* Don't stretch */
        height: 150px;
    }
    .auth-right {
        max-width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.5);
        padding: 15px;
        flex: none; /* Shrink to fit content */
        justify-content: center;
    }
    .auth-right .logo-container { margin-bottom: 15px !important; }
    .auth-right .logo-icon { font-size: 2rem !important; }
    .auth-right h1 { font-size: 1.4rem !important; margin-top: 5px !important; }
    .auth-right p { display: none; } /* Hide subtitle to save space */
    
    .auth-features {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-top: 10px;
        overflow-x: hidden;
        padding-bottom: 0;
    }
    .auth-feature-card {
        flex-direction: row;
        align-items: center;
        padding: 6px 12px;
        min-width: 0;
        text-align: left;
        gap: 10px;
    }
    .auth-feature-card p { display: none; }
    .auth-feature-card h4 { font-size: 0.8rem; margin: 0; }
    .af-icon { width: 24px; height: 24px; font-size: 0.75rem; margin: 0; }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    #app.desktop-layout {
        flex-direction: column;
        padding: 0;
        gap: 0;
        backdrop-filter: none;
    }
    .main-content {
        padding-bottom: 70px;
    }
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        top: auto;
        flex-direction: row;
        border-radius: 0;
        padding: 10px;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
    }
    .sidebar-logo { display: none; }
    .sidebar-menu { flex-direction: row; justify-content: space-around; width: 100%;}
    .nav-item { flex-direction: column; padding: 10px; font-size: 0.8rem; }
    .nav-item i { margin-right: 0; margin-bottom: 5px; }
    
    .main-content { border-radius: 0; min-height: 100vh; }
    .view-section { padding: 20px; }
    .dashboard-header { margin: -20px -20px 20px -20px; padding: 20px; }
}

.nav-item:hover {
    color: var(--primary);
}

/* History Card */
.history-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
}
.history-card .h-info h4 { margin-bottom: 3px; font-size: 0.95rem; }
.history-card .h-info p { font-size: 0.8rem; color: var(--text-muted); }
.history-card .h-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status-ONLINE { background: rgba(16, 185, 129, 0.1); color: var(--secondary); }
.status-BATAL { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.status-SELESAI { background: rgba(107, 114, 128, 0.1); color: var(--text-muted); }
.status-EXPIRED { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.status-CHECKIN { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.status-DILAYANI { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.status-TERLAYANI { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-BELUM { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

/* Live Status Card */
.ls-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 6px solid #8b5cf6;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ls-header {
    display: flex;
    align-items: center;
    gap: 15px;
}
.ls-icon {
    width: 45px; height: 45px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
}
.ls-title h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}
.ls-title p {
    font-size: 0.8rem;
    color: #10b981;
    margin: 0;
}
.ls-body {
    display: flex;
    gap: 15px;
}
.ls-box {
    flex: 1;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
}
.active-box {
    color: white;
    text-align: center;
}
.active-box .ls-box-title {
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.active-box .ls-box-num {
    font-size: 2.2rem;
    font-weight: 800;
}
.wait-box {
    border: 1px solid #e2e8f0;
    background: #ffffff;
}
.wait-box .ls-box-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    width: 40px; height: 30px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}
.wait-box .ls-box-num {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 5px;
}
.wait-box .ls-box-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}
/* Modal styling */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.modal-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 20px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-overlay.show .modal-box {
    transform: translateY(0);
}

.modal-box h3 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.modal-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-box input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions button {
    flex: 1;
}

.btn-cancel {
    background: rgba(0,0,0,0.05);
    color: var(--text-main);
}

/* Desktop Responsiveness */
@media (min-width: 768px) {
    .auth-card {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .ticket-card {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .modal-box {
        max-width: 450px;
    }
}

/* Flatpickr Holiday Customization */
.flatpickr-day.holiday-date, .flatpickr-day.holiday-date:hover {
    color: #ef4444 !important; /* red text for holidays */
    font-weight: bold;
}
.flatpickr-day.flatpickr-disabled.holiday-date {
    background: rgba(239, 68, 68, 0.05) !important;
}
