/* ══════════════════════════════════════════════ */
/*  Hadir.in Web Dashboard — app.css             */
/* ══════════════════════════════════════════════ */

:root {
    --primary: #FF5F5F;
    --primary-hover: #ff4747;
    --navy: #0A192F;
    --navy-light: #112B50;
    --blue: #004AC6;
    --blue-light: #F0F5FF;
    --green: #10B981;
    --green-light: #ECFDF5;
    --purple: #8B5CF6;
    --purple-light: #F5F3FF;
    --yellow: #F59E0B;
    --bg: #F4F6F9;
    --card: #FFFFFF;
    --text: #1F2937;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --sidebar-w: 260px;
    --navbar-h: 64px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

body, html {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: var(--navy);
    line-height: 1.3;
}
a { text-decoration: none; color: inherit; }
.text-coral { color: var(--primary); }

/* ── AUTH SCREEN ─────────────────────────────── */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0A192F 0%, #112B50 50%, #1a3a6e 100%);
    padding: 24px;
}

.auth-container {
    display: flex;
    max-width: 960px;
    width: 100%;
    background: var(--card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-left {
    flex: 1;
    background: linear-gradient(160deg, #0A192F, #112B50);
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.auth-brand { margin-bottom: 48px; }
.auth-logo { height: 48px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.auth-brand h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; color: white; }
.auth-brand p { color: rgba(255,255,255,0.6); font-size: 16px; }

.auth-features-list { display: flex; flex-direction: column; gap: 20px; }
.auth-feature { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.8); font-size: 15px; }
.auth-feature svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }

.auth-right {
    flex: 1.1;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-card { width: 100%; max-width: 380px; }
.auth-form-card h2 { font-size: 26px; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.2s;
    background: #FAFBFC;
}
.form-group input:focus { outline: none; border-color: var(--blue); background: white; box-shadow: 0 0 0 4px rgba(0,74,198,0.08); }

.btn-primary-auth {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #004ac6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,74,198,0.2);
}
.btn-primary-auth:hover { filter: brightness(1.15); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,74,198,0.3); }
.btn-primary-auth:disabled { opacity: 0.6; cursor: not-allowed; transform: none; filter: none; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--text-light); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.google-btn-container { display: flex; justify-content: center; min-height: 44px; }

.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--blue); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.auth-error { color: #EF4444; background: #FEF2F2; border: 1px solid #FECACA; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; display: none; }
.auth-error.show { display: block; }

.otp-icon { width: 64px; height: 64px; background: var(--blue-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--blue); }
.otp-icon svg { width: 32px; height: 32px; }
.otp-input { text-align: center; font-size: 28px; font-weight: 700; letter-spacing: 12px; font-family: 'Plus Jakarta Sans', sans-serif; }

/* ── DASHBOARD LAYOUT ────────────────────────── */
.dashboard-screen { display: flex; flex-direction: column; min-height: 100vh; }

.dash-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    height: var(--navbar-h);
    background: var(--card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: var(--shadow-sm);
}

.dash-nav-left { display: flex; align-items: center; gap: 16px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 4px; }
.hamburger svg { width: 24px; height: 24px; }
.dash-logo-link { display: flex; align-items: center; gap: 10px; }
.dash-logo { height: 28px; }
.dash-logo-text { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); }

.dash-nav-right { display: flex; align-items: center; gap: 16px; }
.dash-user-info { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 12px; border-radius: var(--radius-sm); transition: background 0.2s; }
.dash-user-info:hover { background: var(--bg); }
.dash-avatar { width: 36px; height: 36px; background: linear-gradient(135deg, var(--blue), var(--navy)); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.dash-username { font-weight: 600; font-size: 14px; color: var(--text); }

.dash-body { display: flex; margin-top: var(--navbar-h); min-height: calc(100vh - var(--navbar-h)); }

/* ── SIDEBAR ─────────────────────────────────── */
.dash-sidebar {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--card);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 40;
}

.sidebar-section { margin-bottom: 8px; }
.sidebar-label { font-size: 10px; font-weight: 700; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; padding: 12px 12px 8px; }

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-align: left;
}
.sidebar-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-item:hover { background: var(--bg); color: var(--text); }
.sidebar-item.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.sidebar-item.active svg { color: var(--blue); }

