/* style.css - Tema estetik untuk PJOK Dashboard */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0f172a, #1e293b, #4c1d95);
    --card-bg: rgba(15, 23, 42, 0.88);
    --accent: #f97316;
    --accent-soft: rgba(249, 115, 22, 0.15);
    --accent-2: #38bdf8;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-soft: rgba(148, 163, 184, 0.35);
    --radius-xl: 18px;
    --blur-lg: 18px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.55);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    display: flex;
}

/* LAYOUT */

.app-shell {
    display: flex;
    width: 100%;
}

/* SIDEBAR */

.sidebar {
    width: 250px;
    background: rgba(15, 23, 42, 0.92);
    border-right: 1px solid var(--border-soft);
    backdrop-filter: blur(22px);
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.85);
    padding: 22px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 30;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

.brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: radial-gradient(circle at 0 0, #f97316, #4c1d95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-size: 15px;
    font-weight: 600;
}

.brand-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--text-muted);
    margin: 10px 0 8px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.sidebar-nav li {
    margin-bottom: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: all .18s ease;
}

.sidebar-link span.icon {
    font-size: 16px;
}

.sidebar-link.active,
.sidebar-link:hover {
    background: var(--accent-soft);
    color: #fefce8;
}

/* MAIN AREA */

.main-area {
    flex: 1;
    padding: 18px 22px 28px;
    overflow-x: hidden;
}

/* TOP BAR */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 14px;
}

.page-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.page-title h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.page-title small {
    font-size: 12px;
    color: var(--text-muted);
}

/* cards */

.card-glass {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(var(--blur-lg));
    padding: 18px 18px 16px;
    margin-bottom: 18px;
}

.card-header-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-header-minimal h2 {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

.chip {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid rgba(148,163,184,.6);
    color: var(--text-muted);
}

/* FORM & INPUT */

.form-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.form-control,
.form-select {
    font-size: 13px;
    background-color: rgba(15,23,42,0.7);
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.5);
    color: var(--text-main);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 1px rgba(56,189,248,0.3);
    background-color: rgba(15,23,42,0.9);
    color: #e5e7eb;
}

.btn-primary-soft {
    background: var(--accent);
    border-radius: 999px;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #0b1120;
    box-shadow: 0 12px 30px rgba(249,115,22,0.35);
    transition: all .18s ease;
}

.btn-primary-soft:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(249,115,22,0.4);
}

.btn-secondary-soft {
    background: rgba(15,23,42,0.7);
    color: var(--text-muted);
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    padding: 8px 14px;
    font-size: 12px;
}

/* TABLE */

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table-estetik {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.table-estetik thead {
    background: radial-gradient(circle at 0 0, rgba(56,189,248,0.3), rgba(30,64,175,0.9));
}

.table-estetik thead th {
    padding: 7px 6px;
    text-align: center;
    border-bottom: 1px solid rgba(148,163,184,0.4);
    color: #e5e7eb;
    font-weight: 500;
}

.table-estetik tbody tr:nth-child(even) {
    background: rgba(15,23,42,0.6);
}

.table-estetik tbody tr:nth-child(odd) {
    background: rgba(15,23,42,0.85);
}

.table-estetik td {
    padding: 6px 6px;
    border-bottom: 1px solid rgba(30,41,59,0.7);
    color: #e5e7eb;
}

.table-estetik td:first-child,
.table-estetik th:first-child {
    position: sticky;
    left: 0;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(14px);
}

/* input kecil di tabel */

.table-estetik input {
    width: 54px;
    padding: 3px 4px;
    font-size: 11px;
    text-align: center;
}

/* BADGE FINAL SCORE */

.badge-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.7);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }
    body {
        display: block;
    }
    .main-area {
        padding: 16px 12px 26px;
    }
}

@media (max-width: 600px) {
    .page-title h1 {
        font-size: 17px;
    }
    .card-glass {
        padding: 14px 12px;
    }
}