/* ===================================================================
   ✨ REDESAIN CSS DARK ELEGANT V4 OLEH GEMINI (VERSI DIMENSI ELEGAN) ✨
   ===================================================================
   PERUBAHAN V4:
   - Penambahan 'inset' box-shadow untuk memberikan ilusi kedalaman.
   - Aplikasi gradien latar belakang yang sangat halus pada kontainer.
   - Penyempurnaan border dan shadow untuk menciptakan efek 3D.
   - Desain tombol dibuat lebih solid dan menonjol.
   - Penambahan gaya untuk editor mobil interaktif.
   =================================================================== */

/* === VARIABLES & FONT === */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700&family=Roboto+Mono:wght@400;500&display=swap');

:root {
    /* Palet Warna Dark Elegant */
    --bg-darker: #121212;
    --bg-dark: #1E1E1E;
    --bg-light: #2C2C2C;
    --bg-glass: rgba(30, 30, 30, 0.7);

    --accent1: #E6A23C; /* Emas Lembut (Soft Gold) */
    --accent1-rgb: 230, 162, 60;
    --accent1-hover: rgba(230, 162, 60, 0.15);
    --accent2: #409EFF; /* Biru Tenang (Calm Blue) */
    --accent2-rgb: 64, 158, 255;
    
    --text-light: #E0E0E0;
    --text-dark: #A0A0A0;
    --text-secondary: #888;
    
    --green: #67C23A; /* Hijau Sukses */
    --red: #F56C6C;   /* Merah Bahaya */
    --yellow: #E6A23C; /* Kuning Peringatan (Sama dengan aksen) */
    --yellow-rgb: 230, 162, 60;
    --cyan: #56D1D4; /* Sian untuk Aksen Tambahan */

    --border-color: #3a3a4a;
    --border-color-light: rgba(255,255,255,0.1);
    
    --gradient-accent1: linear-gradient(90deg, var(--accent1), #f7ba6a);
    --gradient-accent2: linear-gradient(90deg, var(--accent2), #79bbff);

    /* Sudut yang lebih lembut untuk estetika elegan */
    --border-radius-main: 8px; 
    --border-radius-small: 5px;
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* === 🎨 LATAR BELAKANG MINIMALIS === */
body {
    background-color: var(--bg-darker);
    background-image: radial-gradient(circle at 100% 100%, rgba(230, 162, 60, 0.08), transparent 40%),
                      radial-gradient(circle at 0% 100%, rgba(64, 158, 255, 0.08), transparent 40%);
    color: var(--text-light);
    font-family: 'Exo 2', sans-serif;
    font-weight: 400;
    position: relative;
    overflow-x: hidden;
}

/* === HALAMAN LOGIN === */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}
/* Styling untuk Info Detail Tuning di Modal NOS */
#tuningInfoContainer {
    border-top: 1px solid var(--bg-light);
    padding-top: 20px;
    margin-top: 20px;
}

#tuningInfoContainer h4 {
    color: var(--accent1);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.tuning-info-list {
    list-style: none;
    padding-left: 15px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85em;
}

.tuning-info-list li {
    padding: 4px 0;
    display: flex;
    flex-wrap: wrap;
}

.tuning-key {
    color: var(--cyan);
    margin-right: 8px;
    font-weight: 600;
}

.tuning-value {
    color: var(--text-light);
    word-break: break-all;
}

.tuning-info-list ul {
    width: 100%;
    margin-top: 5px;
    border-left: 2px solid var(--border-color);
}
.login-box {
    background: linear-gradient(135deg, rgba(44,44,44,0.5), rgba(30,30,30,0.5));
    backdrop-filter: blur(15px);
    padding: clamp(30px, 5vw, 45px);
    border-radius: var(--border-radius-main);
    border: 1px solid var(--bg-light);
    /* [DIMENSI] Menambahkan inset shadow untuk kedalaman */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
    text-align: center;
    width: 100%;
    max-width: 420px;
    transition: box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
/* Tata Letak Editor NOS & Tuning */
.nos-editor-layout {
    display: grid;
    grid-template-columns: 300px 1fr; /* Kolom kiri untuk form, kanan untuk editor */
    gap: 25px;
    align-items: flex-start;
}

.nos-form-section {
    padding-right: 25px;
    border-right: 1px solid var(--border-color);
}

.tuning-editor-section {
    max-height: 450px; /* Batasi tinggi agar bisa scroll */
    overflow-y: auto;
    padding: 5px;
}

/* Penyesuaian untuk layar kecil */
@media screen and (max-width: 768px) {
    .nos-editor-layout {
        grid-template-columns: 1fr; /* Ubah jadi 1 kolom */
        gap: 15px;
    }
    .nos-form-section {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
}

/* (Salin juga semua gaya CSS dari jawaban sebelumnya untuk .detail-group, .editable-value, dll.) */
/* Ini akan memastikan tampilan editor tuning tetap cantik */
.no-data-info { color: var(--text-secondary); text-align: center; padding: 1rem; }
.detail-group { border: 1px solid var(--border-color); border-radius: var(--border-radius-small); margin-bottom: 8px; background-color: #1a1a2e; }
.detail-group:hover { box-shadow: 0 0 8px rgba(var(--accent1-rgb), 0.5); }
.detail-group-header { padding: 12px 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; color: var(--text-light); background-color: rgba(255, 255, 255, 0.05); }
.detail-group-header:hover { background-color: var(--accent1); }
.detail-group-header span:first-child { word-break: break-all; text-transform: capitalize; font-size: 0.95em; }
.detail-group-header .toggle-icon { color: var(--yellow); font-size: 1.2em; }
.detail-group-content { padding: 10px 15px; background-color: #161625; border-top: 1px solid var(--border-color); }
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list > li { padding: 5px 0; border-bottom: 1px solid var(--border-color-light); }
.detail-list > li:last-child { border-bottom: none; }
.detail-property { display: flex; justify-content: space-between; align-items: center; padding: 8px 5px; min-height: 40px; }
.detail-property strong { color: var(--cyan); margin-right: 15px; word-break: break-all; flex-shrink: 0; font-size: 0.9em; }
.editable-value { color: var(--text-light); cursor: pointer; text-align: right; font-family: 'Roboto Mono', monospace; font-size: 0.9em; }
.editable-value > span { padding: 6px 8px; border-radius: 4px; transition: background-color 0.2s; display: inline-block; min-width: 50px; }
.editable-value:hover > span { background-color: var(--accent1-hover); box-shadow: 0 0 5px rgba(var(--yellow-rgb), 0.5); }
.editable-value .edit-controls { display: none; align-items: center; gap: 8px; }
.editable-value.editing .edit-controls { display: flex; }
.editable-value.editing > span { display: none; }
.form-input-inline { background-color: var(--bg-dark); color: var(--text-light); border: 1px solid var(--accent2); border-radius: 4px; padding: 6px 8px; max-width: 160px; text-align: right; box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); }
.form-input-inline:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 8px rgba(var(--yellow-rgb), 0.7); }
.btn-save-edit, .btn-cancel-edit { border: none; color: white; font-weight: bold; cursor: pointer; border-radius: 50%; width: 30px; height: 30px; flex-shrink: 0; font-size: 1.1em; line-height: 30px; text-align: center; }
.btn-save-edit:hover, .btn-cancel-edit:hover { transform: scale(1.1); }
.btn-save-edit { background-color: var(--green); }
.btn-cancel-edit { background-color: var(--red); }
.login-box:hover {
    border-color: rgba(230, 162, 60, 0.5);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 
                0 0 20px rgba(230, 162, 60, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.login-box h2 {
    margin-bottom: 35px;
    color: var(--text-light);
    font-weight: 600;
    font-size: clamp(1.6rem, 5vw, 2.1rem);
    letter-spacing: 1px;
}

.login-box input {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    background: var(--bg-dark);
    border: 1px solid var(--bg-light);
    color: var(--text-light);
    border-radius: var(--border-radius-small);
    transition: all var(--transition-speed) ease;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    /* [DIMENSI] Inset shadow pada input */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-box input:focus {
    outline: none;
    border-color: var(--accent1);
    box-shadow: 0 0 15px rgba(230, 162, 60, 0.4),
                inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-box button {
    width: 100%;
    padding: 15px;
    background-image: var(--gradient-accent1);
    background-size: 200% auto;
    border: 1px solid rgba(0,0,0,0.2);
    color: var(--bg-darker);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
    letter-spacing: 1.5px;
    will-change: transform, box-shadow;
    /* [DIMENSI] Membuat tombol lebih solid */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.login-box button:hover {
    background-position: right center;
    box-shadow: 0 6px 20px rgba(230, 162, 60, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: scale(1.02) translateY(-2px);
}

.login-box button:disabled {
    background-image: none;
    background-color: var(--bg-light);
    color: var(--text-dark);
    cursor: not-allowed;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transform: none;
}

.login-box .error {
    color: var(--red);
    margin-top: 15px;
}

/* === LOADER MODERN === */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.75s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--bg-light);
    border-top: 5px solid var(--accent1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === DASHBOARD CONTAINER & HEADER === */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    /* [DIMENSI] Gradien latar belakang halus */
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-main);
    border: 1px solid var(--bg-light);
    /* [DIMENSI] Penambahan inset shadow */
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6),
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.5s ease-out;
}

.container.loaded {
    opacity: 1;
    transform: translateY(0);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-bottom: 1px solid var(--bg-light);
    padding-bottom: 1.5rem;
}

.header-logo img {
    max-width: 160px;
    filter: drop-shadow(0 0 10px rgba(230, 162, 60, 0.3));
}

.header-info { text-align: right; }
.header-info #datetime { font-family: 'Roboto Mono', monospace; font-size: 0.9em; color: var(--text-dark); margin-bottom: 8px; }
.header-info #user-stats { font-size: 1.1em; margin-bottom: 8px; }
.header-info #user-stats b { color: var(--accent1); font-weight: 600; }
#statusCounters { display: flex; gap: 20px; justify-content: flex-end; font-size: 0.9em; font-weight: 600; margin-bottom: 12px; }
.counter-normal { color: var(--green); }
.counter-banned { color: var(--red); }
.logout-btn { padding: 8px 15px; border-radius: var(--border-radius-small); text-decoration: none; font-weight: 600; display: inline-block; transition: all var(--transition-speed) ease; border: 1px solid var(--accent2); color: var(--accent2); background: transparent; will-change: transform, box-shadow, background-color; }
.logout-btn:hover { background-color: var(--accent2); color: var(--bg-dark); box-shadow: 0 0 20px rgba(64, 158, 255, 0.4); transform: translateY(-2px); }

/* === KONTROL & INPUT === */
.section-spacing { margin-top: 2rem; margin-bottom: 2rem; }
.table-controls { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.table-controls input, .table-controls select, .form-input {
    padding: 12px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--bg-light);
    color: var(--text-light);
    border-radius: var(--border-radius-small);
    font-family: 'Roboto Mono', monospace;
    flex-grow: 1;
    transition: all var(--transition-speed) ease;
    min-width: 180px;
    /* [DIMENSI] Inset shadow pada input */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.table-controls input:focus, .table-controls select:focus, .form-input:focus {
    outline: none;
    border-color: var(--accent2);
    box-shadow: 0 0 15px rgba(64, 158, 255, 0.3),
                inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* === GAYA TOMBOL UMUM === */
.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
    background: linear-gradient(180deg, var(--bg-light), var(--bg-dark));
    border: 1px solid var(--bg-light);
    position: relative;
    letter-spacing: 0.5px;
    will-change: transform, box-shadow;
    /* [DIMENSI] Tombol lebih 3D */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn:disabled {
    background: var(--bg-light) !important;
    border-color: var(--bg-light) !important;
    color: var(--text-dark) !important;
    cursor: not-allowed;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
    transform: none !important;
}

#checkAllBtn, .btn-main-action { border-color: var(--green); color: var(--green); }
#checkAllBtn:hover, .btn-main-action:hover { background: var(--green); color: var(--bg-dark); box-shadow: 0 0 20px rgba(103, 194, 58, 0.5); }
#stopCheckAllBtn { border-color: var(--red); color: var(--red); }
#stopCheckAllBtn:hover { background: var(--red); color: var(--bg-dark); box-shadow: 0 0 20px rgba(245, 108, 108, 0.5); }
#checkAllProgress { color: var(--yellow); font-family: 'Roboto Mono', monospace; font-size: 0.9em; }

/* === KARTU UNTUK TAMBAH PENGGUNA === */
.add-user-card {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    border: 1px solid var(--bg-light);
    border-radius: var(--border-radius-main);
    padding: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2.5rem;
    transition: all var(--transition-speed) ease;
    /* [DIMENSI] Efek 3D pada kartu */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4),
                inset 0 1px 1px rgba(255,255,255,0.05);
}
.add-user-card:hover {
    border-color: var(--accent2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 
                0 0 15px rgba(64, 158, 255, 0.1),
                inset 0 1px 1px rgba(255,255,255,0.05);
}
.add-user-card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--accent2);
    font-weight: 600;
    border-bottom: 1px solid var(--bg-light);
    padding-bottom: 1rem;
}

/* === TABEL PENGGUNA === */
.user-table-wrapper { overflow-x: auto; }
.user-table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; min-width: 800px; }
.user-table thead { font-family: 'Roboto Mono', monospace; font-size: 0.8em; color: var(--text-dark); }
.user-table th, .user-table td { padding: 16px 15px; vertical-align: middle; border-bottom: 1px solid var(--bg-light); border-left: 3px solid transparent; transition: border-left-color var(--transition-speed) ease, background-color var(--transition-speed) ease; }
.user-table tbody tr { transition: background-color var(--transition-speed) ease; }
.user-table tbody tr:hover { background: rgba(44, 44, 44, 0.7); }
.user-table tbody tr:hover td { border-left-color: var(--accent1); }
.user-table td[data-label="Email"] .cell-content { color: var(--accent2); font-weight: 500; font-family: 'Roboto Mono', monospace; word-break: break-all; }
td.status-cell div { display: flex; align-items: center; gap: 8px; font-weight: 600; }
td.status-cell [data-status="banned"] { color: var(--red); }
td.status-cell [data-status="normal"] { color: var(--green); }

/* === MODAL === */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; justify-content: center; align-items: center;
    z-index: 1000; backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease; padding: 1rem;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    background: linear-gradient(135deg, #2a2a3a, var(--bg-dark));
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--border-radius-main);
    width: 100%; max-width: 700px;
    /* [DIMENSI] Penambahan inset shadow pada modal */
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative; border: 1px solid var(--bg-light);
    animation: slideIn 0.4s ease-out; max-height: 90vh;
    overflow-y: auto; will-change: transform, opacity;
}
@keyframes slideIn { from { transform: translateY(30px) scale(0.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 32px; font-weight: 300; color: var(--text-dark); cursor: pointer; transition: color var(--transition-speed) ease, transform var(--transition-speed) ease; }
.modal-close:hover { color: var(--accent1); transform: rotate(90deg) scale(1.2); }
.modal-content h2 { margin-top: 0; margin-bottom: 20px; border-bottom: 1px solid var(--bg-light); padding-bottom: 15px; color: var(--accent1); font-weight: 600; }
.modal-content pre { background: var(--bg-darker); padding: 15px; border-radius: var(--border-radius-small); white-space: pre-wrap; word-wrap: break-word; color: var(--text-light); max-height: 350px; overflow-y: auto; font-family: 'Roboto Mono', monospace; border: 1px solid var(--bg-light); }
.modal-table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.modal-table td { padding: 12px; border-bottom: 1px solid var(--bg-light); }
.modal-table tr:last-child td { border-bottom: none; }
.modal-table td:first-child { color: var(--text-dark); font-weight: 500; }
.modal-table td:last-child { font-family: 'Roboto Mono', monospace; text-align: right; font-weight: 500; }
.error-text { color: var(--red); }
.modal-footer { margin-top: 25px; border-top: 1px solid var(--bg-light); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
#deleteUserBtn { border-color: var(--red); color: var(--red); }
#deleteUserBtn:hover { background: var(--red); color: var(--bg-dark); box-shadow: 0 0 20px rgba(245, 108, 108, 0.4); }

/* === FORM DI DALAM MODAL === */
#updateFormContainer { border-top: 1px solid var(--bg-light); padding-top: 20px; }
#updateFormContainer label { display: block; margin-bottom: 8px; font-size: 0.9em; color: var(--text-dark); font-family: 'Roboto Mono', monospace; }
#updateFormContainer .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.quick-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btn-quick { flex-grow: 1; padding: 8px 10px; font-size: 0.85em; font-family: 'Roboto Mono', monospace; border-radius: var(--border-radius-small); cursor: pointer; border: 1px solid var(--bg-light); background: var(--bg-dark); color: var(--text-dark); transition: all var(--transition-speed) ease; }
.btn-quick:hover { background: var(--accent2); color: var(--bg-dark); border-color: var(--accent2); transform: translateY(-2px); box-shadow: 0 2px 10px rgba(64, 158, 255, 0.3); }
#submitUpdateBtn { width: 100%; border-color: var(--green); color: var(--green); }
#submitUpdateBtn:hover { background: var(--green); color: var(--bg-dark); box-shadow: 0 0 20px rgba(103, 194, 58, 0.4); }

/* === PAGINATION === */
.pagination-container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--bg-light); font-family: 'Roboto Mono', monospace; }
.page-btn { background: transparent; border: 1px solid var(--bg-light); color: var(--text-dark); font-weight: 500; cursor: pointer; border-radius: var(--border-radius-small); min-width: 42px; height: 42px; display: inline-flex; justify-content: center; align-items: center; transition: all var(--transition-speed) ease; will-change: transform, box-shadow, color, border-color; }
.page-btn:hover:not(:disabled) { border-color: var(--accent2); color: var(--accent2); transform: translateY(-2px); box-shadow: 0 0 10px rgba(64, 158, 255, 0.3); }
.page-btn.active { background: var(--accent2); border-color: var(--accent2); color: var(--bg-dark); font-weight: 700; box-shadow: 0 0 15px rgba(64, 158, 255, 0.4); transform: translateY(-2px); }
.page-btn:disabled { color: #444; cursor: not-allowed; border-color: var(--bg-dark); background: var(--bg-darker); }
.page-btn.ellipsis { border: none; cursor: default; background: transparent; }
.page-btn.ellipsis:hover { transform: none; color: var(--text-dark); box-shadow: none; }

/* === CSS TAMBAHAN LAINNYA === */
.change-paket-form { display: flex; gap: 5px; align-items: center; min-width: 160px; }
.change-paket-form select { background-color: var(--bg-dark); color: var(--text-light); border: 1px solid var(--bg-light); border-radius: var(--border-radius-small); padding: 6px 8px; font-size: 0.9em; flex-grow: 1; font-family: 'Roboto Mono', monospace; }
.change-paket-form .btn-change-paket { background-color: var(--accent2); color: var(--bg-dark); border: none; padding: 7px 10px; border-radius: var(--border-radius-small); cursor: pointer; font-size: 0.8em; font-weight: bold; transition: all var(--transition-speed) ease; }
.change-paket-form .btn-change-paket:hover { opacity: 0.9; box-shadow: 0 0 10px rgba(64, 158, 255, 0.5); }
.btn-cek-data, .btn-inject { border: none; padding: 8px 12px; border-radius: var(--border-radius-small); cursor: pointer; font-weight: 700; font-size: 0.8em; width: 100%; transition: all var(--transition-speed) ease; text-transform: uppercase; }
.btn-cek-data { background-color: var(--accent2); color: var(--bg-dark); }
.btn-inject { background-color: var(--yellow); color: var(--bg-dark); }
.btn-cek-data:hover { box-shadow: 0 0 15px rgba(64, 158, 255, 0.4); }
.btn-inject:hover { box-shadow: 0 0 15px rgba(230, 162, 60, 0.4); }
/* === [REVISI] NOTIFIKASI GLOBAL (TOAST) === */
#globalMessage {
    position: fixed;
    top: -100px; /* Mulai dari luar layar */
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 25px;
    border-radius: var(--border-radius-main);
    z-index: 10000;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: top 0.5s ease-out, opacity 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6), 
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Menambahkan ikon sebelum teks notifikasi */
#globalMessage::before {
    font-size: 1.2em;
    font-weight: bold;
}

#globalMessage.show {
    opacity: 1;
    top: 30px; /* Muncul ke posisi ini */
}

#globalMessage.success {
    background: linear-gradient(135deg, #2a5a2a, #3c823c);
    color: #e0f0e0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
#globalMessage.success::before {
    content: '✔'; /* Ikon centang */
}

#globalMessage.error {
    background: linear-gradient(135deg, #7a2a2a, #a23c3c);
    color: #f0e0e0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
#globalMessage.error::before {
    content: '✖'; /* Ikon silang */
}

/* === DAFTAR PEMILIHAN MOBIL === */
#car-selection-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; margin-bottom: 20px; max-height: 400px; overflow-y: auto; padding: 5px; }
.car-checkbox-item { background-color: var(--bg-dark); border: 1px solid var(--bg-light); border-radius: var(--border-radius-small); transition: all var(--transition-speed) ease; position: relative; overflow: hidden; /* [DIMENSI] Menambahkan inset shadow */ box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }
.car-checkbox-item label { display: flex; align-items: center; padding: 12px 15px; cursor: pointer; width: 100%; color: var(--text-light); }
.car-checkbox-item.is-owned { background-color: transparent; border-style: dashed; }
.car-checkbox-item.is-owned label { color: var(--text-dark); cursor: not-allowed; text-decoration: line-through; }
.car-checkbox-item.is-owned .owned-tag { color: var(--red); font-weight: 600; font-size: 0.8em; margin-left: auto; font-family: 'Roboto Mono', monospace; }
.car-checkbox-item:has(input:checked) { border-color: var(--accent1); background-color: rgba(230, 162, 60, 0.1); box-shadow: 0 0 10px rgba(230, 162, 60, 0.3); }
.car-checkbox-item:not(.is-owned):hover { border-color: var(--accent2); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
.car-checkbox-item input[type="checkbox"] { display: none; }

/* === RESPONSIVE DESIGN === */
@media screen and (max-width: 992px) {
    .user-table-wrapper { overflow-x: hidden; }
    .user-table, .user-table tbody, .user-table tr, .user-table td { display: block; width: 100%; min-width: 0; }
    .user-table thead { display: none; }
    .user-table tbody tr { border: 1px solid var(--bg-light); border-radius: var(--border-radius-main); margin-bottom: 1.5rem; padding: 1rem; background: var(--bg-dark); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
    .user-table td { padding: 12px 5px; display: flex; justify-content: space-between; align-items: center; text-align: right; border-bottom: 1px dashed var(--bg-light); min-height: 42px; border-left: none !important; }
    .user-table tr td:last-child { border-bottom: none; }
    .user-table td::before { content: attr(data-label); font-weight: 600; color: var(--text-dark); text-align: left; padding-right: 15px; font-family: 'Roboto Mono', monospace; flex-shrink: 0; }
    .cell-content { word-break: break-all; flex-grow: 1; min-width: 0; }
    .change-paket-form { width: 100%; justify-content: flex-end; }
}
@media screen and (max-width: 768px) {
    .container { margin: 1rem; padding: 1rem; }
    .header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .header-info { text-align: left; width: 100%; }
    #statusCounters { justify-content: flex-start; }
}

/* === NAVIGASI MODAL === */
.modal-header-nav { display: flex; align-items: center; margin-bottom: 15px; border-bottom: 1px solid var(--bg-light); padding-bottom: 10px; }
.modal-header-nav p { flex-grow: 1; text-align: center; margin: 0; font-weight: bold; color: var(--accent1); }
.btn-modal-back { background: none; border: 1px solid var(--bg-light); color: var(--text-dark); padding: 5px 10px; border-radius: 5px; cursor: pointer; font-size: 0.9em; transition: all 0.2s ease; }
.btn-modal-back:hover { background-color: var(--bg-light); color: var(--text-light); }


/* ===================================================================
   ✨ CSS BARU: EDITOR MOBIL INTERAKTIF (CANTIK & RINGAN) ✨
   =================================================================== */

.car-detail-list {
    max-height: 450px;
    overflow-y: auto;
    padding: 5px;
}
.no-data-info {
    color: var(--text-secondary);
    text-align: center;
    padding: 1rem;
}

/* Grup Accordion Umum */
.detail-group {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    margin-bottom: 8px;
    background-color: #1a1a2e;
    transition: box-shadow 0.2s ease-in-out;
}
.detail-group:hover {
    box-shadow: 0 0 8px rgba(var(--accent1-rgb), 0.5);
}

.detail-group-header {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
}
.detail-group-header:hover {
    background-color: var(--accent1);
}
.detail-group-header span:first-child {
    word-break: break-all;
    text-transform: capitalize;
    font-size: 0.95em;
}
.detail-group-header .toggle-icon {
    color: var(--yellow);
    font-size: 1.2em;
}

.detail-group-content {
    padding: 10px 15px;
    background-color: #161625;
    border-top: 1px solid var(--border-color);
}

/* Header Khusus untuk Item Mobil Paling Atas */
.car-item > .car-header {
    background-color: var(--bg-light);
    color: var(--accent2);
    font-size: 1.1em;
}

/* List Properti di Dalam Grup */
.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.detail-list > li {
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color-light);
}
.detail-list > li:last-child {
    border-bottom: none;
}

/* Tampilan utama per properti */
.detail-property {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5px;
    min-height: 40px;
}
.detail-property strong {
    color: var(--cyan);
    margin-right: 15px;
    word-break: break-all;
    flex-shrink: 0;
    font-size: 0.9em;
}

.editable-value {
    color: var(--text-light);
    cursor: pointer;
    text-align: right;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9em;
}
.editable-value > span {
    padding: 6px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: inline-block;
    min-width: 50px;
}
.editable-value:hover > span {
    background-color: var(--accent1-hover);
    box-shadow: 0 0 5px rgba(var(--yellow-rgb), 0.5);
}

/* Gaya untuk mode edit */
.editable-value .edit-controls {
    display: none;
    align-items: center;
    gap: 8px;
}
.editable-value.editing .edit-controls {
    display: flex;
}
.editable-value.editing > span {
    display: none;
}

.form-input-inline {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid var(--accent2);
    border-radius: 4px;
    padding: 6px 8px;
    max-width: 160px; /* Batasi lebar input */
    text-align: right;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input-inline:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 8px rgba(var(--yellow-rgb), 0.7);
}


.btn-save-edit, .btn-cancel-edit {
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%; /* Membuat tombol menjadi lingkaran */
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    font-size: 1.1em;
    line-height: 30px;
    text-align: center;
    transition: transform 0.2s, background-color 0.2s;
}
.btn-save-edit:hover, .btn-cancel-edit:hover {
    transform: scale(1.1);
}
.btn-save-edit { background-color: var(--green); }
.btn-cancel-edit { background-color: var(--red); }