/* ==========================================================================
   ASSETS/CSS/DINAR.CSS (FILE LENGKAP & TERDOKUMENTASI)
   Mengatur seluruh tampilan: Login, Dashboard, 5 Tema, Sidebar & Komponen
   ========================================================================== */

/* ==========================================================================
   1. VARIABEL CSS & 5 TEMA
   - Menggunakan CSS Custom Properties (variabel) untuk memudahkan penggantian tema.
   - Mendefinisikan 5 tema: default, dark, emerald, sunset, royal.
   ========================================================================== */
:root {
    /* A. Default Theme (Light Blue) - Tema cerah dengan aksen biru */
    --primary: #4361ee;      /* Warna utama untuk tombol, link aktif */
    --secondary: #3f37c9;  /* Warna sekunder, biasanya untuk hover */
    --accent: #4895ef;      /* Warna aksen, untuk highlight */
    
    --bg-body: #f8f9fa;      /* Warna background utama halaman */
    --bg-panel: #ffffff;     /* Warna background untuk kartu, modal */
    
    /* Variabel Sidebar Khusus - Mengatur tampilan menu navigasi */
    --bg-sidebar: #ffffff; 
    --text-sidebar: #2b2d42;
    --sidebar-active: #eef2ff; 
    --sidebar-border: #e9ecef;

    /* Variabel Teks dan Border */
    --text-main: #2b2d42;
    --text-muted: #8d99ae;
    --border: #e9ecef;
    
    /* Layout Dimensi - Untuk konsistensi ukuran */
    --sidebar-width: 260px;
    --header-height: 70px;
    --radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* B. Dark Theme - Tema gelap untuk kenyamanan mata di malam hari */
[data-theme="dark"] {
    --primary: #7209b7;
    --secondary: #560bad;
    --accent: #b5179e;
    --bg-body: #121212;
    --bg-panel: #1e1e1e;
    
    --bg-sidebar: #18181b;
    --text-sidebar: #e0e0e0;
    --sidebar-active: #2d2d2d;
    --sidebar-border: #333;

    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --border: #333;
}

/* C. Emerald Theme - Tema hijau segar */
[data-theme="emerald"] {
    --primary: #10b981;
    --secondary: #059669;
    --accent: #34d399;
    --bg-body: #ecfdf5;
    --bg-panel: #ffffff;
    
    --bg-sidebar: #064e3b; /* Sidebar berwarna hijau tua gelap */
    --text-sidebar: #ffffff;
    --sidebar-active: #047857;
    --sidebar-border: transparent;

    --text-main: #1f2937;
}

/* D. Sunset Theme - Tema oranye kalem */
[data-theme="sunset"] {
    --primary: #f97316;
    --secondary: #ea580c;
    --accent: #fb923c;
    --bg-body: #fff7ed;
    --bg-panel: #ffffff;
    
    --bg-sidebar: #c2410c; /* Sidebar berwarna oranye tua gelap */
    --text-sidebar: #ffffff;
    --sidebar-active: #ea580c;
    --sidebar-border: transparent;

    --text-main: #1f2937;
}

/* E. Royal Theme - Tema ungu kebiruan */
[data-theme="royal"] {
    --primary: #6366f1;
    --secondary: #4f46e5;
    --accent: #818cf8;
    --bg-body: #eef2ff;
    --bg-panel: #ffffff;
    
    --bg-sidebar: #3730a3; /* Sidebar berwarna ungu tua gelap */
    --text-sidebar: #ffffff;
    --sidebar-active: #4338ca;
    --sidebar-border: transparent;

    --text-main: #1f2937;
}

/* ==========================================================================
   2. GLOBAL RESET & TYPOGRAPHY
   - Reset standar browser untuk konsistensi.
   - Mengatur font dasar dan tinggi body untuk layout flexbox.
   ========================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
}

/* 
  PENTING: Mengatur tinggi html dan body ke 100% agar layout flexbox berfungsi dengan benar.
  Ini penting agar sidebar dan main content bisa mengisi seluruh tinggi layar.
*/
html, body { height: 100%; } 

body { 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    transition: var(--transition); 
    overflow-x: hidden; /* Mencegah scroll horizontal yang tidak diinginkan */
} 
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ==========================================================================
   3. UTILITIES (Kelas Pembantu)
   - Kelas-kelas kecil yang sering digunakan.
   ========================================================================== */
.hidden { display: none !important; }

/* ==========================================================================
   3.1. BUTTON STYLES
   - Semua style untuk tombol di aplikasi
   ========================================================================== */
.btn { 
    padding: 10px 20px; 
    border-radius: 6px; 
    border: none; 
    cursor: pointer; 
    font-weight: 600; 
    transition: var(--transition); 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 0.95rem; 
}

.btn-primary { 
    background-color: var(--primary); 
    color: white; 
}

.btn-primary:hover { 
    background-color: var(--secondary); 
    transform: translateY(-1px); 
}

.btn-outline { 
    border: 1px solid var(--border); 
    color: var(--text-main); 
    background: transparent; 
}

.btn-outline:hover { 
    background: var(--border); 
}

/* Tombol Danger (Hapus) */
.btn-danger {
    background-color: #ef233c;
    color: white;
    border: 1px solid #ef233c;
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
}

/* Tombol Success */
.btn-success {
    background-color: #10b981;
    color: white;
    border: 1px solid #10b981;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-1px);
}

/* Tombol Warning */
.btn-warning {
    background-color: #f59e0b;
    color: white;
    border: 1px solid #f59e0b;
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    transform: translateY(-1px);
}

/* Tombol Sm (Kecil untuk tabel) */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* ==========================================================================
   3.2. MODAL STYLES (GLOBAL & MODERN)
   - Styling untuk modal popup
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Fallback */
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
}
.modal.open {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background-color: var(--bg-panel);
    margin: auto;
    padding: 0;
    border: 1px solid var(--border);
    width: 80%;
    max-width: 600px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3, .modal-header h4 {
    margin: 0;
    color: var(--text-main);
}

.modal-body {
    padding: 20px;
}

.close-btn {
    color: var(--text-muted);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
}

/* Modal Hapus */
.delete-warning {
    text-align: center;
    padding: 20px 0;
}

.car-info-delete {
    background: var(--bg-body);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #ef233c;
}

.car-info-delete p {
    margin: 5px 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.modal-actions form {
    display: flex;
    gap: 10px;
    margin: 0;
}

/* ==========================================================================
   4. LOGIN PAGE STYLES
   - Gaya khusus untuk halaman login.
   ========================================================================== */
.login-wrapper {
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
.login-card {
    background: var(--bg-panel); 
    padding: 40px; 
    border-radius: var(--radius);
    width: 100%; 
    max-width: 400px; 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); 
    text-align: center;
}
.login-logo { 
    font-size: 2.5rem; 
    color: var(--primary); 
    margin-bottom: 10px; 
}
.login-title { 
    margin-bottom: 30px; 
    font-size: 1.5rem; 
    color: var(--text-main); 
}

/* Form Login - Gaya untuk input pada form login */
.form-group { 
    margin-bottom: 20px; 
    text-align: left; 
}
.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    font-weight: 500; 
}
.form-control {
    width: 100%; 
    padding: 12px; 
    border: 1px solid var(--border); 
    border-radius: 6px;
    background: var(--bg-body); 
    color: var(--text-main); 
    font-size: 1rem; 
    transition: var(--transition);
}
.form-control:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15); 
}

