/* --- Public --- */
:root {
    --brand: #1f6feb;
    --brand-dark: #0f172a;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
}

body {
    color: var(--text);
    background: #f4f7fb;
}

.public-navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .18);
}

.hero-section {
    padding: 5rem 0 3rem;
    background: radial-gradient(circle at top right, rgba(31,111,235,.22), transparent 22%), linear-gradient(180deg, #eaf3ff 0%, #f8fbff 100%);
}

.hero-card,
.card-soft,
.stat-card,
.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.quick-link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 18px;
    padding: 1rem;
    border: 1px solid var(--border);
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
}
.quick-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}
.quick-link-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eaf3ff;
    color: var(--brand);
    font-size: 1.25rem;
    margin-bottom: .75rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.public-footer {
    background: var(--brand-dark);
    color: white;
}
.public-footer a { color: #cfe2ff; text-decoration: none; }

/* --- Admin --- */
.admin-body {
    background: #f3f6fb;
}
.admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: white;
    padding: 1.2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-brand {
    padding: .9rem 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 1rem;
}
.admin-brand-title {
    font-weight: 800;
    font-size: 1.05rem;
}
.admin-brand-subtitle {
    color: rgba(255,255,255,.66);
    font-size: .9rem;
}
.admin-menu-title {
    color: rgba(255,255,255,.58);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin: 1.2rem 0 .55rem;
    padding: 0 .8rem;
}
.admin-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.admin-menu-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: rgba(255,255,255,.86);
    text-decoration: none;
    padding: .78rem .85rem;
    border-radius: 14px;
    margin-bottom: .28rem;
}
.admin-menu-link:hover,
.admin-menu-link.is-active {
    background: rgba(255,255,255,.08);
    color: white;
}
.admin-main {
    min-width: 0;
}
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.admin-content {
    padding: 1.4rem;
}
.admin-card {
    padding: 1.2rem;
}
.table-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .05);
}
.badge-soft {
    display: inline-block;
    padding: .4rem .7rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
}
.badge-soft.bg-success-soft { background: #dcfce7; color: #166534; }
.badge-soft.bg-warning-soft { background: #fef3c7; color: #92400e; }
.badge-soft.bg-danger-soft { background: #fee2e2; color: #991b1b; }
.badge-soft.bg-info-soft { background: #dbeafe; color: #1d4ed8; }

.form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .05);
}

@media (max-width: 991.98px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: relative;
        height: auto;
    }
}


code {
    color: #1d4ed8;
    background: #eff6ff;
    padding: .15rem .4rem;
    border-radius: 8px;
}

.table td, .table th { vertical-align: middle; }
