/**
 * ==============================================================================
 * RUCI BARCODE - MULTI-THEME ENGINE (THEME SWITCHER SYSTEM)
 * Mendukung 5 Desain Tema Lengkap & Modern:
 * 1. Tema 1: Neubrutalism (Original RUCI)
 * 2. Tema 2: Dastone Executive (dari tema2 - Modern SaaS & Analytics Indigo)
 * 3. Tema 3: Silva / Velzon Enterprise (dari tema3 - Forest Teal & Deep Maritime)
 * 4. Tema 4: Invenza Modern Tailwind (dari tema4 - Fresh Emerald & Rounded Cards)
 * 5. Tema 5: Atelier Bold Press (dari tema5 - Luxury Obsidian & Warm Amber)
 *
 * Tiap tema mendukung Mode Terang (Light) dan Mode Gelap (Dark) secara mandiri.
 * ==============================================================================
 */

/* ==============================================================================
   MODAL PEMILIH TEMA (THEME SWITCHER MODAL UI)
   ============================================================================== */
.modal-theme-switcher .modal-content {
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.25);
}

.theme-modal-header {
    background: linear-gradient(135deg, #102c46, #1e3a5f);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-modal-header .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0;
}

.theme-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.15rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.theme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.1);
    border-color: #94a3b8;
}

.theme-card.is-active {
    border-color: #2563eb;
    background: #f8faff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 8px 20px -4px rgba(37, 99, 235, 0.15);
}

.theme-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.theme-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}

.theme-badge-active {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #2563eb;
    background: #dbeafe;
    padding: 2px 8px;
    border-radius: 999px;
}

.theme-card.is-active .theme-badge-active {
    display: inline-flex;
}

.theme-card-preview {
    border-radius: 10px;
    height: 74px;
    margin-bottom: 0.85rem;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 18px;
    border-radius: 5px;
    padding: 0 6px;
    font-size: 0.6rem;
    font-weight: 700;
}

.preview-body-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.preview-chip {
    height: 14px;
    border-radius: 4px;
    flex: 1;
}

.theme-swatches {
    display: flex;
    gap: 5px;
    margin-bottom: 0.75rem;
}

.theme-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.theme-meta h5 {
    font-size: 0.96rem;
    font-weight: 800;
    margin: 0 0 3px;
    color: #0f172a;
}

.theme-meta p {
    font-size: 0.74rem;
    color: #64748b;
    margin: 0 0 0.85rem;
    line-height: 1.35;
}

.theme-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: auto;
}