/* ==========================================================================
   5. DASHBOARD LAYOUT
   - Struktur utama: Sidebar (Kiri) & Main Content (Kanan).
   - Menggunakan flexbox untuk layout yang responsif.
   ========================================================================== */
.dashboard-container { display: flex; min-height: 100vh; }

/* A. Sidebar - Menu navigasi di kiri */
.sidebar {
    width: var(--sidebar-width); 
    background: var(--bg-sidebar);
    border-right: 1px solid var(--sidebar-border);
    position: fixed; 
    height: 100%; 
    transition: var(--transition); 
    z-index: 99;
    display: flex; 
    flex-direction: column;
}
.sidebar-header { 
    height: var(--header-height); 
    display: flex; 
    align-items: center; 
    padding: 0 24px; 
    border-bottom: 1px solid var(--sidebar-border); 
}
.brand { 
    font-size: 1.4rem; 
    font-weight: 800; 
    color: var(--text-sidebar); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

/* B. Sidebar Menu Container - Area untuk daftar menu */
.sidebar-menu {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* C. MENU ITEM - Gaya untuk setiap item menu */
.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 24px;
    color: var(--text-sidebar);
    font-weight: 500;
    transition: var(--transition);
    border-left: 4px solid transparent;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
}

/* 
  PERHATIAN: Struktur HTML untuk menu item menggunakan div untuk mengelompokkan ikon dan teks.
  Ini memudahkan penataan dan penambahan elemen di masa depan.
*/
.menu-item > div {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Icon Style - Ikon Font Awesome di dalam menu */
.menu-item > div i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    min-width: 24px;
    margin-right: 12px;
}

/* Text Style */
.menu-item span {
    flex: 1;
}

/* Support untuk menu biasa tanpa dropdown wrapper */
.menu-item > i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    font-size: 1.1rem;
    min-width: 24px;
}

/* D. Active Menu State - Gaya untuk menu yang sedang aktif */
.menu-item.active {
    background: var(--sidebar-active);
    color: var(--text-sidebar);
    border-left-color: #ffffff;
}
/* 
  Override khusus untuk tema default, karena sidebar-nya putih.
  Memberi warna biru pada teks dan border kiri.
*/
[data-theme="default"] .menu-item.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

