:root {
    --navy: #0b1f3a;
    --navy-2: #12345b;
    --gold: #c9a227;
    --light: #f5f7fb;
    --muted: #6b7280;
    --border: #e5e7eb;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--light);
    color: #1f2937;
}

.admin-body { min-height: 100vh; }

.sidebar {
    width: 278px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--navy), #07172c);
    color: #fff;
    padding: 1.25rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: var(--navy);
    font-weight: 900;
    font-size: 1.25rem;
}

.text-gold { color: #f3d675 !important; }

.sidebar-menu a {
    display: block;
    color: rgba(255,255,255,.86);
    text-decoration: none;
    padding: .75rem .9rem;
    border-radius: .8rem;
    margin-bottom: .25rem;
    font-weight: 600;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.sidebar-note {
    margin-top: 1.25rem;
    color: rgba(255,255,255,.72);
    font-size: .82rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 1rem;
    padding: .9rem;
}

.main-content { min-width: 0; }
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 5;
}

.card-soft {
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.stat-card {
    border: 0;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    height: 100%;
}

.stat-label { color: var(--muted); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.stat-value { font-size: 2rem; font-weight: 900; color: var(--navy); }
.stat-sub { color: var(--muted); font-size: .85rem; }

.btn-primary {
    --bs-btn-bg: var(--navy);
    --bs-btn-border-color: var(--navy);
    --bs-btn-hover-bg: var(--navy-2);
    --bs-btn-hover-border-color: var(--navy-2);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border: 1px solid var(--gold);
    font-weight: 800;
}
.btn-gold:hover { background: #b89118; color: #081629; }

.badge-success-soft {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.badge-warning-soft {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.table thead th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .035em;
    color: #475569;
    background: #f8fafc;
}

.search-hero {
    border: 2px solid #dbeafe;
    border-radius: 1rem;
    font-size: 1.2rem;
    padding: .9rem 1rem;
}

.checkin-row { vertical-align: middle; }
.checkin-name { font-size: 1rem; font-weight: 800; color: var(--navy); }

.login-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(201,162,39,.24), transparent 30%), linear-gradient(135deg, var(--navy), #07162a);
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 1.4rem;
    padding: 2rem;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

.public-hero {
    background: linear-gradient(135deg, var(--navy), #0d2d54);
    color: #fff;
    border-radius: 0 0 2rem 2rem;
    padding: 2rem 1rem 5rem;
}
.public-card {
    margin-top: -3rem;
    border-radius: 1.3rem;
    box-shadow: 0 20px 60px rgba(15,23,42,.14);
    border: 0;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -300px;
        transition: left .2s ease;
        box-shadow: 12px 0 30px rgba(0,0,0,.2);
    }
    .sidebar.show { left: 0; }
    .topbar { padding: .85rem 1rem; }
    .stat-value { font-size: 1.6rem; }
}

/* Public SKPSA landing page */
.public-landing {
    background: #ffffff;
    color: #162033;
}

.public-nav {
    background: rgba(8, 22, 42, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.public-nav .navbar-brand,
.fw-black {
    font-weight: 900;
    letter-spacing: .03em;
}

.landing-hero {
    position: relative;
    min-height: 720px;
    background: linear-gradient(135deg, rgba(7, 21, 40, .94), rgba(12, 36, 65, .78)), url('../img/skpsa-hero.jpg') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.landing-hero::after {
    content: '';
    position: absolute;
    left: -12%;
    bottom: -20%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(201,162,39,.32), transparent 62%);
}

.landing-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.15));
}

.min-vh-hero {
    min-height: 720px;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #e6c45d;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 900;
    font-size: .78rem;
}

.hero-kicker::before,
.section-kicker::before {
    content: '';
    width: 28px;
    height: 2px;
    background: #e6c45d;
    display: inline-block;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4.9rem);
    line-height: .98;
    font-weight: 950;
    letter-spacing: -.05em;
    max-width: 980px;
}

.hero-subtitle {
    max-width: 760px;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: rgba(255,255,255,.86);
}

.hero-meta span {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: .55rem .9rem;
    font-weight: 750;
}

.hero-card {
    background: rgba(6, 18, 34, .72);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 28px 80px rgba(0,0,0,.32);
    border-radius: 1.6rem;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
}

.info-line {
    display: grid;
    gap: .3rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.info-line span { color: rgba(255,255,255,.64); font-size: .82rem; text-transform: uppercase; font-weight: 800; letter-spacing: .04em; }
.info-line strong { color: #fff; }
.text-white-75 { color: rgba(255,255,255,.75); }

.section-pad { padding: 5rem 0; }
.section-soft { background: #f4f7fb; }
.section-heading { top: 90px; }
.landing-sticky { z-index: 1; }
.section-title {
    font-weight: 950;
    letter-spacing: -.035em;
    color: var(--navy);
    font-size: clamp(2rem, 3vw, 3rem);
    text-align: center;
}
.section-heading h2 {
    font-weight: 950;
    letter-spacing: -.04em;
    color: var(--navy);
    font-size: clamp(2rem, 3vw, 3.1rem);
}

.topic-card {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 1.2rem;
    padding: 1.2rem;
    box-shadow: 0 14px 40px rgba(15,23,42,.06);
}
.topic-card-dark {
    background: linear-gradient(135deg, var(--navy), #12345b);
    color: #fff;
    border: 0;
}
.topic-number {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff5cf;
    color: #8a670e;
    font-weight: 900;
    margin-bottom: .85rem;
}
.topic-card-dark .topic-number { background: var(--gold); color: var(--navy); }

.schedule-wrap {
    display: grid;
    gap: 1.4rem;
}
.schedule-day {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 1.35rem;
    padding: 1.1rem;
    box-shadow: 0 18px 50px rgba(15,23,42,.07);
}
.schedule-day h3 {
    background: linear-gradient(135deg, var(--navy), #12345b);
    color: #fff;
    border-radius: 1rem;
    padding: .9rem 1.1rem;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.schedule-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #edf2f7;
}
.schedule-item:last-child { border-bottom: 0; }
.schedule-time {
    color: var(--navy);
    font-weight: 900;
}
.schedule-detail {
    min-width: 0;
}

.fee-card,
.location-card,
.contact-panel,
.note-panel {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 1.4rem;
    padding: 1.5rem;
    box-shadow: 0 18px 50px rgba(15,23,42,.07);
}
.fee-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 1.05rem;
}
.fee-row:last-child { border-bottom: 0; }
.fee-row strong {
    font-size: 1.2rem;
    color: var(--navy);
    white-space: nowrap;
}
.contact-text {
    font-size: 1.15rem;
    line-height: 1.9;
    font-weight: 700;
}
.brochure-preview img {
    width: 100%;
    max-height: 680px;
    object-fit: contain;
    background: #0b1f3a;
}
.landing-footer {
    background: var(--navy);
    color: rgba(255,255,255,.82);
    padding: 1.4rem 0;
    font-size: .92rem;
}

@media (max-width: 991.98px) {
    .landing-hero, .min-vh-hero { min-height: auto; }
    .min-vh-hero { padding-top: 6.5rem; padding-bottom: 3rem; }
    .section-pad { padding: 3.5rem 0; }
    .schedule-item { grid-template-columns: 1fr; gap: .35rem; }
    .fee-row { flex-direction: column; gap: .35rem; }
}
