:root {
    /* === BRAND COLORS (from logo) === */
    --primary-color: #1f2a6d; /* Biru dongker (utama) */
    --secondary-color: #f25c2a; /* Orange aksen */

    /* === UI COLORS === */
    --bg-light: #f6f7f8;
    --sidebar-width: 260px;
    --bottom-nav-height: 70px;
}


body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-light);
}

.bg-custom-secondary {
    background-color: var(--secondary-color);
}

.text-disabled {
    color: white;
    opacity: 0.8;
}


.btn-main {
    background-color: var(--secondary-color);
    color: var(--bg-light);
    font-weight: 700;
}

.btn-main:hover {
    background-color: var(--secondary-color);
    opacity: 0.8;
    color: var(--bg-light);
}



/* --- Sidebar (Desktop Only) --- */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--primary-color);
    border-right: 1px solid #dee2e6;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    z-index: 1000;
}

/* --- Bottom Navigation (Mobile Only) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--primary-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #dee2e6;
    z-index: 1050;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--bg-light);
    font-size: 10px;
    font-weight: 600;
}

.bottom-nav-item.active {
    color: var(--secondary-color);
}
.bottom-nav-item .material-symbols-outlined {
    font-size: 24px;
    margin-bottom: 2px;
}

/* --- Nav Links Styles --- */
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 1rem;
    color: var(--bg-light);
    font-weight: 500;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}
.nav-link.active {
    background-color: var(--secondary-color);
    color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
}

/* --- Responsive Layout Rules --- */
@media (max-width: 991.98px) {
    .sidebar {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        padding-bottom: calc(var(--bottom-nav-height) + 20px);
    }
    .top-header {
        padding: 0.75rem 1rem;
    }
    .search-container {
        min-width: auto;
        flex-grow: 1;
    }
}

@media (min-width: 992px) {
    .bottom-nav {
        display: none !important;
    }
    .main-content {
        margin-left: var(--sidebar-width);
    }
}

/* --- Components & Styling --- */
.main-content {
    transition: margin-left 0.3s;
}
.top-header {
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.search-input {
    padding-left: 40px;
    background-color: #f1f5f9;
    border: none;
    border-radius: 8px;
}

.search-container {
    position: relative;
}
.search-container .material-symbols-outlined {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    font-weight: 600;
}
.btn-secondary-custom:hover {
    background-color: #ea580c;
    color: white;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.status-pending {
    background: #fff7ed;
    color: #f97316;
}
.status-approved {
    background: #eff6ff;
    color: #137fec;
}

/* === DataTables Custom Style === */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: none;
    background-color: #f1f5f9;
    padding: 6px 12px;
    margin-left: 8px;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    background-color: #f1f5f9;
    border: none;
    padding: 6px 10px;
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
}

table.dataTable thead th {
    background-color: #f8fafc;
    font-size: 12px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

table.dataTable tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

table.dataTable tbody tr:hover {
    background-color: #f8fafc;
}

.dataTables_wrapper .pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: #475569;
}

.dataTables_wrapper .pagination .active .page-link {
    background-color: var(--primary-color);
    color: #fff;
}



.btn-danger {
    background-color: #e11d48;
    color: var(--bg-light);
}