/* =========================================
   MLEB - Museum Listrik dan Energi Baru
   Main CSS (app.css)
   ========================================= */

:root {
    --mleb-primary:   #0f3460;
    --mleb-secondary: #16213e;
    --mleb-accent:    #e94560;
    --mleb-yellow:    #f5a623;
    --mleb-light:     #f8fafc;
    --mleb-border:    #e2e8f0;
    --mleb-text:      #1e293b;
    --mleb-muted:     #64748b;
    --bs-font-sans-serif: 'Plus Jakarta Sans', system-ui, sans-serif;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--mleb-text);
    background: var(--mleb-light);
}

/* ── BRAND ── */
.brand-icon {
    width: 60px; height: 60px;
    background: var(--mleb-yellow);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--mleb-primary);
    font-size: 1.1rem;
    font-weight: 900;
    flex-shrink: 0;
}

.avatar-sm {
    width: 32px; height: 32px;
    background: var(--mleb-yellow);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--mleb-primary);
    font-size: .78rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── HERO ── */
.hero-section {
    background: linear-gradient(135deg, var(--mleb-secondary) 0%, var(--mleb-primary) 60%, #1a5276 100%);
    color: white;
    padding: 90px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-bg-photo {
    position: absolute; inset: 0;
    z-index: 0;
}
.hero-bg-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: blur(1px) brightness(.7) saturate(1.05);
    transform: scale(1.08);
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    z-index: 1;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section::after {
    content: '';
    position: absolute; inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(22,33,62,.93) 0%, rgba(15,52,96,.88) 55%, rgba(26,82,118,.8) 100%);
}
.hero-section .container { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(245,166,35,.15);
    border: 1px solid rgba(245,166,35,.3);
    color: var(--mleb-yellow);
    padding: .35rem 1rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ── SECTION ── */
.section-title-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.section-line {
    flex: 1;
    height: 2px;
    background: var(--mleb-border);
}
.section-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--mleb-yellow);
}

/* ── WAHANA CARD ── */
.wahana-card {
    border: 1.5px solid var(--mleb-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all .25s;
    background: white;
    height: 100%;
}
.wahana-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15,52,96,.12);
    border-color: var(--mleb-primary);
}
.wahana-icon-box {
    height: 160px;
    background: linear-gradient(135deg, var(--mleb-primary), #1a5276);
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
}
.wahana-card .card-body { padding: 1.25rem; }

.harga-badge {
    display: inline-block;
    background: #eff6ff;
    color: var(--mleb-primary);
    border-radius: 6px;
    padding: .2rem .6rem;
    font-size: .78rem;
    font-weight: 700;
}
.harga-badge.weekend {
    background: #fef3c7;
    color: #92400e;
}

/* ── BUNDLING CARD ── */
.bundling-card {
    border-radius: 16px;
    border: 2px solid var(--mleb-border);
    overflow: hidden;
    transition: all .25s;
    background: white;
    height: 100%;
    position: relative;
}
.bundling-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15,52,96,.12);
    border-color: var(--mleb-yellow);
}
.bundling-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--mleb-yellow);
    color: var(--mleb-secondary);
    padding: .2rem .7rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
}

/* ── KESAN / TESTIMONIAL ── */
.kesan-card {
    background: white;
    border-radius: 16px;
    border: 1.5px solid var(--mleb-border);
    padding: 1.5rem;
    height: 100%;
    transition: all .25s;
}
.kesan-card:hover {
    box-shadow: 0 8px 24px rgba(15,52,96,.08);
}
.rating-stars { color: var(--mleb-yellow); font-size: 1rem; }

/* ── STEP CARD ── */
.step-card {
    text-align: center;
    padding: 2rem 1rem;
}
.step-number {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--mleb-yellow);
    color: var(--mleb-primary);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}

/* ── PAGE HEADER ── */
.page-header {
    background: linear-gradient(135deg, var(--mleb-secondary), var(--mleb-primary));
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 0;
}
.page-header h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: .3rem; }
.page-header p { opacity: .8; margin: 0; }

/* ── FORM ── */
.form-control, .form-select {
    border-color: var(--mleb-border);
    border-radius: 8px;
    padding: .55rem .85rem;
    font-size: .9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--mleb-primary);
    box-shadow: 0 0 0 3px rgba(15,52,96,.1);
}
.form-label { font-weight: 600; font-size: .88rem; color: var(--mleb-text); }