/* E. Chevron (Panah) - Gaya untuk panah dropdown */
.chevron { 
    font-size: 0.75rem; 
    transition: transform 0.3s ease; 
    margin-left: 10px;
}
.menu-item.active .chevron, .menu-item.rotate-chevron .chevron { transform: rotate(180deg); }

/* F. Submenu (Dropdown) - Gaya untuk submenu/dropdown */
.submenu {
    max-height: 0;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.05);
    transition: max-height 0.3s ease-out;
    list-style: none;
    padding-left: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
/* Warna Background Submenu per Tema */
[data-theme="default"] .submenu { background-color: #f8f9fa; }
[data-theme="dark"] .submenu, [data-theme="emerald"] .submenu, [data-theme="sunset"] .submenu, [data-theme="royal"] .submenu { background-color: rgba(0, 0, 0, 0.2); }
.submenu.open { max-height: 500px; transition: max-height 0.5s ease-in; }

/* G. Item dalam Submenu - Indentasi rapi untuk item submenu */
.submenu .menu-item {
    padding-left: 3.5rem;
    font-size: 0.9rem;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* H. Hover Effects - Efek hover untuk menu */
[data-theme="default"] .menu-item:hover {
    background: rgba(67, 97, 238, 0.05);
    color: var(--primary);
}
/* 
  Hover untuk tema gelap, memberikan efek terang saat mouse di atas menu.
*/
[data-theme="dark"] .menu-item:hover, 
[data-theme="emerald"] .menu-item:hover,
[data-theme="sunset"] .menu-item:hover, 
[data-theme="royal"] .menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* I. Main Content Wrapper - Area konten utama di sebelah kanan sidebar */
.main-content {
    margin-left: var(--sidebar-width); 
    width: calc(100% - var(--sidebar-width)); 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    transition: var(--transition);
}

/* ==========================================================================
   6. HEADER / TOPBAR
   - Header di bagian atas dengan tema switcher dan user profile.
   ========================================================================== */
/*.header {
    height: var(--header-height); 
    background: var(--bg-panel); 
    border-bottom: 1px solid var(--border);
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 30px;
    position: sticky; 
    top: 0; z-index: 100; 
    justify-content: flex-end; 
}*/

/* UPDATE HEADER (JARAK KIRI KANAN) */
.header {
    height: var(--header-height); 
    background: var(--bg-panel); 
    border-bottom: 1px solid var(--border);
    display: flex; 
    align-items: center; 
    justify-content: space-between !important; /* <-- GANTI KE space-between AGAR KIRI KANAN RAPI */
    padding: 0 30px;
    position: sticky; 
    top: 0; z-index: 100; 
}

/* 
  UPDATE: Tombol Toggle Sidebar (Mobile & Desktop)
  Diubah display: none menjadi flex agar muncul di PC juga.
*/
/*.toggle-sidebar {
    cursor: pointer;
    font-size: 1.5rem; 
    color: var(--text-main);
    display: flex !important; /* <-- UPDATE AGAR MUNCUL DI PC */
    /*align-items: center;*/
    /*justify-content: center;*/
    /*width: 40px;*/
    /*height: 40px;*/
    /*margin-right: 20px; /* Jarak dengan menu user */*/
    /*z-index: 1001; */
   /* transition: var(--transition);
}*/

/*.toggle-sidebar:hover {
    color: var(--primary);*/
    /*transform: scale(1.1);*/
/*}*/*/

/* --- UPDATE TOGGLE SIDEBAR (POSISI KIRI) --- */
.toggle-sidebar {
    cursor: pointer;
    font-size: 1.5rem; 
    color: var(--text-main);
    display: flex !important; 
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 20px; /* Jarak dari elemen di kanannya (header-right) */
    margin-left: 0;    /* Reset margin kiri */
    z-index: 1001; 
    transition: var(--transition);
}

.toggle-sidebar:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.header-right { display: flex; align-items: center; gap: 20px; }

/* A. Theme Switcher - Area untuk mengganti tema */
.theme-switcher { display: flex; gap: 8px; }
.theme-dot { 
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    cursor: pointer; 
    border: 2px solid transparent; 
    transition: transform 0.2s; 
}
.theme-dot:hover { transform: scale(1.1); }
.theme-dot.active { border-color: var(--text-main); transform: scale(1.1); }

/* B. User Profile - Area profil user di kanan atas */
.user-profile { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    position: relative; 
}
.avatar { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    background: var(--border); 
    object-fit: cover; 
    border: 2px solid var(--border); 
}
.user-info .name { font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
.user-info .role { font-size: 0.75rem; color: var(--text-muted); }

/* Tambahkan style untuk role badge di header */
.role-badge {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

/* ==========================================================================
   7. CONTENT BODY & CARDS
   - Area konten utama di bawah header.
   ========================================================================== */
.content-body { 
    padding: 30px; 
    flex: 1; 
    display: flex; 
    flex-direction: column;
}

.page-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
}
.page-title { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--text-main);  
}

/* A. Stats Grid - Grid untuk kartu statistik di dashboard */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 24px; 
    margin-bottom: 30px; 
}
.stat-card { 
    background: var(--bg-panel); 
    padding: 24px; 
    border-radius: var(--radius); 
    border: 1px solid var(--border); 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    box-shadow: var(--shadow); 
    transition: var(--transition); 
}
.stat-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); 
}
.stat-icon { 
    width: 50px; 
    height: 50px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    color: white; 
    background: var(--primary); 
}
.stat-info h3 { 
    font-size: 1.8rem; 
    margin-bottom: 4px; 
    color: var(--text-main); 
}
.stat-info p { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    font-weight: 500; 
}