.theme-btn-apply {
    flex: 1;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.theme-btn-demo {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: transparent;
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.theme-btn-demo:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Mode Switcher Segmented Control */
.theme-mode-segmented {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    padding: 3px;
    border-radius: 10px;
    gap: 2px;
}

.theme-mode-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.theme-mode-btn.is-selected {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-nb-theme="dark"] .modal-theme-switcher .modal-content {
    background: #18181b;
    color: #f4f4f5;
    border-color: #27272a;
}

[data-nb-theme="dark"] .theme-card {
    background: #202024;
    border-color: #2e2e34;
}

[data-nb-theme="dark"] .theme-card:hover {
    border-color: #4b5563;
}

[data-nb-theme="dark"] .theme-card.is-active {
    background: #1e293b;
    border-color: #3b82f6;
}

[data-nb-theme="dark"] .theme-meta h5 {
    color: #f8fafc;
}

[data-nb-theme="dark"] .theme-meta p {
    color: #94a3b8;
}

[data-nb-theme="dark"] .theme-mode-segmented {
    background: #27272a;
}

[data-nb-theme="dark"] .theme-mode-btn {
    color: #a1a1aa;
}

[data-nb-theme="dark"] .theme-mode-btn.is-selected {
    background: #3f3f46;
    color: #ffffff;
}

/* Floating button on login page */
.nb-theme-toggle--floating-palette {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: 64px;
    z-index: 1200;
}

@media (max-width: 991.98px) {
    .nb-theme-toggle--floating-palette {
        top: calc(8px + env(safe-area-inset-top, 0px)) !important;
        right: 54px !important;
        width: 40px !important;
        height: 40px !important;
    }
}


/* ==============================================================================
   TEMA 2: DASTONE EXECUTIVE PRO (Modern SaaS / Executive Analytics Indigo)
   Sumber Inspirasi: tema2/ (Mannatthemes Dastone)
   ============================================================================== */
html[data-theme-style="tema2"] {
    --nb-ink: #303e67;
    --nb-paper: #f1f5fa;
    --nb-surface: #ffffff;
    --nb-muted: #7081b9;
    --nb-muted-2: #8997bd;
    --nb-line: #e3ebf6;
    --nb-border: 1px solid #e3ebf6;
    --nb-shadow: 0 4px 18px 0 rgba(80, 110, 228, 0.08);
    --nb-shadow-sm: 0 2px 8px 0 rgba(80, 110, 228, 0.06);
    --nb-radius: 12px;
    --nb-yellow: #506ee4; /* Indigo primer */
    --nb-cyan: #2ddab5;   /* Teal aksen */
    --nb-lime: #2ddab5;
    --nb-pink: #ff9f43;
    --nb-blue: #506ee4;
    --nb-orange: #ff9f43;
    --nb-red: #ef4d56;
    --nb-ink-on-accent: #ffffff;
    --nb-font: "Nunito", "Plus Jakarta Sans", system-ui, sans-serif;
    --bs-body-bg: #f1f5fa;
    --bs-body-color: #303e67;
}

html[data-theme-style="tema2"] body {
    background-color: #f1f5fa;
    background-image: none !important;
    color: #303e67;
    font-family: var(--nb-font);
}

html[data-theme-style="tema2"] .app-navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e3ebf6 !important;
    box-shadow: 0 2px 12px rgba(80, 110, 228, 0.06) !important;
}

html[data-theme-style="tema2"] .app-navbar .brand-icon {
    background: linear-gradient(135deg, #506ee4, #3952ba) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 10px rgba(80, 110, 228, 0.3) !important;
}

html[data-theme-style="tema2"] .nav-link-custom {
    color: #5a6a85 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

html[data-theme-style="tema2"] .nav-link-custom:hover {
    background: #edf2fc !important;
    color: #506ee4 !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-theme-style="tema2"] .nav-link-custom.active {
    background: #506ee4 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(80, 110, 228, 0.3) !important;
}

html[data-theme-style="tema2"] .card,
html[data-theme-style="tema2"] .app-card,
html[data-theme-style="tema2"] .stat-card,
html[data-theme-style="tema2"] .kpi-card {
    border: 1px solid #e3ebf6 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 18px 0 rgba(80, 110, 228, 0.06) !important;
    background: #ffffff !important;
}

html[data-theme-style="tema2"] .btn {
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
    transition: all 0.15s ease !important;
}

html[data-theme-style="tema2"] .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme-style="tema2"] .btn-primary {
    background: #506ee4 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(80, 110, 228, 0.25) !important;
}

html[data-theme-style="tema2"] .btn-primary:hover {
    background: #425dc9 !important;
}

html[data-theme-style="tema2"] .page-intro {
    background: #ffffff !important;
    border: 1px solid #e3ebf6 !important;
    border-left: 6px solid #506ee4 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 16px rgba(80, 110, 228, 0.05) !important;
}

html[data-theme-style="tema2"] .page-intro .eyebrow {
    background: #edf2fc !important;
    color: #506ee4 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    font-family: inherit !important;
}

html[data-theme-style="tema2"] .mobile-bottom-dock {
    background: #ffffff !important;
    border: 1px solid #e3ebf6 !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(80, 110, 228, 0.15) !important;
}

html[data-theme-style="tema2"] .mobile-dock-item.active {
    background: #506ee4 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(80, 110, 228, 0.3) !important;
}

html[data-theme-style="tema2"] .mobile-dock-item.active i,
html[data-theme-style="tema2"] .mobile-dock-item.active span {
    color: #ffffff !important;
}

html[data-theme-style="tema2"] .mobile-dock-item.special-scan {
    background: linear-gradient(135deg, #506ee4, #2ddab5) !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 6px 16px rgba(80, 110, 228, 0.4) !important;
}

/* Tema 2 Dark Mode */
html[data-theme-style="tema2"][data-nb-theme="dark"] {
    --nb-ink: #e2e8f0;
    --nb-paper: #141724;
    --nb-surface: #1b1e2f;
    --nb-muted: #8997bd;
    --nb-muted-2: #7081b9;
    --nb-line: #2d3248;
    --nb-border: 1px solid #2d3248;
    --nb-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    --nb-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --bs-body-bg: #141724;
    --bs-body-color: #e2e8f0;
}

html[data-theme-style="tema2"][data-nb-theme="dark"] body {
    background-color: #141724 !important;
    color: #e2e8f0 !important;
}

html[data-theme-style="tema2"][data-nb-theme="dark"] .app-navbar {
    background: #1b1e2f !important;
    border-bottom: 1px solid #2d3248 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme-style="tema2"][data-nb-theme="dark"] .card,
html[data-theme-style="tema2"][data-nb-theme="dark"] .app-card,
html[data-theme-style="tema2"][data-nb-theme="dark"] .stat-card,
html[data-theme-style="tema2"][data-nb-theme="dark"] .page-intro,
html[data-theme-style="tema2"][data-nb-theme="dark"] .mobile-bottom-dock {
    background: #1b1e2f !important;
    border-color: #2d3248 !important;
    color: #e2e8f0 !important;
}

html[data-theme-style="tema2"][data-nb-theme="dark"] .nav-link-custom {
    color: #94a3b8 !important;
}

html[data-theme-style="tema2"][data-nb-theme="dark"] .nav-link-custom.active {
    background: #506ee4 !important;
    color: #ffffff !important;
}


/* ==============================================================================
   TEMA 3: SILVA / VELZON ENTERPRISE (Forest Teal & Deep Maritime Corporate)
   Sumber Inspirasi: tema3/ (Silva / Velzon / Dazzle PHP Theme)
   ============================================================================== */
html[data-theme-style="tema3"] {
    --nb-ink: #1e293b;
    --nb-paper: #f3f4f7;
    --nb-surface: #ffffff;
    --nb-muted: #64748b;
    --nb-muted-2: #94a3b8;
    --nb-line: #e2e8f0;
    --nb-border: 1px solid #e2e8f0;
    --nb-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --nb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --nb-radius: 8px;
    --nb-yellow: #287F71; /* Forest Pine Primer */
    --nb-cyan: #3577f1;   /* Royal Slate Blue */
    --nb-lime: #287F71;
    --nb-pink: #963b68;
    --nb-blue: #3577f1;
    --nb-orange: #f59440;
    --nb-red: #ec344c;
    --nb-ink-on-accent: #ffffff;
    --nb-font: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
    --bs-body-bg: #f3f4f7;
    --bs-body-color: #1e293b;
}

html[data-theme-style="tema3"] body {
    background-color: #f3f4f7;
    background-image: none !important;
    color: #1e293b;
    font-family: var(--nb-font);
}

html[data-theme-style="tema3"] .app-navbar {
    background: #001b2f !important; /* Authentic Deep Marine Navy */
    border-bottom: 2px solid #287F71 !important;
    box-shadow: 0 2px 10px rgba(0, 27, 47, 0.2) !important;
    color: #ffffff !important;
}

html[data-theme-style="tema3"] .app-navbar .brand-name,
html[data-theme-style="tema3"] .app-navbar .navbar-brand,
html[data-theme-style="tema3"] .app-navbar .brand-sub {
    color: #ffffff !important;
}

html[data-theme-style="tema3"] .app-navbar .brand-icon {
    background: #287F71 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(40, 127, 113, 0.4) !important;
}

html[data-theme-style="tema3"] .nav-link-custom {
    color: #c9d6df !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
}

html[data-theme-style="tema3"] .nav-link-custom:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-theme-style="tema3"] .nav-link-custom.active {
    background: #287F71 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(40, 127, 113, 0.4) !important;
}

html[data-theme-style="tema3"] .card,
html[data-theme-style="tema3"] .app-card,
html[data-theme-style="tema3"] .stat-card,
html[data-theme-style="tema3"] .kpi-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
}

html[data-theme-style="tema3"] .btn {
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
}

html[data-theme-style="tema3"] .btn-primary {
    background: #287F71 !important;
    color: #ffffff !important;
}

html[data-theme-style="tema3"] .btn-primary:hover {
    background: #20675b !important;
}

html[data-theme-style="tema3"] .page-intro {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 5px solid #287F71 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme-style="tema3"] .page-intro .eyebrow {
    background: #e9f5f3 !important;
    color: #287F71 !important;
    border: 1px solid rgba(40, 127, 113, 0.2) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

html[data-theme-style="tema3"] .mobile-bottom-dock {
    background: #001b2f !important;
    border: 1px solid #13334c !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0, 27, 47, 0.3) !important;
}

html[data-theme-style="tema3"] .mobile-dock-item {
    color: #94a3b8 !important;
}

html[data-theme-style="tema3"] .mobile-dock-item i,
html[data-theme-style="tema3"] .mobile-dock-item span {
    color: #94a3b8 !important;
}

html[data-theme-style="tema3"] .mobile-dock-item.active {
    background: #287F71 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

html[data-theme-style="tema3"] .mobile-dock-item.active i,
html[data-theme-style="tema3"] .mobile-dock-item.active span {
    color: #ffffff !important;
}

/* Tema 3 Dark Mode */
html[data-theme-style="tema3"][data-nb-theme="dark"] {
    --nb-ink: #f1f5f9;
    --nb-paper: #0c1924;
    --nb-surface: #132535;
    --nb-muted: #8ca3ba;
    --nb-muted-2: #657e97;
    --nb-line: #1e3549;
    --nb-border: 1px solid #1e3549;
    --nb-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    --nb-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
    --bs-body-bg: #0c1924;
    --bs-body-color: #f1f5f9;
}

html[data-theme-style="tema3"][data-nb-theme="dark"] body {
    background-color: #0c1924 !important;
    color: #f1f5f9 !important;
}

html[data-theme-style="tema3"][data-nb-theme="dark"] .card,
html[data-theme-style="tema3"][data-nb-theme="dark"] .app-card,
html[data-theme-style="tema3"][data-nb-theme="dark"] .stat-card,
html[data-theme-style="tema3"][data-nb-theme="dark"] .page-intro {
    background: #132535 !important;
    border-color: #1e3549 !important;
    color: #f1f5f9 !important;
}


/* ==============================================================================
   TEMA 4: INVENZA MODERN TAILWIND (Fresh Emerald & Rounded-2xl Clean Card)
   Sumber Inspirasi: tema4/ (Invenza Inventory Tailwind Theme)
   ============================================================================== */
html[data-theme-style="tema4"] {
    --nb-ink: #0f172a;
    --nb-paper: #F6F8FA;
    --nb-surface: #FFFFFF;
    --nb-muted: #64748b;
    --nb-muted-2: #94a3b8;
    --nb-line: #E8EDF1;
    --nb-border: 1px solid #E8EDF1;
    --nb-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --nb-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
    --nb-radius: 16px;
    --nb-yellow: #22B573; /* Fresh Emerald */
    --nb-cyan: #3B82F6;   /* Info Blue */
    --nb-lime: #22B573;
    --nb-pink: #8B5CF6;   /* Violet */
    --nb-blue: #22B573;
    --nb-orange: #F59E0B;
    --nb-red: #EF4444;
    --nb-ink-on-accent: #ffffff;
    --nb-font: "Inter", system-ui, sans-serif;
    --bs-body-bg: #F6F8FA;
    --bs-body-color: #0f172a;
}

html[data-theme-style="tema4"] body {
    background-color: #F6F8FA;
    background-image: none !important;
    color: #0f172a;
    font-family: var(--nb-font);
}

html[data-theme-style="tema4"] .app-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid #E8EDF1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme-style="tema4"] .app-navbar .brand-icon {
    background: #22B573 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(34, 181, 115, 0.3) !important;
}

html[data-theme-style="tema4"] .nav-link-custom {
    color: #475569 !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 0.45rem 0.85rem !important;
}

html[data-theme-style="tema4"] .nav-link-custom:hover {
    background: #EAF8F1 !important;
    color: #22B573 !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-theme-style="tema4"] .nav-link-custom.active {
    background: #22B573 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(34, 181, 115, 0.3) !important;
}

html[data-theme-style="tema4"] .card,
html[data-theme-style="tema4"] .app-card,
html[data-theme-style="tema4"] .stat-card,
html[data-theme-style="tema4"] .kpi-card {
    border: 1px solid #E8EDF1 !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04) !important;
    background: #ffffff !important;
}

html[data-theme-style="tema4"] .btn {
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-weight: 700 !important;
}

html[data-theme-style="tema4"] .btn-primary {
    background: #22B573 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(34, 181, 115, 0.28) !important;
}

html[data-theme-style="tema4"] .btn-primary:hover {
    background: #1ba064 !important;
}

html[data-theme-style="tema4"] .page-intro {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
    border: 1px solid #dcfce7 !important;
    border-left: 6px solid #22B573 !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 20px rgba(34, 181, 115, 0.06) !important;
}

html[data-theme-style="tema4"] .page-intro .eyebrow {
    background: #EAF8F1 !important;
    color: #15945A !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    padding: 3px 10px !important;
}

html[data-theme-style="tema4"] .mobile-bottom-dock {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid #E8EDF1 !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme-style="tema4"] .mobile-dock-item.active {
    background: #22B573 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 12px rgba(34, 181, 115, 0.3) !important;
}

html[data-theme-style="tema4"] .mobile-dock-item.active i,
html[data-theme-style="tema4"] .mobile-dock-item.active span {
    color: #ffffff !important;
}

html[data-theme-style="tema4"] .mobile-dock-item.special-scan {
    background: #22B573 !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 8px 20px rgba(34, 181, 115, 0.4) !important;
}

/* Tema 4 Dark Mode */
html[data-theme-style="tema4"][data-nb-theme="dark"] {
    --nb-ink: #F1F5F9;
    --nb-paper: #0F172A;
    --nb-surface: #1E293B;
    --nb-muted: #94A3B8;
    --nb-muted-2: #64748B;
    --nb-line: #334155;
    --nb-border: 1px solid #334155;
    --nb-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    --nb-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
    --bs-body-bg: #0F172A;
    --bs-body-color: #F1F5F9;
}

html[data-theme-style="tema4"][data-nb-theme="dark"] body {
    background-color: #0F172A !important;
    color: #F1F5F9 !important;
}

html[data-theme-style="tema4"][data-nb-theme="dark"] .app-navbar {
    background: rgba(30, 41, 59, 0.95) !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme-style="tema4"][data-nb-theme="dark"] .card,
html[data-theme-style="tema4"][data-nb-theme="dark"] .app-card,
html[data-theme-style="tema4"][data-nb-theme="dark"] .stat-card,
html[data-theme-style="tema4"][data-nb-theme="dark"] .page-intro,
html[data-theme-style="tema4"][data-nb-theme="dark"] .mobile-bottom-dock {
    background: #1E293B !important;
    border-color: #334155 !important;
    color: #F1F5F9 !important;
}


/* ==============================================================================
   TEMA 5: ATELIER BOLD PRESS (Luxury Obsidian & Warm Amber Minimalist)
   Sumber Inspirasi: tema5/ (Atelier React 19 / Bold Press Design Tokens)
   ============================================================================== */
html[data-theme-style="tema5"] {
    --nb-ink: #09090b;
    --nb-paper: #FAFAFA;
    --nb-surface: #FFFFFF;
    --nb-muted: #71717a;
    --nb-muted-2: #a1a1aa;
    --nb-line: #e4e4e7;
    --nb-border: 1px solid #e4e4e7;
    --nb-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --nb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --nb-radius: 6px;
    --nb-yellow: #D97706; /* Warm Amber Gold */
    --nb-cyan: #ff946f;   /* Terracotta Coral */
    --nb-lime: #D97706;
    --nb-pink: #ff946f;
    --nb-blue: #2563eb;
    --nb-orange: #ea580c;
    --nb-red: #e11d48;
    --nb-ink-on-accent: #ffffff;
    --nb-font: "JetBrains Mono", "Plus Jakarta Sans", monospace, sans-serif;
    --bs-body-bg: #FAFAFA;
    --bs-body-color: #09090b;
}

html[data-theme-style="tema5"] body {
    background-color: #FAFAFA;
    background-image: none !important;
    color: #09090b;
}

html[data-theme-style="tema5"] .app-navbar {
    background: #18181b !important;
    border-bottom: 2px solid #D97706 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    color: #fafafa !important;
}

html[data-theme-style="tema5"] .app-navbar .brand-name,
html[data-theme-style="tema5"] .app-navbar .navbar-brand,
html[data-theme-style="tema5"] .app-navbar .brand-sub {
    color: #fafafa !important;
}

html[data-theme-style="tema5"] .app-navbar .brand-icon {
    background: #D97706 !important;
    color: #18181b !important;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

html[data-theme-style="tema5"] .nav-link-custom {
    color: #a1a1aa !important;
    border: 1px solid transparent !important;
    border-radius: 4px !important;
    font-size: 0.76rem !important;
    letter-spacing: 0.03em !important;
    font-family: "JetBrains Mono", monospace !important;
}

html[data-theme-style="tema5"] .nav-link-custom:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fafafa !important;
    border-color: #3f3f46 !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-theme-style="tema5"] .nav-link-custom.active {
    background: #D97706 !important;
    color: #ffffff !important;
    border-color: #D97706 !important;
    box-shadow: none !important;
}

html[data-theme-style="tema5"] .card,
html[data-theme-style="tema5"] .app-card,
html[data-theme-style="tema5"] .stat-card,
html[data-theme-style="tema5"] .kpi-card {
    border: 1px solid #e4e4e7 !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
}

html[data-theme-style="tema5"] .btn {
    border: 1px solid #27272a !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    font-weight: 800 !important;
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

html[data-theme-style="tema5"] .btn-primary {
    background: #D97706 !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
}

html[data-theme-style="tema5"] .page-intro {
    background: #ffffff !important;
    border: 1px solid #e4e4e7 !important;
    border-left: 4px solid #D97706 !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme-style="tema5"] .page-intro .eyebrow {
    background: #09090b !important;
    color: #fbbf24 !important;
    border: none !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    font-family: "JetBrains Mono", monospace !important;
}

html[data-theme-style="tema5"] .mobile-bottom-dock {
    background: #18181b !important;
    border: 1px solid #27272a !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme-style="tema5"] .mobile-dock-item {
    color: #a1a1aa !important;
}

html[data-theme-style="tema5"] .mobile-dock-item i,
html[data-theme-style="tema5"] .mobile-dock-item span {
    color: #a1a1aa !important;
}

html[data-theme-style="tema5"] .mobile-dock-item.active {
    background: #D97706 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

html[data-theme-style="tema5"] .mobile-dock-item.active i,
html[data-theme-style="tema5"] .mobile-dock-item.active span {
    color: #ffffff !important;
}

/* Tema 5 Dark Mode (Deep Obsidian Zinc-950) */
html[data-theme-style="tema5"][data-nb-theme="dark"] {
    --nb-ink: #f4f4f5;
    --nb-paper: #09090b;
    --nb-surface: #18181b;
    --nb-muted: #a1a1aa;
    --nb-muted-2: #71717a;
    --nb-line: #27272a;
    --nb-border: 1px solid #27272a;
    --nb-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
    --nb-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --bs-body-bg: #09090b;
    --bs-body-color: #f4f4f5;
}

html[data-theme-style="tema5"][data-nb-theme="dark"] body {
    background-color: #09090b !important;
    color: #f4f4f5 !important;
}

html[data-theme-style="tema5"][data-nb-theme="dark"] .card,
html[data-theme-style="tema5"][data-nb-theme="dark"] .app-card,
html[data-theme-style="tema5"][data-nb-theme="dark"] .stat-card,
html[data-theme-style="tema5"][data-nb-theme="dark"] .page-intro {
    background: #18181b !important;
    border-color: #27272a !important;
    color: #f4f4f5 !important;
}

html[data-theme-style="tema5"][data-nb-theme="dark"] .btn {
    border-color: #3f3f46 !important;
    color: #f4f4f5 !important;
}
