/* Entry Point - style.css */
@import 'modules/layout.css';
@import 'modules/navigation.css';
@import 'modules/auth.css';
@import 'modules/vault.css';
@import 'modules/whitelist.css';
@import 'modules/modals.css';
@import 'modules/settings.css';
@import 'modules/staff.css';
@import 'modules/nawala.css';
@import 'modules/close.css';
@import 'modules/tools.css';

:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --accent: #3b82f6;
    --border: #334155;
    --card: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}

body {
        background-color: var(--bg-main);
        color: var(--text-main);
        margin: 0;
        height: 100vh;
        width: 100vw;
        overflow: hidden; /* Browser benar-benar tidak scrollable */
    }

/* --- LAYOUT UTAMA --- */
.layout {
        display: flex;
        width: 100%;
        height: 100vh; /* Wajib 100vh bray */
        overflow: hidden;
    }

/* Container pembungkus sidebar di index.html */
#sidebar-container {
    width: 260px; /* Kunci lebarnya di sini */
    height: 100%;
    flex-shrink: 0;
    background: #111827;
}

.main {
        flex: 1;
        height: 100%;
        overflow-y: auto; /* Scroll cuma muncul di sini kalau konten luber */
        background: var(--bg-main);
        position: relative;
    }

.page-content {
        padding: 90px 30px 30px 30px; 
        width: 100%;
        min-height: 100%; /* Pakai 100% dari .main, bukan 100vh browser */
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

/* KHUSUS LOGIN: Jangan dipaksa stretch bray */
.login-body .page-content {
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important; /* Hapus paksaan 100vh dari dashboard */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Hilangkan celah di bawah judul */
.page-content h2, 
#pageTitle {
    margin: 20px 0 !important; /* Kasih jarak atas bawah yang konsisten */
    padding: 0 !important;
    font-size: 1.5rem;
}

/* --- KOMPONEN --- */
.card {
    /* HAPUS max-width: 550px kalau ada */
    width: 100%; 
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    /* Biar nempel dari kiri ke kanan */
    align-self: stretch; 
}

input {
    width: 100%;
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    color: white;
    outline: none;
    margin-bottom: 15px;
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--accent);
}

button {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

button:hover { opacity: 0.9; transform: translateY(-1px); }
button:active { transform: translateY(0); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Modal & Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none; /* Dikontrol via JS */
    z-index: 9999;
}

/* Utilities */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
    -webkit-text-fill-color: white !important;
}

/* Custom Scrollbar bray */
.main::-webkit-scrollbar {
    width: 6px;
}

.main::-webkit-scrollbar-track {
    background: var(--bg-main);
}

.main::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.main::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}