:root {
    --primary: #0d6efd;
    --sidebar-w: 240px;
}

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

/* ===== LOGIN PAGE ===== */
.login-page {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-wrapper { width: 100%; max-width: 400px; padding: 20px; }
.login-card {
    background: #fff;
    border-radius: 14px;
    padding: 2.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.login-icon { font-size: 2.6rem; color: var(--primary); }

/* ===== LAYOUT ===== */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: #1b2a4a;
    color: #fff;
    flex-shrink: 0;
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
}
.sidebar-brand {
    padding: 1.2rem 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-brand i { color: #ffc107; }
.sidebar-nav { padding: .5rem 0; }
.sidebar-nav .nav-link {
    color: rgba(255,255,255,.75);
    padding: .65rem 1.2rem;
    font-size: .93rem;
    border-left: 3px solid transparent;
}
.sidebar-nav .nav-link i { width: 20px; display: inline-block; }
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-left-color: #ffc107;
}

.main-content { flex: 1; min-width: 0; }
.topbar {
    background: #fff;
    padding: .8rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.content-body { padding: 1.5rem; }

.stat-card {
    border: none;
    border-radius: 12px;
    color: #fff;
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.stat-card .stat-icon { font-size: 2rem; opacity: .8; }
.stat-card h3 { font-weight: 700; margin: 0; }

.card { border: none; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.table thead { background: #f1f3f7; }
.badge-tipe { font-size: .75rem; }

@media (max-width: 767px) {
    .sidebar {
        position: fixed;
        left: -260px;
        z-index: 1050;
        transition: left .25s ease;
        height: 100vh;
    }
    .sidebar.show { left: 0; }
}
