/* style.css */
:root {
    --kementan-green: #0F5132; /* Hijau Tua */
    --kementan-gold: #FFC107;  /* Emas/Kuning */
    --kementan-light: #D1E7DD;
    --navy-dark: #2C3E50;
    --bg-light: #F4F7F6;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    height: 100vh;
    overflow: hidden;
}

.app-container { height: 100vh; }
.bg-primary-kementan { background-color: var(--kementan-green) !important; }
.text-secondary-custom { color: var(--navy-dark) !important; }

/* Sidebar */
/* Sidebar */
.sidebar {
    width: 260px;
    min-width: 260px; /* Mencegah sidebar menyusut */
    flex-shrink: 0;   /* Mengunci ukuran absolut sidebar */
    transition: all 0.3s ease;
    z-index: 1000;
}
.sidebar .nav-link { font-weight: 500; opacity: 0.8; transition: 0.2s; border-left: 4px solid transparent; }
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    opacity: 1;
    background-color: rgba(255,255,255,0.1);
    border-left: 4px solid var(--kementan-gold);
}
.main-content {
    min-width: 0;
}
/* Cards & Stats */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-icon {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 24px;
}

/* Custom Table */
.table-custom { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.table-custom thead { background-color: var(--navy-dark); color: white; font-weight: 500; }
.table-custom th, .table-custom td { vertical-align: middle; padding: 12px 15px; }

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar { position: absolute; left: -260px; height: 100%; }
    .sidebar.show { left: 0; }
}

/* Loading Overlay */
#loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.8); z-index: 2000;
    display: none; justify-content: center; align-items: center; flex-direction: column;
}