/* 1. TYPOGRAPHY: PLUS JAKARTA SANS (Modern & Geometric) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Envato Dark Palette */
    --bg-body: #111111;       /* Background Utama Gelap */
    --bg-surface: #1c1c1e;    /* Background Kartu/Panel (Matte) */
    --border-color: #2c2c2e;  /* Garis pemisah halus */
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-color: #ffffff;  /* Aksen Putih (High Contrast) */
    --radius-std: 8px;        /* Radius standar Envato/Apple */
}

/* 2. BASE RESET */
body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 3. MEMBERSIHKAN CONTAINER FILAMENT */
.fi-main, .fi-body, .fi-topbar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 4. SURFACE & CARDS (Flat Matte Look) */
.fi-ta-ctn, .fi-section, .fi-wi-stats-overview-stat, .fi-wi-chart, aside {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-std) !important;
    box-shadow: none !important; /* Flat design, no shadow */
}

/* 5. TYPOGRAPHY HIERARCHY */
h1, h2, h3, .fi-header-heading {
    font-weight: 700;
    letter-spacing: -0.02em; /* Sedikit rapat biar solid */
}
.fi-logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

/* 6. SIDEBAR NAVIGATION */
aside {
    border-right: 1px solid var(--border-color) !important;
}
.fi-sidebar-nav-item {
    border-radius: 6px;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: all 0.2s ease;
}
.fi-sidebar-nav-item:hover {
    background-color: #2c2c2e;
    color: white !important;
}
.fi-sidebar-nav-item-active {
    background-color: var(--accent-color) !important; /* Putih Blok */
    color: #000 !important; /* Teks Hitam */
    font-weight: 700;
}
.fi-sidebar-nav-item-active svg {
    color: #000 !important;
}

/* 7. TABLE STYLING (Minimalist) */
.fi-ta-header-cell {
    background-color: transparent !important;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary) !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}
.fi-ta-row {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.1s;
}
.fi-ta-row:hover {
    background-color: #252529 !important;
}

/* 8. INPUTS & FORMS (Big & Clean) */
.fi-input, .fi-select-input, input[type="search"], textarea {
    background-color: #111 !important; /* Input lebih gelap dari card */
    border: 1px solid var(--border-color) !important;
    color: white !important;
    border-radius: 6px !important;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}
.fi-input:focus, input:focus {
    border-color: #666 !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1) !important;
}

/* 9. BUTTONS (Clean Shapes) */
.fi-btn-primary {
    background-color: var(--accent-color) !important;
    color: black !important;
    border-radius: 6px;
    font-weight: 600;
    border: none !important;
    transition: transform 0.1s;
}
.fi-btn-primary:hover {
    background-color: #e5e5e5 !important;
    transform: translateY(-1px);
}
/* Tombol Sekunder (Outline) */
.fi-btn-secondary, .fi-btn-gray {
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}
.fi-btn-secondary:hover {
    border-color: white !important;
    color: white !important;
}

/* 10. TOPBAR (Sticky Matte) */
header.fi-topbar {
    background-color: rgba(28, 28, 30, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color) !important;
    z-index: 50;
}

/* 11. BADGE & LABELS */
.fi-badge {
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* 12. ANIMATION: FADE IN (Smooth) */
main {
    animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 13. KURSOR DEFAULT (Bersih) */
html, body {
    cursor: default;
}
a, button {
    cursor: pointer;
}

/* 14. STATS CARD HOVER (Subtle Lift) */
.fi-wi-stats-overview-stat {
    transition: transform 0.2s, border-color 0.2s;
}
.fi-wi-stats-overview-stat:hover {
    transform: translateY(-2px);
    border-color: #555 !important;
}
/* KALENDER GANTENG */
.fc-toolbar-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}
.fc-button {
    background-color: #2c2c2e !important;
    border: 1px solid #444 !important;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem !important;
}
.fc-button-active {
    background-color: #ffffff !important;
    color: black !important;
}
.fc-daygrid-day {
    border-color: #2c2c2e !important;
}
.fc-col-header-cell {
    background-color: #1c1c1e;
    padding: 10px 0;
    border-color: #2c2c2e !important;
}
/* =========================================
   15. CUSTOM LOGIN PAGE (MEWAH)
   ========================================= */

/* Background Khusus Halaman Login */
.fi-simple-layout {
    background-color: #050505 !important;
    background-image: url('../images/bg-login.jpg') !important; /* Ganti URL ini jika ada gambar */
    background-size: cover !important;
    background-position: center !important;
    background-blend-mode: overlay; /* Biar gambar menyatu dengan hitam */
}

/* Jika tidak punya gambar, pakai Gradient ini (Opsional) */
.fi-simple-layout {
    background: radial-gradient(circle at top right, #1e1e24, #000000) !important;
}

/* Kartu Login (Kotak Tengah) */
.fi-simple-main {
    background-color: rgba(28, 28, 30, 0.7) !important; /* Transparan */
    backdrop-filter: blur(20px) !important; /* Efek Kaca */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 40px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Judul "Sign In" */
.fi-simple-header-heading {
    color: white !important;
    font-family: 'Unbounded', sans-serif !important;
    font-weight: 700 !important;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Logo di Halaman Login */
.fi-simple-header .fi-logo {
    font-size: 2rem !important;
    color: white !important;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
    margin-bottom: 10px;
}

/* Tombol Sign In */
.fi-simple-main .fi-btn-primary {
    background-color: white !important;
    color: black !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    height: 45px;
    border-radius: 8px;
}
.fi-simple-main .fi-btn-primary:hover {
    background-color: #e5e5e5 !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Input Email & Password */
.fi-simple-main input {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-color: #333 !important;
    color: white !important;
    height: 45px;
}
.fi-simple-main label {
    color: #aaa !important;
    font-size: 0.85rem !important;
}
.fi-simple-main a {
    color: #888 !important; /* Link forgot password */
}