:root {
    --brand-blue: #1F4258;
    --brand-blue-dark: #163244;
    --brand-gold: #F4B84A;
    --brand-white: #ffffff;
    --brand-success: #1e7e34;
    --brand-danger: #c0392b;
}

body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Sidebar (Admin) ---------- */
#wrapper { min-height: 100vh; }

.sidebar {
    width: 250px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    color: #fff;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1.3rem 1rem 0.2rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-gold);
}

.sidebar-sub {
    padding: 0 1rem 1rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.sidebar-divider {
    border-color: rgba(255,255,255,0.15);
    margin: 0;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.85);
    padding: 0.75rem 1.25rem;
    font-size: 0.92rem;
    border-left: 3px solid transparent;
}

.sidebar .nav-link i { margin-right: 8px; width: 18px; text-align: center; }

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,0.08);
    border-left-color: var(--brand-gold);
    color: #fff;
}

.topbar {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 0.6rem 1.2rem;
}

/* ---------- Cards ---------- */
.stat-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
}
.stat-card .stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; }
.bg-blue { background: var(--brand-blue); }
.bg-gold { background: var(--brand-gold); }
.bg-green { background: var(--brand-success); }
.bg-red { background: var(--brand-danger); }

/* ---------- Guru voting page ---------- */
.guru-navbar { background: var(--brand-blue); }

.kandidat-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform .15s ease;
    height: 100%;
}
.kandidat-card:hover { transform: translateY(-4px); }
.kandidat-card .foto-wrap {
    height: 260px;
    background: #eaeff2;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.kandidat-card img { width: 100%; height: 100%; object-fit: cover; }
.kandidat-card .nomor-badge {
    background: var(--brand-gold);
    color: var(--brand-blue-dark);
    font-weight: 700;
    border-radius: 50px;
    padding: 4px 14px;
    display: inline-block;
}
.btn-pilih {
    background: var(--brand-blue);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 8px;
}
.btn-pilih:hover { background: var(--brand-blue-dark); color: #fff; }

.thanks-box {
    text-align: center;
    padding: 4rem 1rem;
}
.thanks-box i { font-size: 4rem; color: var(--brand-success); }

/* ---------- Login page ---------- */
.login-wrapper {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
}
.login-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 900px;
    width: 100%;
}
.login-side {
    background: var(--brand-blue-dark);
    color: #fff;
    padding: 3rem 2rem;
    display: flex; flex-direction: column; justify-content: center;
}
.login-side .logo-circle {
    width: 70px; height: 70px; border-radius: 50%;
    background: var(--brand-gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--brand-blue-dark);
    margin-bottom: 1rem;
}

/* ---------- Progress ---------- */
.progress { border-radius: 50px; height: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { position: fixed; left: -260px; z-index: 1050; transition: left .2s ease; }
    .sidebar.show { left: 0; }
}
