:root {
    --primary-color: #1a3a6e;
    --primary-light: #2d5aa0;
    --primary-dark: #0d1f3c;
    --secondary-color: #858796;
    --sidebar-width: 250px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; background: #f8f9fc; }

:root {
    --primary-color: #1a3a6e;   /* Biru tua seperti tombol login */
    --primary-light: #2d5aa0;
    --primary-dark: #0d1f3c;
}
/* Login */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d1f3c 0%, #0d1f3c 100%);
    padding: 20px;
}
.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    max-width: 420px;
    width: 100%;
    padding: 40px 35px;
}
.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo i { font-size: 60px; color: #1a3a6e; background: rgba(26,58,110,0.1); padding: 20px; border-radius: 50%; }
.login-logo h3 { margin-top: 15px; color: #1a3a6e; }
.login-card .form-group { margin-bottom: 20px; }
.login-card .input-group { border-radius: 10px; overflow: hidden; border: 2px solid #e3e6f0; }
.login-card .input-group-text { background: transparent; border: none; padding: 12px 15px; }
.login-card .form-control { border: none; padding: 12px 15px; }
.login-btn { width: 100%; padding: 12px; border-radius: 10px; font-weight: 600; background: #1a3a6e; border: none; color: white; }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(26,58,110,0.4); }
.demo-accounts { margin-top: 25px; padding-top: 20px; border-top: 1px solid #e3e6f0; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.demo-item { background: #f8f9fc; padding: 8px 12px; border-radius: 8px; font-size: 12px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }

/* Dashboard */
.dashboard-wrapper { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); background: linear-gradient(180deg, #1a3a6e 0%, #0d1f3c 100%); color: white; position: fixed; height: 100vh; overflow-y: auto; transition: all 0.3s; z-index: 1000; }
.sidebar-brand { padding: 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand i { font-size: 30px; }
.sidebar-brand h5 { margin: 10px 0 0; }
.sidebar-nav { padding: 20px 0; }
.sidebar-nav .nav-item { margin: 5px 0; }
.sidebar-nav .nav-link { color: rgba(255,255,255,0.7); padding: 12px 25px; display: flex; align-items: center; text-decoration: none; border-left: 4px solid transparent; }
.sidebar-nav .nav-link:hover, .sidebar-nav .nav-link.active { color: white; background: rgba(255,255,255,0.1); border-left-color: white; }
.sidebar-nav .nav-link i { width: 25px; margin-right: 10px; }
.main-content { margin-left: var(--sidebar-width); flex: 1; padding: 20px 30px; }

.topbar { background: white; padding: 15px 25px; border-radius: 12px; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; }
.topbar .page-title h4 { margin: 0; font-weight: 700; color: #1a3a6e; }
.user-dropdown .btn { display: flex; align-items: center; gap: 10px; padding: 8px 15px; border-radius: 50px; background: #f8f9fc; border: none; }
.user-dropdown .btn .avatar { width: 35px; height: 35px; border-radius: 50%; background: #1a3a6e; color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; }

.stat-card { background: white; border-radius: 12px; padding: 20px 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-left: 4px solid #1a3a6e; }
.stat-card .stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; background: #1a3a6e; }
.stat-card .stat-info h3 { margin: 0; font-weight: 700; font-size: 28px; color: #1a3a6e; }
.stat-card .stat-info p { margin: 0; color: #858796; font-size: 14px; }

.content-card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 20px; }
.content-card .card-header { padding: 0 0 15px; border-bottom: 1px solid #e3e6f0; display: flex; justify-content: space-between; align-items: center; }
.content-card .card-header h5 { margin: 0; font-weight: 700; color: #1a3a6e; }

.table-custom thead { background: #f8f9fc; }
.table-custom th { font-weight: 600; font-size: 13px; text-transform: uppercase; padding: 12px 15px; }
.table-custom td { padding: 12px 15px; vertical-align: middle; }

.upload-area { border: 2px dashed #d1d3e2; border-radius: 12px; padding: 40px; text-align: center; transition: all 0.3s; cursor: pointer; }
.upload-area:hover, .upload-area.dragover { border-color: #1a3a6e; background: rgba(26,58,110,0.02); }
.upload-area i { font-size: 60px; color: #858796; margin-bottom: 15px; }

.category-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; background: rgba(26,58,110,0.1); color: #1a3a6e; }

.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 999; }
.sidebar-overlay.show { display: block; }

.btn-primary { background: #1a3a6e; border-color: #1a3a6e; }
.btn-primary:hover { background: #0d1f3c; border-color: #0d1f3c; }
.btn-success { background: #1cc88a; border-color: #1cc88a; }
.btn-warning { background: #f6c23e; border-color: #f6c23e; color: #000; }
.btn-danger { background: #e74a3b; border-color: #e74a3b; }
.btn-info { background: #36b9cc; border-color: #36b9cc; }
.btn-secondary { background: #858796; border-color: #858796; }

.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.btn-group-sm>.btn { padding: 0.25rem 0.5rem; font-size: 0.75rem; }

.badge-primary { background: #1a3a6e; }
.bg-primary { background: #1a3a6e !important; }

@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
}
@media (max-width: 768px) { .main-content { padding: 15px; } }
/* Logo Styles */
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-img-login {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.sidebar .logo-img {
    height: 50px;
    width: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .logo-img-login {
        height: 60px;
    }
    .sidebar .logo-img {
        height: 35px;
    }
}
/* Logo Styles */
.logo-img-login {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.sidebar-brand img {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    mix-blend-mode: normal;
}

.topbar-right img {
    vertical-align: middle;
}

@media (max-width: 768px) {
    .logo-img-login {
        height: 60px;
    }
    .sidebar-brand img {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    mix-blend-mode: normal;
}
    .topbar-right .d-none.d-md-block {
        display: none !important;
    }
}
/* Logo Styles */
.sidebar-brand img {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    mix-blend-mode: normal;
}

.topbar-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .sidebar-brand img {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    mix-blend-mode: normal;
}
    .topbar-logo {
        height: 25px;
    }
}

/* Tombol hamburger mobile */
.topbar .btn-link {
    text-decoration: none;
    color: #1a3a6e !important;
}
.topbar .btn-link:hover {
    color: #0d1f3c !important;
}

/* Penyesuaian untuk layar kecil */
@media (max-width: 768px) {
    .topbar .page-title h4 {
        font-size: 1.1rem;
    }
    .topbar .page-title small {
        font-size: 0.75rem;
    }
    .topbar {
        padding: 10px 15px;
    }
    .main-content {
        padding: 10px 15px;
    }
}