/* ==========================================================================
   8. DATATABLES CUSTOMIZATION
   - Gaya khusus untuk plugin jQuery DataTables agar sesuai dengan tema aplikasi.
   ========================================================================== */
.table-container { 
    background: var(--bg-panel); 
    border-radius: var(--radius); 
    border: 1px solid var(--border); 
    padding: 20px; 
    overflow: hidden; 
    box-shadow: var(--shadow); 
}
table.dataTable thead th { 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    border-bottom: 2px solid var(--border) !important; 
    font-weight: 600; 
    padding: 15px 12px; /* Tambah padding vertikal */
}
table.dataTable tbody tr:hover { 
    background-color: rgba(67, 97, 238, 0.05); 
}

/* 
  PERBAIKAN PENTING: Kode di bawah ini menyesuaikan tampilan DataTables pada tema gelap.
  !important digunakan untuk memastikan gaya ini menangani gaya default DataTables.
*/
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing {
    color: var(--text-main) !important;
    margin-bottom: 15px; /* Tambah jarak antar elemen */
}

/* Perbaikan untuk input dan select pada semua tema */
.dataTables_wrapper .dataTables_filter input {
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 12px; /* Tambah padding */
    border-radius: 4px;
    margin-left: 8px;
}

/* Perbaikan untuk dropdown panjang halaman */
.dataTables_wrapper .dataTables_length select {
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 12px; /* Tambah padding */
    border-radius: 4px;
}