/* ── TIKET SELECTOR ── */
.tiket-item {
    border: 2px solid var(--mleb-border);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all .2s;
    background: white;
}
.tiket-item:hover { border-color: var(--mleb-primary); background: #f0f7ff; }
.tiket-item.selected { border-color: var(--mleb-primary); background: #eff6ff; }

/* ── PAYMENT BOX ── */
.payment-box {
    border: 2px solid var(--mleb-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all .2s;
    background: white;
}
.payment-box:hover { border-color: var(--mleb-primary); }
.payment-box.selected { border-color: var(--mleb-primary); background: #eff6ff; }
.payment-box input[type=radio] { display: none; }

.va-number-box {
    background: #f8fafc;
    border: 1.5px dashed var(--mleb-primary);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    text-align: center;
}
.va-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--mleb-primary);
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

/* ── TIKET DIGITAL ── */
.tiket-digital-card {
    border: 3px dashed var(--mleb-primary);
    border-radius: 20px;
    background: white;
    overflow: hidden;
    max-width: 440px;
    margin: 0 auto;
}
.tiket-header {
    background: linear-gradient(135deg, var(--mleb-secondary), var(--mleb-primary));
    color: white;
    padding: 1.5rem;
    text-align: center;
}
.tiket-body { padding: 1.5rem; }
.tiket-divider {
    position: relative;
    margin: 1rem 0;
    height: 2px;
    background: var(--mleb-border);
}
.tiket-circle {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px;
    background: var(--mleb-light);
    border-radius: 50%;
    border: 2px solid var(--mleb-border);
}
.tiket-circle.left { left: -12px; }
.tiket-circle.right { right: -12px; }

/* ── STATUS BADGE ── */
.status-badge {
    padding: .3rem .75rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    display: inline-block;
}
.status-menunggu   { background: #fef3c7; color: #92400e; }
.status-konfirmasi { background: #dbeafe; color: #1e40af; }
.status-selesai    { background: #dcfce7; color: #166534; }
.status-batal      { background: #fee2e2; color: #991b1b; }

/* ── FOOTER ── */
.footer-main {
    background: var(--mleb-secondary);
    color: rgba(255,255,255,.7);
}
.footer-links a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .88rem;
    display: block;
    margin-bottom: .4rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--mleb-yellow); }

/* ── NAVBAR ── */
.navbar-nav .nav-link { font-weight: 500; font-size: .9rem; padding: .5rem .75rem !important; }
.navbar-nav .nav-link.active { color: var(--mleb-yellow) !important; }
.navbar-nav .nav-link:hover { color: rgba(255,255,255,.9) !important; }

/* ── MISC ── */
.bg-mleb-primary { background: var(--mleb-primary); }
.text-mleb-primary { color: var(--mleb-primary); }
.btn-mleb {
    background: var(--mleb-primary);
    color: white;
    border: none;
    font-weight: 600;
}
.btn-mleb:hover { background: #0d2b52; color: white; }
.btn-mleb-yellow { background: var(--mleb-yellow); color: var(--mleb-secondary); font-weight: 700; border: none; }
.btn-mleb-yellow:hover { background: #e09510; color: var(--mleb-secondary); }

.card-mleb {
    border: 1.5px solid var(--mleb-border);
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.card-mleb .card-header {
    background: white;
    border-bottom: 1.5px solid var(--mleb-border);
    font-weight: 700;
    border-radius: 16px 16px 0 0 !important;
    padding: 1rem 1.5rem;
}

/* Alert auto dismiss animation */
.alert { animation: slideDown .3s ease; }
@keyframes slideDown { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: none; } }

/* ── STICKY SIDEBAR CARDS (Jadwal / Pembayaran) ──
   Diberi jarak dari navbar & dibatasi tingginya supaya tidak
   "menempel"/menabrak konten lain saat halaman di-scroll. */
.sticky-side-card {
    top: 96px !important;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    z-index: 1010;
}
.sticky-side-card::-webkit-scrollbar { width: 5px; }
.sticky-side-card::-webkit-scrollbar-thumb { background: rgba(15,52,96,.25); border-radius: 4px; }
@media (max-width: 991.98px) {
    .sticky-side-card {
        position: relative !important;
        top: 0 !important;
        max-height: none;
        overflow-y: visible;
    }
}

/* ── PASSWORD TOGGLE INPUT GROUP ── */
.input-group .btn-toggle-pw {
    background: #f8fafc;
    border-color: var(--mleb-border);
    color: var(--mleb-muted);
}
.input-group .btn-toggle-pw:hover { color: var(--mleb-primary); }

/* ── LOBBY / HERO SHOWCASE PHOTO ── */
@media (max-width: 768px) {
    .hero-section { padding: 60px 0 50px; }
    .hero-section h1 { font-size: 1.8rem; }
    .tiket-digital-card { max-width: 100%; }
    .va-number { font-size: 1.2rem; letter-spacing: 2px; }
}
