/* FMPedia Dark Mode — Toko Warna dark variant
 * Activate via <html data-fp-theme="dark">
 * Overrides Toko Warna CSS variables + Bootstrap components
 */
:root[data-fp-theme="dark"], html[data-fp-theme="dark"]:root {
    /* Toko Warna palette overrides — landing.php pakai var(--cream)/(--ink)
       !important pada CSS custom prop dibutuhkan karena landing punya inline :root override
       yang loaded AFTER file ini via <style> block di body */
    --cream:      #1A1A1A !important;
    --cream-2:    #242424 !important;
    --cream-3:    #2E2E2E !important;
    --ink:        #FFF6EA !important;
    --coral:      #FF8560 !important;
    --coral-dk:   #FF6E4A !important;
    --coral-lt:   #4A2820 !important;
    --tosca:      #4FBFB0 !important;
    --tosca-dk:   #2E9E8C !important;
    --tosca-lt:   #1E3A36 !important;
    --yolk:       #F5C64E !important;
    --yolk-lt:    #3A3120 !important;
    --grape:      #A48EE0 !important;
    --grape-lt:   #2E2540 !important;
    /* Custom fmpedia tokens */
    --fp-bg:        #1A1A1A;
    --fp-surface:   #242424;
    --fp-text:      #FFF6EA;
    --fp-text-mute: #9A9A9A;
    --fp-border:    #3A3A3A;
}

html[data-fp-theme="dark"] body {
    background: #1A1A1A !important;
    color: #FFF6EA !important;
}

/* Landing + Toko Warna pages */
html[data-fp-theme="dark"] .card {
    background: #242424 !important;
    color: #FFF6EA !important;
    border-color: #3A3A3A !important;
}
html[data-fp-theme="dark"] .card-body { color: #FFF6EA; }
html[data-fp-theme="dark"] .table { color: #FFF6EA; }
html[data-fp-theme="dark"] .table-hover>tbody>tr:hover>* { background: #2E2E2E; color:#FFF6EA; }
html[data-fp-theme="dark"] .table-light,
html[data-fp-theme="dark"] .bg-light { background: #2E2E2E !important; color:#FFF6EA !important; }
html[data-fp-theme="dark"] .text-muted { color: #9A9A9A !important; }
html[data-fp-theme="dark"] .form-control,
html[data-fp-theme="dark"] .form-select {
    background: #2E2E2E !important; color:#FFF6EA !important; border-color:#3A3A3A !important;
}
html[data-fp-theme="dark"] .form-control::placeholder { color:#6A6A6A; }
html[data-fp-theme="dark"] .input-group-text { background:#3A3A3A !important; color:#FFF6EA !important; border-color:#4A4A4A !important; }
html[data-fp-theme="dark"] .dropdown-menu { background:#242424; border-color:#3A3A3A; }
html[data-fp-theme="dark"] .dropdown-item { color:#FFF6EA; }
html[data-fp-theme="dark"] .dropdown-item:hover { background:#2E2E2E; color:#FF8560; }
html[data-fp-theme="dark"] hr { border-color:#3A3A3A; }
html[data-fp-theme="dark"] pre, html[data-fp-theme="dark"] code {
    background:#0E0E0E !important; color:#F5C64E !important; border:1px solid #3A3A3A;
}
html[data-fp-theme="dark"] .alert-info,
html[data-fp-theme="dark"] .alert-secondary { background:#242424 !important; color:#FFF6EA !important; border-color:#3A3A3A; }
html[data-fp-theme="dark"] .alert-success { background:#1D3323 !important; color:#7BE8A5 !important; border-color:#2E9E8C; }
html[data-fp-theme="dark"] .alert-warning { background:#3A2E14 !important; color:#F5C64E !important; border-color:#F5C64E; }
html[data-fp-theme="dark"] .alert-danger  { background:#3A1414 !important; color:#FF9B7E !important; border-color:#FF6E4A; }

/* Landing hero */
html[data-fp-theme="dark"] .lb-head,
html[data-fp-theme="dark"] .sec-head,
html[data-fp-theme="dark"] .fav-head,
html[data-fp-theme="dark"] .kyc-head,
html[data-fp-theme="dark"] .wh-head,
html[data-fp-theme="dark"] .ar-head,
html[data-fp-theme="dark"] .tg-head,
html[data-fp-theme="dark"] .sub-head,
html[data-fp-theme="dark"] .ib-head,
html[data-fp-theme="dark"] .pn-head,
html[data-fp-theme="dark"] .wb-head,
html[data-fp-theme="dark"] .loy-head {
    background: linear-gradient(135deg, #242424 0%, #2E2E2E 100%) !important;
    color:#FFF6EA !important;
}

/* Toko Warna landing sections */
html[data-fp-theme="dark"] section, html[data-fp-theme="dark"] .wrap { color:#FFF6EA; }

/* Toggle button visuals */
.fp-theme-toggle {
    background: transparent; border: none; cursor: pointer; padding: 6px 10px;
    border-radius: 8px; color: inherit; display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; transition: background .2s;
}
.fp-theme-toggle:hover { background: rgba(255,255,255,.08); }
html[data-fp-theme="dark"] .fp-theme-toggle:hover { background: rgba(255,255,255,.05); }