/* Perbaikan untuk pagination pada semua tema */
.dataTables_wrapper .dataTables_paginate .paginate_button { 
    color: var(--text-main) !important; 
    background-color: var(--bg-body) !important;
    border: 1px solid var(--border) !important;
    padding: 8px 12px; /* Tambah padding */
    margin: 0 2px; /* Tambah jarak antar tombol */
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current { 
    background: var(--primary) !important; 
    border: none; 
    color: white !important; 
    border-radius: 4px; 
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover { 
    background: var(--secondary) !important; 
    color: white !important; 
}

/* Perbaikan untuk sorting icon pada semua tema */
.dataTables_wrapper .dataTablesad th.sorting,
.dataTables_wrapper .dataTablesad th.sorting_asc,
.dataTables_wrapper .dataTablesad th.sorting_desc {
    color: var(--text-main) !important;
}

/* Perbaikan untuk tabel data pada semua tema */
table.dataTable tbody tr {
    background-color: var(--bg-panel);
    color: var(--text-main);
}

/* 
  Membuat baris ganjil pada tabel lebih terlihat.
  Ini meningkatkan keterbacaan.
*/
table.dataTable tbody tr.odd {
    background-color: var(--bg-body);
}

/* Perbaikan untuk form control pada semua tema */
.form-control {
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
}


/* ==========================================================================
   9. FOOTER
   - Footer di bagian paling bawah halaman.
   ========================================================================== */
.footer { 
    text-align: center; 
    padding: 20px; 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    border-top: 1px solid var(--border); 
    background: var(--bg-panel); 
    flex-shrink: 0; 
}

/* ==========================================================================
   10. TOAST NOTIFICATIONS
   - Pop-up notifikasi di pojok kanan atas.
   ========================================================================== */
.toast-container { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    z-index: 1000; 
    pointer-events: none; 
}
.toast {
    background: var(--bg-panel); 
    border-left: 4px solid var(--primary); 
    padding: 15px 20px;
    border-radius: 4px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    margin-bottom: 10px;
    display: flex; 
    align-items: center; 
    gap: 10px; 
    animation: slideIn 0.3s ease; 
    width: 300px;
    pointer-events: auto; 
    color: var(--text-main);
}
.toast.error { border-left-color: #ef233c; }
.toast.success { border-left-color: #10b981; }
@keyframes slideIn { 
    from { transform: translateX(100%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

/* ==========================================================================
   11. RESPONSIVE MEDIA QUERIES (MOBILE)
   - Mengatur tampilan saat layar di bawah 992px (tablet dan mobile).
   ========================================================================== */
@media (max-width: 992px) {
    
    /* 
      1. HEADER RIGHT CONTAINER
      - Menata ulang kembali header untuk tampilan mobile.
      - Burger muncul di kiri, user profile di kanan.
    */
    .header-right {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        
        display: flex;
        align-items: center;
        
        /* Posisi: Burger Kiri, User Kanan */
        justify-content: space-between !important; 
        
        gap: 0;
    }

    /* 2. TOMBOL BURGER (Kiri) */
    .toggle-sidebar { 
        display: flex !important; 
        width: 40px; 
        height: 40px;
        align-items: center; 
        justify-content: center;
        margin-right: 0;
    }

    /* 3. THEME CONTAINER (GESER KE KANAN) */
    .theme-dropdown-container {
        /* 
          PERHATIAN: Mendorong tema menjauh dari burger.
          Ini mencegah tumpang tindih dengan tombol burger.
        */
        margin-left: 40px; 
        
        /* Pastikan tidak tertimpa user jika layar sangat kecil */
        margin-right: 0; 
    }

    /* 4. USER PROFILE (Kanan) */
    .user-profile-wrapper {
        margin-left: auto; /* Pastikan nempel ujung kanan */
    }
    
    /* 5. LAIN-LAIN (Sidebar, Content) */
    .sidebar { 
        transform: translateX(-100%); 
        width: 260px; 
    }
    .sidebar.active { 
        transform: translateX(0); 
    }
    .main-content { 
        margin-left: 0; 
        width: 100%; 
    }
    .stats-grid { 
        grid-template-columns: 1fr; 
    }
}

/* ==========================================================================
   12. FORM VALIDATION STYLES
   - Gaya untuk input yang error dan pesan error.
   ========================================================================== */

/* 
  Style untuk input yang error saat validasi gagal.
  Menambahkan ikon silang merah dan padding ekstra di kanan.
*/
.form-control.is-invalid {
    border-color: #ef233c;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef233c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef233c' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

/* 
  Style untuk pesan error yang muncul di bawah input.
  Pastikan selalu terlihat dengan display: block.
*/
.invalid-feedback {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #ef233c;
    display: block; 
}

/* 
  Style untuk alert error di bagian atas form.
  Muncul jika ada error dari server (PHP).
*/
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-danger ul {
    margin-bottom: 0;
    padding-left: 20px;
}

/* ==========================================================================
   13. ADD CAR PAGE LAYOUT
   - Tata letak dua kolom untuk halaman tambah mobil (form & daftar mobil).
   ========================================================================== */

/* 
  Container utama untuk tata letak dua kolom.
  Menggunakan flexbox untuk responsif.
*/
.add-car-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 
  Kolom kiri untuk form (lebih lebar).
  Mengambil 2/3 ruang.
*/
.form-wrapper {
    flex: 2; 
    min-width: 0; 
}

/* 
  Kolom kanan untuk daftar mobil (lebih sempit).
  Mengambil 1/3 ruang dan menempel di atas saat scroll.
*/
.car-list-sidebar {
    flex: 1; 
    position: sticky; 
    top: 100px; 
}

.car-list-sidebar .sidebar-content {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

/* 
  Styling untuk judul di dalam sidebar.
*/
.car-list-sidebar h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

/* 
  Container untuk daftar mobil dengan scroll vertikal.
  max-height membatasi tinggi agar sidebar tidak terlalu panjang.
*/
.car-list-container {
    max-height: 70vh; 
    overflow-y: auto; 
    padding-right: 10px; 
}

/* 
  Gaya untuk setiap kartu mobil.
  Efek hover untuk interaktivitas.
*/
.car-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-body);
    transition: var(--transition);
}

.car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* 
  Container untuk gambar mobil.
  Mengatur ukuran dan object-fit agar gambar tidak terdistorsi.
*/
.car-card-image {
    flex-shrink: 0; 
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* 
  Area informasi mobil (nama, plat nomor).
  Text overflow untuk teks yang terlalu panjang.
*/
.car-card-info {
    flex: 1;
    min-width: 0; 
}

.car-card-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
}

/* 
  Area detail (harga, status).
  Flexbox untuk meratakan harga dan status.
*/
.car-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 
  Gaya untuk badge status (tersedia, disewa, maintenance).
  Sudah ada di section 16, tapi saya pindahkan ke sini untuk konsistensi.
*/
.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.status-tersedia { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-disewa { background-color: rgba(249, 115, 22, 0.1); color: #f97316; }
.status-maintenance { background-color: rgba(239, 35, 60, 0.1); color: #ef233c; }

/* 
  Responsif: Tumpuk kolom di layar kecil.
  Sidebar pindah ke bawah form.
*/
@media (max-width: 992px) {
    .add-car-layout {
        flex-direction: column; 
    }
    .form-wrapper, .car-list-sidebar {
        flex: 1; 
        width: 100%;
    }
    .car-list-sidebar {
        position: static; 
        margin-top: 20px;
    }
    .car-list-container {
        max-height: 400px; 
    }
}

/* ==========================================================================
   14. PAGINATION STYLES
   - Gaya untuk navigasi halaman (sebelumnya manual, sekarang menggunakan DataTables).
   - Masih dibiarkan untuk referensi.
   ========================================================================== */

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 15px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    margin: 0 2px;
}

.page-link {
    display: block;
    padding: 8px 12px;
    color: var(--primary);
    text-decoration: none;
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    background-color: var(--bg-body);
    border-color: var(--border);
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsif untuk Pagination di mobile */
@media (max-width: 576px) {
    .pagination-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}



/* ==========================================================================
   15. TABLE STYLES (UNIVERSAL) - VERSI RESPONSIF DIPERBAIKI
   ========================================================================== */

/* --- Base Table Styles --- */
.table-container {
    background: var(--bg-panel);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow-x: auto; /* Tetap pertahankan untuk layar sangat kecil */
    box-shadow: var(--shadow);
}

/* Responsive wrapper untuk tabel */
.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Untuk scroll yang lebih halus di iOS */
}

/* Default styling untuk semua tabel */
table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--bg-panel);
}

table thead th {
    background: var(--bg-body);
    color: var(--text-main);
    font-weight: 600;
    text-align: left;
    padding: 12px 8px; /* Kurangi padding horizontal untuk menghemat ruang */
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.85rem; /* Ukuran font sedikit lebih kecil */
}

table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
    background-color: var(--bg-panel);
}

/* Warna zebra untuk baris ganjil */
table tbody tr:nth-child(odd) {
    background-color: var(--bg-body);
}

table tbody tr:last-child {
    border-bottom: none;
}

table tbody tr:hover {
    background-color: var(--primary);
}

table td {
    padding: 12px 8px; /* Sesuaikan dengan padding th */
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Kontras warna teks saat hover - PERBAIKAN PENTING */
table tbody tr:hover td {
    color: white !important;
}

/* Badge status saat hover */
table tbody tr:hover .status-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Tombol aksi saat hover */
table tbody tr:hover .btn {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Link dan ikon di baris hover */
table tbody tr:hover a,
table tbody tr:hover i {
    color: white !important;
}

/* --- Media Queries untuk Laptop & Tablet --- */

/* Untuk layar antara 768px dan 1200px (Laptop 11-14 inci, Tablet Landscape) */
@media (max-width: 1200px) {
    table thead th {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
    table td {
        padding: 10px 6px;
        font-size: 0.85rem;
    }
    /* Sembunyikan beberapa teks yang kurang penting di laptop kecil */
    .table-container td:nth-child(2) { /* Kolom Model */
        font-weight: normal;
        color: var(--text-muted);
    }
}

/* Untuk layar antara 600px dan 768px (Tablet Portrait) */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    table thead th, 
    table tbody td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    /* Buat tombol aksi lebih kecil dan padat */
    .btn {
        padding: 4px 6px;
        font-size: 0.75rem;
    }
    
    /* Sembunyikan header tabel dan tampilkan data sebagai "card" (opsional, tapi sangat responsif) */
    /* Ini adalah pendekatan yang lebih maju, kita bisa coba nanti jika perlu */
}

/* Untuk layar sangat kecil (Phone) */
@media (max-width: 600px) {
    .table-responsive-wrapper {
        min-width: 500px; /* Mencegah tabel terlalu hancur */
    }
    
    /* Contoh: sembunyikan kolom deskripsi jika ada */
    /* table th:nth-child(5), */
    /* table td:nth-child(5) { */
    /*     display: none; */
    /* } */
}
/* ==========================================================================
   16. TABLE STYLES PER TEMA
   - Warna khusus untuk setiap tema
   ========================================================================== */

/* --- Tema Default --- */
[data-theme="default"] table thead th {
    background-color: #f8f9fa;
    border-bottom-color: #dee2e6;
}

[data-theme="default"] table tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

[data-theme="default"] table tbody tr:hover {
    background-color: #4361ee;
}

/* --- Tema Dark --- */
[data-theme="dark"] table thead th {
    background-color: #2d2d2d;
    border-bottom-color: #444;
}

[data-theme="dark"] table tbody tr:nth-child(odd) {
    background-color: #2d2d2d;
}

[data-theme="dark"] table tbody tr:hover {
    background-color: #7209b7;
}

/* --- Tema Emerald --- */
[data-theme="emerald"] table thead th {
    background-color: #f0fdf4;
    border-bottom-color: #dcfce7;
}

[data-theme="emerald"] table tbody tr:nth-child(odd) {
    background-color: #f0fdf4;
}

[data-theme="emerald"] table tbody tr:hover {
    background-color: #10b981;
}

/* --- Tema Sunset --- */
[data-theme="sunset"] table thead th {
    background-color: #fff7ed;
    border-bottom-color: #fed7aa;
}

[data-theme="sunset"] table tbody tr:nth-child(odd) {
    background-color: #fff7ed;
}

[data-theme="sunset"] table tbody tr:hover {
    background-color: #f97316;
}

/* --- Tema Royal --- */
[data-theme="royal"] table thead th {
    background-color: #eef2ff;
    border-bottom-color: #e0e7ff;
}

[data-theme="royal"] table tbody tr:nth-child(odd) {
    background-color: #eef2ff;
}

[data-theme="royal"] table tbody tr:hover {
    background-color: #6366f1;
}

/* ==========================================================================
   17. RESPONSIVE TABLE STYLES
   - Untuk tampilan mobile dan tablet
   ========================================================================== */

/* Minimum width untuk mencegah tabel terlalu menyempit */
.table-responsive-wrapper table {
    min-width: 700px;
}

/* Adjust padding untuk mobile */
@media (max-width: 768px) {
    table thead th, 
    table tbody td {
        padding: 12px 8px; /* Kurangi sedikit di mobile */
    }
    
    .btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* Sembunyikan kolom kurang penting di mobile */
@media (max-width: 600px) {
    .table-responsive-wrapper {
        min-width: 500px;
    }
    
    /* Contoh: sembunyikan kolom aksi jika terlalu banyak */
    table th:last-child,
    table td:last-child {
        white-space: nowrap;
    }
}

/* ==========================================================================
   18. PAGE-SPECIFIC STYLES
   - Gaya khusus untuk halaman tertentu.
   - Di sini kita kumpulkan semua gaya khusus agar tidak berserakan.
   ========================================================================== */

/* --- Customer Data Page --- */
/* 
  Gaya untuk badge status pesanan (baru, berlangsung, dll).
  Sama seperti status mobil, tapi dengan warna yang berbeda.
*/
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.status-baru { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.status-berlangsung { background-color: rgba(249, 115, 22, 0.1); color: #f97316; }
.status-selesai { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-dibatalkan { background-color: rgba(107, 114, 128, 0.1); color: #6b7280; }

/* ==========================================================================
   19. MODAL STYLES
   - Styling untuk modal popup
   ========================================================================== */
/* (Note: Section 3.2 already covers general modal styles, keeping this for reference if needed later) */

/* ==========================================================================
   20. RESPONSIVE UNTUK LAPTOP 14 INCH (TOMBOL AKSI) - DIPERBAIKI
   - Secara khusus mengecilkan tombol aksi (detail, edit, hapus)
   - Berlaku untuk SEMUA tombol dengan class .action-btn
   ========================================================================== */

/* Target layar laptop dengan lebar maksimal 1200px (termasuk 14 inci) */
@media (max-width: 1200px) {
    
    /* 
      Selector yang LEBIH UMUM, akan menangani SEMUA tombol dengan class .action-btn
      di dalam tabel manapun (mobil, pelanggan, dll).
    */
    table .action-btn {
        padding: 4px 6px !important;         /* Padding yang sangat kecil */
        font-size: 0.7rem !important;        /* Font size kecil (jika ada teks) */
        line-height: 1 !important;
        min-width: 28px !important;        /* Lebar minimum */
        max-width: 28px !important;        /* Lebar maksimum agar berbentuk kotak */
        height: 28px !important;             /* Tinggi tetap */
        border-radius: 4px !important;     /* Sedikit melengkung */
        margin-right: 4px !important;      /* Jarak antar tombol */
    }

    /* Perkecil ukuran ikon di dalam tombol aksi */
    table .action-btn i {
        font-size: 0.75rem !important;       /* Ukuran ikon yang lebih kecil */
        margin: 0 !important;               /* Hapus margin */
    }

    /* Hapus jarak di tombol terakhir */
    table .action-btn:last-child {
        margin-right: 0 !important;
    }
}

/* Sedikit penyesuaian untuk tablet agar tetap proporsional */
@media (max-width: 768px) {
    table .action-btn {
        min-width: 26px !important;
        max-width: 26px !important;
        height: 26px !important;
        padding: 1px 3px !important;
    }
    table .action-btn i {
        font-size: 0.7rem !important;
    }
}

/* ==========================================================================
   21. MAINTENANCE / SERVICE LIST PAGE STYLES
   - Khusus untuk halaman Service List (Maintenance)
   - Mendukung tampilan modern yang diminta sebelumnya
   ========================================================================== */

/* Badge Khusus Status Service (Warna Pastel Modern) */
.badge-modern {
    padding: 6px 12px; 
    border-radius: 20px; 
    font-size: 11px; 
    font-weight: 600; 
    letter-spacing: 0.3px;
    display: inline-block;
}
.badge-new { background: #f3f4f6; color: #4b5563; }
.badge-process { background: #dbeafe; color: #1e40af; }
.badge-wait { background: #fef3c7; color: #92400e; }
.badge-done { background: #dcfce7; color: #166534; }

/* Modern Stat Icons Override untuk Service Page */
.stat-icon.modern {
    background: transparent; 
    color: var(--primary); 
    font-size: 2rem;
}
/* Icon Warna Khusus per Statistik Service */
.stat-card:nth-child(1) .stat-icon i { color: #4361ee; } /* Total */
.stat-card:nth-child(2) .stat-icon i { color: #1e40af; } /* Proses */
.stat-card:nth-child(3) .stat-icon i { color: #d97706; } /* Waiting */
.stat-card:nth-child(4) .stat-icon i { color: #166534; } /* Done */

/* Modern Card Style (Opsional override jika ingin layout sangat flat) */
.modern-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   22. THEME-AWARE STATUS BADGES (DITAMBAHKAN)
   - Badge yang menyesuaikan dengan tema untuk konsistensi visual
   ========================================================================== */

.badge-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

/* Status: Baru / Dibuat */
.badge-status-new { 
    background-color: var(--bg-body); 
    color: var(--text-muted); 
    border-color: var(--border);
}

/* Status: Sedang Diproses / Dikerjakan */
.badge-status-process { 
    background-color: rgba(67, 97, 238, 0.1); /* Warna primer dengan transparansi */
    color: var(--text-main); 
}

/* Status: Selesai / Success */
.badge-status-done { 
    background-color: rgba(16, 185, 129, 0.1); /* Warna sukses dengan transparansi */
    color: var(--success); 
}

/* Status: Menunggu / Warning */
.badge-status-wait { 
    background-color: rgba(245, 158, 11, 0.1); /* Warna peringatan dengan transparansi */
    color: var(--warning); 
}

/* Status: Dibatalkan / Danger */
.badge-status-cancelled { 
    background-color: rgba(239, 35, 60, 0.1); /* Warna bahaya dengan transparansi */
    color: var(--danger); 
}

/* ==========================================================================
   23. COMPATIBILITY PATCH (DINAR APP MODERN LAYOUT)
   - Aliases variabel agar kode "Modern Layout" cocok dengan CSS Lama.
   ========================================================================== */

:root,
[data-theme="default"],
[data-theme="dark"],
[data-theme="emerald"],
[data-theme="sunset"],
[data-theme="royal"] {
    
    /* 
      1. KOMPONEN KARTU & MODAL 
      Modern Layout menggunakan --bg-card, sedangkan CSS ini menggunakan --bg-panel.
      Kita arahkan --bg-card ke --bg-panel agar warnanya tetap konsisten.
    */
    --bg-card: var(--bg-panel);

    /* 
      2. TOMBOL HOVER 
      Modern Layout menggunakan --primary-dark untuk warna tombol saat di-hover.
      Kita arahkan ke --secondary yang sudah ada di CSS ini.
    */
    --primary-dark: var(--secondary);

    /* 
      3. WARNA DANGER/WARNING/SUCCESS 
      Pastikan variabel ini ada untuk badge status dan notifikasi.
    */
    --danger: #ef233c;
    --warning: #f59e0b;
    --success: #10b981;

    /* 
      4. WARNA TEKS MUTE 
      Digunakan untuk label form secondary.
    */
    --text-muted: #8d99ae;
}

/* ==========================================================================
   22. MODAL DETAIL STYLES (PATCH PREVENTIVE MAINTENANCE)
   - Memperbaiki tampilan isi modal yang semerawut
   ========================================================================== */

/* 1. Struktur Baris Detail (Label di kiri, Isi di kanan) */
.detail-row {
    display: flex;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border); /* Garis pemisah */
    padding-bottom: 8px;
    align-items: flex-start;
}

/* Label (Kiri) */
.detail-label {
    font-weight: 600;
    width: 140px;
    flex-shrink: 0; /* Mencegah label tertekan */
    color: var(--text-muted);
}

/* Nilai Data (Kanan) */
.detail-value {
    flex-grow: 1;
    color: var(--text-main);
    line-height: 1.4; /* Jarak antar baris rapi */
}

/* 2. Perbaikan Footer Modal (Agar tombol rata kanan) */
.modal-footer {
    display: flex;
    justify-content: flex-end; /* Tombol nempel kanan */
    gap: 10px; /* Jarak antar tombol */
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    background-color: var(--bg-panel); /* Background mengikuti tema */
}

/* 3. Perbaikan Header Modal */
.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-panel);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-main);
}

/* --- FITUR TOGGLE SIDEBAR (FULL SCREEN CONTENT) --- */

/* State saat body punya class 'sidebar-hidden' */
body.sidebar-hidden .sidebar {
    margin-left: -260px !important; /* Geser sidebar keluar ke kiri layar */
}

body.sidebar-hidden .main-content {
    margin-left: 0 !important; /* Hapus margin kiri konten */
    width: 100% !important;
}

/* 
  Tampilkan tombol Burger (Selalu Muncul)
  DIPERBARU: Menghapus display: none agar muncul di desktop
*/
.header .toggle-sidebar {
    display: flex !important; 
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--text-main);
    margin-right: 20px;
    transition: var(--transition);
}

.header .toggle-sidebar:hover {
    color: var(--primary);
    transform: scale(1.1);
}