.sidebar-help {
    margin-top: auto;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.help-icon { width: 40px; height: 40px; background: var(--blue-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: var(--blue); }
.help-icon svg { width: 20px; height: 20px; }
.sidebar-help strong { font-size: 14px; display: block; margin-bottom: 4px; }
.sidebar-help p { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.help-btn { display: inline-block; padding: 8px 20px; border: 2px solid var(--navy); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--navy); transition: all 0.2s; }
.help-btn:hover { background: var(--navy); color: white; }

/* ── MAIN CONTENT ────────────────────────────── */
.dash-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 32px;
    max-width: 1100px;
}

/* ── WELCOME BANNER ──────────────────────────── */
.welcome-banner {
    background: linear-gradient(135deg, #0A192F 0%, #112B50 60%, #1a3a6e 100%);
    border-radius: var(--radius);
    padding: 28px 32px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(10,25,47,0.2);
}
.welcome-text h2 { color: white; font-size: 22px; margin-bottom: 4px; }
.welcome-text p { color: rgba(255,255,255,0.6); font-size: 14px; }
.welcome-stats { display: flex; gap: 16px; }
.stat-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    min-width: 140px;
}
.stat-icon { width: 42px; height: 42px; background: rgba(255,255,255,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-info .stat-label { font-size: 11px; color: rgba(255,255,255,0.6); margin-bottom: 2px; }
.stat-info .stat-value { font-size: 24px; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.stat-info .stat-sub { font-size: 11px; color: rgba(255,255,255,0.5); }

/* ── PAGE HEADER ─────────────────────────────── */
.page-header { margin-bottom: 28px; }
.page-header h2 { font-size: 24px; margin-bottom: 4px; }
.page-header p { color: var(--text-muted); font-size: 14px; }

/* ── CARD ─────────────────────────────────────── */
.dash-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    margin-bottom: 24px;
}
.dash-card h3 { font-size: 18px; margin-bottom: 20px; }

/* ── TOPUP LAYOUT ────────────────────────────── */
.topup-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }

/* ── PACKAGE RADIO CARDS ─────────────────────── */
.package-list { display: flex; flex-direction: column; gap: 12px; }
.package-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.package-card:hover { border-color: #C7D2FE; background: #FAFAFF; }
.package-card.selected { border-color: var(--blue); background: var(--blue-light); box-shadow: 0 0 0 3px rgba(0,74,198,0.1); }

.package-radio { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.package-card.selected .package-radio { border-color: var(--blue); }
.package-card.selected .package-radio::after { content: ''; width: 10px; height: 10px; background: var(--blue); border-radius: 50%; }

.package-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.package-icon.green { background: var(--green-light); color: var(--green); }
.package-icon.blue { background: var(--blue-light); color: var(--blue); }
.package-icon.purple { background: var(--purple-light); color: var(--purple); }
.package-icon svg { width: 20px; height: 20px; }

.package-info { flex: 1; }
.package-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.package-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.package-badge { background: var(--navy); color: white; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.package-price { font-size: 18px; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; white-space: nowrap; }
.package-price.green { color: var(--green); }
.package-price.blue { color: var(--blue); }
.package-price.purple { color: var(--purple); }
.package-arrow { color: var(--text-light); }
.package-arrow svg { width: 18px; height: 18px; }

.secure-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.secure-note svg { width: 16px; height: 16px; color: var(--yellow); }

/* ── ORDER SUMMARY ───────────────────────────── */
.order-summary { position: sticky; top: calc(var(--navbar-h) + 32px); }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-row:last-of-type { border-bottom: none; }
.summary-label { color: var(--text-muted); }
.summary-value { font-weight: 700; color: var(--text); }
.summary-total { font-size: 22px; font-weight: 800; color: var(--blue); font-family: 'Plus Jakarta Sans', sans-serif; }

.btn-pay {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #004ac6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,74,198,0.2);
}
.btn-pay:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn-pay:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }

.pay-secure { text-align: center; margin-top: 14px; font-size: 12px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.pay-secure svg { width: 14px; height: 14px; color: var(--green); }

/* ── BENEFITS GRID ───────────────────────────── */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px 20px; text-align: left; }
.benefit-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.benefit-icon svg { width: 22px; height: 22px; }
.benefit-icon.green { background: var(--green-light); color: var(--green); }
.benefit-icon.yellow { background: #FFFBEB; color: var(--yellow); }
.benefit-icon.blue { background: var(--blue-light); color: var(--blue); }
.benefit-icon.purple { background: var(--purple-light); color: var(--purple); }
.benefit-card h4 { font-size: 14px; margin-bottom: 6px; }
.benefit-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ── HISTORY TABLE ───────────────────────────── */
.table-wrapper { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border); background: var(--bg); }
.dash-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.dash-table tr:hover td { background: #FAFBFC; }

.status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-badge.settlement { background: var(--green-light); color: var(--green); }
.status-badge.pending { background: #FFFBEB; color: var(--yellow); }
.status-badge.failure { background: #FEF2F2; color: #EF4444; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon { width: 64px; height: 64px; background: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--text-light); }
.empty-icon svg { width: 32px; height: 32px; }

/* ── PROFILE ─────────────────────────────────── */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.profile-info-item { margin-bottom: 20px; }
.profile-info-item label { display: block; font-size: 12px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.profile-info-item .value { font-size: 16px; font-weight: 600; color: var(--text); }

.btn-logout {
    padding: 12px 24px;
    background: #FEF2F2;
    color: #EF4444;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: inline-flex;
    align-items: center;
}
.btn-logout:hover { background: #EF4444; color: white; }

/* ── EVENT LIST ──────────────────────────────── */
.event-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: all 0.2s;
    background: var(--card);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.event-icon-box { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.event-icon-box.upcoming { background: #E5E7EB; color: #4B5563; }
.event-icon-box.active { background: var(--blue-light); color: var(--blue); }
.event-icon-box.ended { background: #F3F4F6; color: #9CA3AF; }
.event-icon-box svg { width: 24px; height: 24px; }
.event-details { flex: 1; }
.event-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.event-meta { font-size: 12px; color: var(--text-muted); }
.event-type-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.5px; }
.event-type-badge.upcoming { background: #E5E7EB; color: #4B5563; }
.event-type-badge.active { background: var(--blue-light); color: var(--blue); }
.event-type-badge.ended { background: #F3F4F6; color: #9CA3AF; }

/* ── FOOTER ──────────────────────────────────── */
.dash-footer { text-align: center; padding: 32px; font-size: 13px; color: var(--text-light); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 992px) {
    .auth-left { display: none; }
    .auth-container { max-width: 460px; }
    .auth-right { padding: 40px 32px; }

    .hamburger { display: block; }
    .dash-sidebar { transform: translateX(-100%); transition: transform 0.3s; z-index: 60; }
    .dash-sidebar.open { transform: translateX(0); }
    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 55; }
    .sidebar-overlay.show { display: block; }
    .dash-main { margin-left: 0; padding: 24px 16px; }

    .topup-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-grid { grid-template-columns: 1fr; }
    .welcome-banner { flex-direction: column; gap: 20px; align-items: flex-start; }
    .welcome-stats { width: 100%; }
    .stat-box { flex: 1; }
}

@media (max-width: 576px) {
    .benefits-grid { grid-template-columns: 1fr; }
    .welcome-stats { flex-direction: column; }
    .stat-box { width: 100%; }
}

/* ── ADDITIONAL COMPONENT STYLES ──────────────── */

/* ── DESIGN SYSTEM BUTTONS (from design.md) ──── */

/* Primary: Gradient fill, rounded-md, no border */
.btn-primary {
    background: linear-gradient(135deg, #004ac6 0%, #2563eb 100%);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 74, 198, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
}
.btn-primary:hover {
    filter: brightness(1.2);
    box-shadow: 0 6px 16px rgba(0, 74, 198, 0.28);
    transform: translateY(-1px);
}
.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
    transform: none;
    box-shadow: none;
}

/* Secondary: surface-container-highest fill, on-surface text */
.btn-secondary {
    background: #eef0f6;
    color: #141b2b;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
}
.btn-secondary:hover {
    background: #dde1eb;
}

/* Danger Button */
.btn-danger {
    background: #FEF2F2;
    color: #EF4444;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
}
.btn-danger:hover {
    background: #EF4444;
    color: white;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Forms (Create Event) */
.create-event-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    resize: vertical;
    min-height: 100px;
    background: #FAFBFC;
}
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: white;
}
.file-upload-zone {
    border: 2px dashed var(--border);
    padding: 32px 20px;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    background: #FAFBFC;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.file-upload-zone:hover {
    border-color: var(--blue);
    background: var(--blue-light);
}
.file-upload-zone svg {
    width: 40px;
    height: 40px;
    color: var(--text-light);
}
.file-preview {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    display: none;
    margin-top: 10px;
}

/* Map Location Picker */
.map-picker-wrapper {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}
.map-search-bar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 1000;
    display: flex;
    gap: 8px;
}
.map-search-bar input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    font-size: 14px;
    outline: none;
}
.map-search-bar button {
    background: var(--blue);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}
.search-results-dropdown {
    position: absolute;
    top: 56px;
    left: 12px;
    right: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--border);
}
.search-result-item {
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: var(--bg);
}
.leaflet-container {
    height: 300px;
    width: 100%;
    z-index: 1;
}
.map-my-location-btn {
    position: absolute;
    bottom: 20px;
    right: 12px;
    z-index: 1000;
    background: white;
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}
.map-my-location-btn:hover {
    background: #F3F4F6;
}
.map-selected-info {
    background: #FAFBFC;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 13px;
}

/* Event Detail Header */
.event-detail-header-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    background: var(--card);
}
.event-banner-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #E5E7EB;
}
.event-banner-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
}
.event-banner-placeholder svg {
    width: 64px;
    height: 64px;
}
.event-detail-info {
    padding: 24px;
}
.event-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.badge-live {
    background: #FEE2E2;
    color: #EF4444;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}
.badge-live::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(0.9); opacity: 1; }
}

.event-detail-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}
.event-detail-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}
.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.meta-item-icon {
    width: 36px;
    height: 36px;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.meta-item-text {
    font-size: 13px;
    color: var(--text-muted);
}
.meta-item-text strong {
    color: var(--text);
    display: block;
    font-size: 14px;
}

/* Event Detail Layout Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 24px;
}

/* Big Quota/Participant Cards */
.total-peserta-card {
    background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
    color: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(0,74,198,0.25);
    cursor: pointer;
    transition: transform 0.2s;
}
.total-peserta-card:hover {
    transform: translateY(-2px);
}
.total-peserta-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8;
}
.total-peserta-value {
    font-size: 40px;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 8px 0;
}
.total-peserta-footer {
    font-size: 12px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-stat-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.sub-stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.sub-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}
.sub-stat-value {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-top: 4px;
}
.sub-stat-value.green { color: var(--green); }
.sub-stat-value.muted { color: var(--text-muted); }
.sub-stat-percent {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Event Control / Action Buttons */
.event-controls-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.control-buttons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.control-action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
}
.control-action-btn:hover {
    background: var(--blue-light);
    border-color: #C7D2FE;
}
.control-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #EEF2FF;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.control-action-btn:hover .control-btn-icon {
    background: var(--blue);
    color: white;
}
.control-btn-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.control-btn-text p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Modal Overlay & Modal Sheet */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,25,47,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show {
    display: flex;
}
.modal-card {
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}
.modal-close:hover {
    color: var(--text);
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Ticket Design Studio Canvas */
.ticket-editor-container {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 24px;
}
.ticket-canvas-card {
    background: #E5E7EB;
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    position: relative;
    overflow: auto;
}
.ticket-canvas {
    position: relative;
    box-shadow: var(--shadow-lg);
    background: white;
    max-width: 100%;
}
.ticket-canvas-img {
    display: block;
    width: 100%;
    user-select: none;
    pointer-events: none;
}
.canvas-qr-box {
    position: absolute;
    border: 2px dashed var(--blue);
    background: rgba(0,74,198,0.15);
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
}
.canvas-qr-box::before {
    content: 'QR Code';
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
}
.canvas-name-box {
    position: absolute;
    border: 2px dashed var(--purple);
    background: rgba(139,92,246,0.15);
    cursor: move;
    white-space: nowrap;
    padding: 2px 6px;
    font-weight: 800;
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: var(--navy);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    animation: slideIn 0.3s forwards;
    min-width: 250px;
}
.toast.success {
    border-left: 4px solid var(--green);
}
.toast.error {
    border-left: 4px solid #EF4444;
}
@keyframes slideIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Attendance Logs styling */
.logs-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.log-row-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.log-row-item:last-child {
    border-bottom: none;
}
.log-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}
.log-info {
    flex: 1;
}
.log-name {
    font-size: 13px;
    font-weight: 700;
}
.log-time {
    font-size: 11px;
    color: var(--text-light);
}

/* Participant table custom elements */
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* ── BLAST RANGE SELECTOR (Participant List) ──── */
.blast-participant-list {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.blast-p-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
    font-size: 13px;
}
.blast-p-row:not(:last-child) {
    border-bottom: 1px solid #f0f1f3;
}
.blast-p-row:hover {
    background: #f5f7fa;
}
.blast-p-row.in-range {
    background: var(--blue-light);
}
.blast-p-row.range-start,
.blast-p-row.range-end {
    background: #dbeafe;
    font-weight: 700;
}
.blast-p-row .blast-p-index {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef0f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--text-muted);
}
.blast-p-row.in-range .blast-p-index {
    background: var(--blue);
    color: white;
}
.blast-p-row .blast-p-name {
    font-weight: 600;
    flex: 1;
}
.blast-p-row .blast-p-email {
    color: var(--text-muted);
    font-size: 12px;
}
.blast-range-summary {
    background: var(--blue-light);
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── TOGGLE SWITCH ──────────────────────────── */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #D1D5DB;
    border-radius: 999px;
    transition: 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--blue);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}
.toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.toggle-label span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── EDIT PARTICIPANT BUTTON ──────────────────── */
.btn-edit-sm {
    background: var(--blue-light);
    color: var(--blue);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-edit-sm:hover {
    background: var(--blue);
    color: white;
}

@media (max-width: 768px) {
    .form-row, .detail-grid, .ticket-editor-container {
        grid-template-columns: 1fr;
    }
}

