/* --- Gothic / Darkwave Theme --- */
/* Fuses 60s/70s vintage visions of the future with modern tech */
/* Bold gradients, chrome textures, purple-teal cyber-noir aesthetic */

:root.theme-gothic {
    /* Core Palette - Chrome & Neon */
    --gothic-purple: #9d4edd;
    --gothic-violet: #7b2cbf;
    --gothic-teal: #00b4d8;
    --gothic-cyan: #90e0ef;
    --gothic-chrome: #c0c0c0;
    --gothic-silver: #e0e0e0;
    --gothic-magenta: #e0aaff;
    
    /* Dark Base Colors - Deep Void */
    --gothic-black: #0a0510;
    --gothic-void: #05030a;
    --gothic-shadow: #120a1a;
    --gothic-panel: #1a1025;
    --gothic-border: #251a35;
    
    /* Theme Variables Mapped */
    --title: #e0e0ff;
    --body: var(--gothic-black);
    --htitle: #f0f0ff;
    --hbody: var(--gothic-shadow);
    --table-row: var(--gothic-panel);
    --table-row-hover: #251530;
    --primal: var(--gothic-teal);
    --primal_dark: var(--gothic-violet);
    --primal-rgb: 0, 180, 216;
    --btn-primary-shadow: rgba(0, 180, 216, 0.4);
    --nav-item-color: var(--gothic-teal);
    color-scheme: dark;

    /* Bootstrap Overrides with Chrome Accents */
    --bs-primary: var(--gothic-teal);
    --bs-primary-rgb: 0, 180, 216;
    --bs-btn-bg: var(--gothic-teal);
    --bs-btn-border-color: var(--gothic-teal);
    --bs-btn-hover-bg: var(--gothic-violet);
    --bs-btn-hover-border-color: var(--gothic-violet);
    --bs-link-color: var(--gothic-teal);
    --bs-link-hover-color: var(--gothic-violet);
    --bs-body-bg: var(--gothic-black);
    --bs-body-color: var(--title);

    /* Login Theme Variables */
    --bg-gradient: linear-gradient(135deg, var(--gothic-black) 0%, var(--gothic-shadow) 50%, #0f0518 100%);
    --right-bg: var(--title);
    --primary-color: var(--gothic-teal);
    
    /* Setup Builder Theme Tokens - Gothic Edition */
    --ms-setup-shell-bg: linear-gradient(180deg, rgba(18, 10, 26, 0.98), rgba(10, 5, 16, 0.98));
    --ms-setup-shell-border: rgba(157, 78, 221, 0.15);
    --ms-setup-card-bg: rgba(26, 16, 37, 0.95);
    --ms-setup-card-border: rgba(0, 180, 216, 0.12);
    --ms-setup-pane-bg: rgba(157, 78, 221, 0.03);
    --ms-setup-pane-border: rgba(0, 180, 216, 0.1);
    --ms-setup-item-bg: rgba(26, 16, 37, 0.9);
    --ms-setup-item-border: rgba(0, 180, 216, 0.12);
    --ms-setup-item-hover-bg: rgba(0, 180, 216, 0.06);
    --ms-setup-item-shadow: 0 0 25px rgba(157, 78, 221, 0.15);
    --ms-setup-item-active-bg: rgba(0, 180, 216, 0.08);
    --ms-setup-item-active-ring: rgba(0, 180, 216, 0.25);
    --ms-setup-tree-bg: linear-gradient(180deg, rgba(10, 5, 16, 0.95), rgba(18, 10, 26, 0.95));
    --ms-setup-tree-accent: rgba(157, 78, 221, 0.3);
    --ms-setup-connector: rgba(0, 180, 216, 0.2);
    --ms-setup-badge-bg: rgba(157, 78, 221, 0.15);
    --ms-setup-badge-color: #e0e0ff;
    --ms-setup-text: var(--title);
    --ms-setup-muted: #a090c0;
    /* Microsys Table Tokens */
    --ms-table-surface:
        radial-gradient(circle at top, rgba(0, 180, 216, 0.1), transparent 66%),
        linear-gradient(180deg, rgba(26, 16, 37, 0.98), rgba(10, 5, 16, 0.99));
    --ms-table-border: rgba(0, 180, 216, 0.18);
    --ms-table-border-strong: rgba(157, 78, 221, 0.26);
    --ms-table-shadow: 0 22px 44px -30px rgba(0, 0, 0, 0.72);
    --ms-table-header-surface: linear-gradient(180deg, rgba(34, 20, 44, 0.98), rgba(26, 16, 37, 0.98));
    --ms-table-header-text: #f1f4ff;
    --ms-table-row-odd: rgba(10, 5, 16, 0.98);
    --ms-table-row-even: rgba(26, 16, 37, 0.98);
    --ms-table-row-hover: rgba(37, 21, 48, 0.98);
    --ms-table-cell-border: rgba(192, 192, 192, 0.12);
    --ms-table-sort-muted: rgba(224, 224, 255, 0.72);
    --ms-table-empty-muted: rgba(172, 177, 210, 0.86);
    --ms-table-empty-surface: linear-gradient(180deg, rgba(18, 10, 26, 0.98), rgba(10, 5, 16, 0.99));
    --ms-table-empty-icon-bg: rgba(0, 180, 216, 0.08);
    --ms-table-empty-icon-color: #e8f7ff;
    --ms-table-empty-icon-shadow: inset 0 0 0 1px rgba(0, 180, 216, 0.14);
    --ms-table-footer-surface: linear-gradient(180deg, rgba(14, 8, 21, 0.96), rgba(10, 5, 16, 0.98));
    --ms-table-footer-text: rgba(224, 224, 255, 0.82);
    --ms-density-card-border: rgba(0, 180, 216, 0.14);
    --ms-density-card-surface:
        radial-gradient(circle at top, rgba(0, 180, 216, 0.08), transparent 68%),
        linear-gradient(180deg, rgba(26, 16, 37, 0.98), rgba(10, 5, 16, 0.99));
    --ms-density-card-shadow:
        inset 0 1px 0 rgba(224, 224, 255, 0.04),
        0 18px 34px -28px rgba(0, 0, 0, 0.72);
    --ms-density-card-hover-border: rgba(0, 180, 216, 0.24);
    --ms-density-card-hover-shadow:
        inset 0 1px 0 rgba(224, 224, 255, 0.05),
        0 20px 36px -28px rgba(0, 0, 0, 0.76);
    --ms-density-card-active-border: rgba(0, 180, 216, 0.3);
    --ms-density-card-active-shadow:
        inset 0 1px 0 rgba(224, 224, 255, 0.05),
        0 0 0 0.18rem rgba(0, 180, 216, 0.12);
    --ms-density-card-icon-bg: rgba(0, 180, 216, 0.08);
    --ms-density-card-icon-color: #eef8ff;
    --ms-density-card-title: #f1f4ff;
    --ms-density-card-copy: rgba(172, 177, 210, 0.9);
    --ms-table-chip-bg: rgba(0, 180, 216, 0.06);
    --ms-table-chip-border: rgba(0, 180, 216, 0.16);
    --ms-table-chip-text: #eef4ff;
    --ms-table-chip-hover-bg: rgba(0, 180, 216, 0.12);
    --ms-table-chip-active-bg: rgba(0, 180, 216, 0.18);
    --ms-table-chip-active-border: rgba(0, 180, 216, 0.34);
    --ms-table-page-bg: rgba(0, 180, 216, 0.05);
    --ms-table-page-border: rgba(192, 192, 192, 0.14);
    --ms-table-page-text: #eef4ff;
    --ms-table-page-hover-bg: rgba(0, 180, 216, 0.12);
    --ms-table-page-hover-border: rgba(0, 180, 216, 0.32);
    --ms-table-page-active-bg: rgba(0, 180, 216, 0.92);
    --ms-table-page-active-border: rgba(0, 180, 216, 0.92);
    --ms-table-page-active-text: #0a0510;
    --ms-table-page-disabled-bg: rgba(255, 255, 255, 0.03);
    --ms-table-page-disabled-border: rgba(192, 192, 192, 0.08);
    --ms-table-page-disabled-text: rgba(224, 224, 255, 0.44);
    --ms-table-sticky-shadow: 10px 0 26px -20px rgba(0, 0, 0, 0.8);
    --ms-table-row-deleted-bg: rgba(255, 255, 255, 0.03);
    --ms-table-row-deleted-text: #8d82a8;
    --ms-table-row-danger-bg: rgba(92, 28, 48, 0.84);
    --ms-table-row-danger-hover-bg: rgba(118, 36, 60, 0.9);
}

/* Chrome Gradient Background Effect */
:root.theme-gothic::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(157, 78, 221, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 180, 216, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(123, 44, 191, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Chrome grid texture overlay */
:root.theme-gothic body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(192, 192, 192, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(192, 192, 192, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 9998;
}

/* Force options to inherit gothic theme colors */
:root.theme-gothic select option {
    background-color: var(--gothic-panel);
    color: var(--title);
}

/* --- Global Elements with Chrome & Neon --- */

/* 1. Global, Cards & Modals - Chrome Panels */
:root.theme-gothic .card:not([class*="text-bg-"]):not([class*="bg-"]),
:root.theme-gothic .card-body:not([class*="text-bg-"]):not([class*="bg-"]),
:root.theme-gothic .dashboard-card:not([class*="text-bg-"]):not([class*="bg-"]), 
:root.theme-gothic .option-section:not([class*="text-bg-"]):not([class*="bg-"]),
:root.theme-gothic .list-group-item:not([class*="text-bg-"]):not([class*="bg-"]):not(.active),
:root.theme-gothic .modal-content,
:root.theme-gothic .chart-container-sys {
    background: linear-gradient(135deg, var(--gothic-panel) 0%, rgba(26, 16, 37, 0.9) 100%) !important;
    color: var(--title) !important;
    /* border: 1px solid rgba(0, 180, 216, 0.15) !important; */
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(157, 78, 221, 0.05) !important;
}

:root.theme-gothic .card:hover,
:root.theme-gothic .dashboard-card:hover {
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 180, 216, 0.1) !important;
    border-color: rgba(0, 180, 216, 0.25) !important;
}

/* Chrome border effect */
:root.theme-gothic .card:not([class*="border-"]),
:root.theme-gothic .card-body:not([class*="border-"]),
:root.theme-gothic .dashboard-card:not([class*="border-"]),
:root.theme-gothic .list-group-item:not([class*="border-"]),
:root.theme-gothic .modal-content:not([class*="border-"]),
:root.theme-gothic .chart-container-sys:not([class*="border-"]) {
    border-color: rgba(192, 192, 192, 0.1) !important;
}

/* Chart Fix */
:root.theme-gothic .chart-container-sys {
    background-color: transparent !important;
    border-color: rgba(0, 180, 216, 0.2) !important;
    box-shadow: none !important;
}

:root.theme-gothic .module-card,
:root.theme-gothic .chart-container-sys {
    background:
        linear-gradient(180deg, rgba(28, 16, 40, 0.98) 0%, rgba(10, 5, 16, 0.98) 100%) !important;
    border-color: rgba(0, 180, 216, 0.18) !important;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.44),
        0 0 20px rgba(0, 180, 216, 0.08),
        inset 0 1px 0 rgba(224, 170, 255, 0.05),
        inset 0 -1px 0 rgba(0, 180, 216, 0.16) !important;
}

:root.theme-gothic .module-card:hover,
:root.theme-gothic .chart-container-sys:hover {
    border-color: rgba(0, 180, 216, 0.28) !important;
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.5),
        0 0 26px rgba(0, 180, 216, 0.12),
        0 0 10px rgba(157, 78, 221, 0.08),
        inset 0 1px 0 rgba(224, 170, 255, 0.06),
        inset 0 -1px 0 rgba(144, 224, 239, 0.18) !important;
}

:root.theme-gothic .module-card .module-icon-wrapper {
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 180, 216, 0.22), transparent 68%),
        linear-gradient(180deg, rgba(23, 16, 34, 0.98), rgba(11, 8, 20, 0.94)) !important;
    border: 1px solid rgba(0, 180, 216, 0.2) !important;
    box-shadow:
        0 0 18px rgba(0, 180, 216, 0.12),
        inset 0 0 16px rgba(157, 78, 221, 0.08) !important;
}

:root.theme-gothic .module-card .module-name,
:root.theme-gothic .chart-container-sys h5,
:root.theme-gothic .chart-container-sys h6 {
    color: #eef4ff !important;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.12) !important;
}

:root.theme-gothic .module-card .module-desc,
:root.theme-gothic .module-card .text-muted,
:root.theme-gothic .chart-container-sys .text-muted,
:root.theme-gothic .chart-container-sys small {
    color: #acb1d2 !important;
}

:root.theme-gothic .module-card .module-action,
:root.theme-gothic .chart-container-sys .module-action {
    color: var(--gothic-teal) !important;
    text-shadow: 0 0 8px rgba(0, 180, 216, 0.18) !important;
}

:root.theme-gothic .module-card .border-top,
:root.theme-gothic .chart-container-sys .border-top {
    border-top-color: rgba(0, 180, 216, 0.14) !important;
    box-shadow: inset 0 1px 0 rgba(224, 170, 255, 0.04);
}

:root.theme-gothic .module-card .display-6,
:root.theme-gothic .chart-container-sys .display-6 {
    text-shadow: 0 0 14px rgba(0, 180, 216, 0.16) !important;
}

:root.theme-gothic .list-group-item.bg-transparent {
    background-color: transparent !important;
}

/* Sidebar - Darkwave Edition */
:root.theme-gothic #sidebar {
    background: linear-gradient(180deg, var(--gothic-shadow) 0%, var(--gothic-black) 100%) !important;
    border-left: 1px solid rgba(157, 78, 221, 0.2) !important;
    box-shadow: 
        -5px 0 30px rgba(0, 0, 0, 0.5),
        -2px 0 20px rgba(157, 78, 221, 0.1) !important;
}

:root.theme-gothic .text-muted,
:root.theme-gothic .text-secondary {
    color: #9080a0 !important;
}

:root.theme-gothic .bg-light {
    background-color: var(--gothic-shadow) !important;
    border-color: rgba(192, 192, 192, 0.1) !important;
}

:root.theme-gothic .bg-white {
    background-color: var(--gothic-panel) !important;
    color: var(--title) !important;
}

:root.theme-gothic .border-white {
    border-color: rgba(192, 192, 192, 0.15) !important;
}

/* 2. Titlebar - Chrome Header */
:root.theme-gothic .titlebar {
    background: linear-gradient(90deg, var(--gothic-black) 0%, var(--gothic-shadow) 50%, #150820 100%) !important;
    border-bottom: 1px solid rgba(157, 78, 221, 0.25) !important;
    box-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(0, 180, 216, 0.1) !important;
}

:root.theme-gothic .titlebar p,
:root.theme-gothic .titlebar .btn-light,
:root.theme-gothic .titlebar .btn-light .bi {
    color: var(--gothic-teal) !important;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.3) !important;
}

:root.theme-gothic .titlebar .btn-light:hover {
    background-color: rgba(0, 180, 216, 0.1) !important;
    color: var(--gothic-purple) !important;
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.3) !important;
}

:root.theme-gothic .titlebar[data-titlebar-logo-treatment="plate"] .titlebar__logo {
    background:
        linear-gradient(135deg, rgba(0, 180, 216, 0.16), rgba(157, 78, 221, 0.08)),
        rgba(224, 224, 224, 0.9) !important;
    border-color: rgba(0, 180, 216, 0.35) !important;
}

:root.theme-gothic .titlebar[data-titlebar-logo-treatment="halo"] .titlebar__logo {
    filter:
        drop-shadow(0 0 0.45rem rgba(0, 180, 216, 0.52))
        drop-shadow(0 0 0.8rem rgba(157, 78, 221, 0.28)) !important;
}

:root.theme-gothic .titlebar[data-titlebar-logo-treatment="contrast"] .titlebar__logo {
    filter:
        brightness(1.16)
        contrast(1.18)
        drop-shadow(0 0 0.5rem rgba(0, 180, 216, 0.42)) !important;
}

:root.theme-gothic .lang-option,
.theme-gothic .lang-option {
    background-color: rgba(26, 16, 37, 0.92) !important;
    border-color: rgba(0, 180, 216, 0.14) !important;
    color: #acb1d2 !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24) !important;
}

:root.theme-gothic .lang-option:hover,
.theme-gothic .lang-option:hover {
    background-color: rgba(34, 20, 48, 0.96) !important;
    border-color: rgba(0, 180, 216, 0.28) !important;
    color: var(--gothic-teal) !important;
}

:root.theme-gothic .lang-option.lang-active,
:root.theme-gothic .lang-option.active,
:root.theme-gothic .lang-active,
.theme-gothic .lang-option.lang-active,
.theme-gothic .lang-option.active,
.theme-gothic .lang-active {
    background-color: rgba(0, 180, 216, 0.12) !important;
    border-color: var(--gothic-teal) !important;
    color: var(--gothic-teal) !important;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.14) !important;
}

:root.theme-gothic .theme-preview,
.theme-gothic .theme-preview {
    border: none !important;
    box-shadow: none !important;
    outline: 2px solid rgba(0, 180, 216, 0.2) !important;
    outline-offset: 2px !important;
}

:root.theme-gothic .theme-preview.active,
.theme-gothic .theme-preview.active {
    outline-color: var(--gothic-teal) !important;
    box-shadow: 0 0 18px rgba(0, 180, 216, 0.24) !important;
}

/* ms-settings-toggle-field card (bg-light override) */
:root.theme-gothic .ms-settings-toggle-field {
    background-color: rgba(26, 16, 37, 0.92) !important;
    border-color: rgba(0, 180, 216, 0.14) !important;
    color: var(--title) !important;
}
/* 3. Forms & Inputs - Chrome Glowing Fields */
:root.theme-gothic .microsys-form,
:root.theme-gothic .archive-document-form,
:root.theme-gothic .microsys-filter {
    --archive-form-surface: linear-gradient(180deg, rgba(26, 16, 37, 0.98), rgba(15, 10, 20, 0.96));
    --archive-form-border: rgba(0, 180, 216, 0.15);
    --archive-form-border-strong: rgba(157, 78, 221, 0.4);
    --archive-form-focus-ring: rgba(0, 180, 216, 0.2);
    --archive-form-muted: #a090c0;
}

:root.theme-gothic .form-control,
:root.theme-gothic .form-select,
:root.theme-gothic .input-group-text {
    background-color: var(--gothic-panel) !important;
    border-color: rgba(192, 192, 192, 0.15) !important;
    color: var(--title) !important;
}

:root.theme-gothic .form-control:focus,
:root.theme-gothic .form-select:focus {
    background-color: var(--gothic-shadow) !important;
    border-color: var(--gothic-teal) !important;
    color: #fff !important;
    box-shadow: 
        0 0 0 0.2rem rgba(0, 180, 216, 0.2),
        0 0 15px rgba(0, 180, 216, 0.2) !important;
    outline: none !important;
}

:root.theme-gothic .microsys-filter .form-control,
:root.theme-gothic .microsys-filter .form-select,
:root.theme-gothic .microsys-filter textarea {
    background: var(--archive-form-surface) !important;
    border-color: rgba(0, 180, 216, 0.18) !important;
    color: #eef4ff !important;
    box-shadow:
        inset 0 1px 0 rgba(224, 224, 255, 0.04),
        0 10px 22px -18px rgba(0, 0, 0, 0.42) !important;
}

:root.theme-gothic .microsys-filter .form-control::placeholder,
:root.theme-gothic .microsys-filter textarea::placeholder {
    color: rgba(172, 177, 210, 0.86) !important;
}

:root.theme-gothic .microsys-filter .form-control:hover,
:root.theme-gothic .microsys-filter .form-select:hover,
:root.theme-gothic .microsys-filter textarea:hover {
    border-color: rgba(0, 180, 216, 0.28) !important;
}

:root.theme-gothic .microsys-filter .form-control:focus,
:root.theme-gothic .microsys-filter .form-select:focus,
:root.theme-gothic .microsys-filter textarea:focus {
    background: linear-gradient(180deg, rgba(28, 18, 40, 0.98), rgba(18, 11, 28, 0.96)) !important;
    color: #ffffff !important;
}

:root.theme-gothic .microsys-filter .btn.microsys-filter-submit.btn-secondary {
    background:
        radial-gradient(circle at top, rgba(0, 180, 216, 0.12), transparent 58%),
        linear-gradient(180deg, rgba(26, 16, 37, 0.98), rgba(14, 9, 22, 0.96)) !important;
    border-color: rgba(0, 180, 216, 0.24) !important;
    color: var(--gothic-teal) !important;
    box-shadow:
        inset 0 1px 0 rgba(224, 224, 255, 0.04),
        0 12px 24px -18px rgba(0, 0, 0, 0.46) !important;
}

:root.theme-gothic .microsys-filter .btn.microsys-filter-submit.btn-secondary i {
    color: var(--gothic-teal) !important;
    text-shadow: 0 0 8px rgba(0, 180, 216, 0.32) !important;
}

:root.theme-gothic .form-control[type="file"]::file-selector-button {
    background: linear-gradient(135deg, var(--gothic-teal) 0%, var(--gothic-cyan) 100%) !important;
    color: var(--gothic-black) !important;
    border: none !important;
    border-inline-end: 1px solid rgba(0, 180, 216, 0.2) !important;
    padding: 0.375rem 0.75rem;
    margin-inline-end: 0.75rem;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

:root.theme-gothic .form-control[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, var(--gothic-purple) 0%, var(--gothic-violet) 100%) !important;
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.4) !important;
}

/* 4. Tables - Chrome Data Grid */
:root.theme-gothic .table {
    color: var(--title) !important;
    --bs-table-color: var(--title) !important;
    --bs-table-striped-color: var(--title) !important;
    --bs-table-active-color: var(--title) !important;
}

:root.theme-gothic .table thead th {
    background: var(--ms-table-header-surface) !important;
    color: var(--gothic-teal) !important;
    text-shadow: 0 0 8px rgba(0, 180, 216, 0.3) !important;
    border-color: rgba(0, 180, 216, 0.15) !important;
    border-bottom: 2px solid var(--gothic-teal) !important;
}

:root.theme-gothic .table>tbody>tr:nth-child(odd)>td, 
:root.theme-gothic .table>tbody>tr:nth-child(odd)>th {
    --bs-table-bg-type: var(--gothic-black) !important; 
    background-color: var(--gothic-black) !important;
    color: var(--htitle) !important;
}

:root.theme-gothic .table>tbody>tr:nth-child(even)>td, 
:root.theme-gothic .table>tbody>tr:nth-child(even)>th {
    --bs-table-bg-type: var(--gothic-panel) !important;
    background-color: var(--gothic-panel) !important;
    color: var(--htitle) !important;
}

:root.theme-gothic .table>tbody>tr:hover>td,
:root.theme-gothic .table>tbody>tr:hover>th {
    background-color: rgba(157, 78, 221, 0.08) !important;
}

/* 5. Dropdowns - Holographic Menu */
:root.theme-gothic .dropdown-menu {
    background-color: var(--gothic-panel) !important;
    border-color: rgba(0, 180, 216, 0.2) !important;
    border: 1px solid rgba(0, 180, 216, 0.2) !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(157, 78, 221, 0.1) !important;
}

:root.theme-gothic .dropdown-item {
    color: var(--title) !important;
}

:root.theme-gothic .dropdown-item:hover,
:root.theme-gothic .dropdown-item:focus,
:root.theme-gothic .dropdown-item:active,
:root.theme-gothic .dropdown-item.active {
    background-color: rgba(0, 180, 216, 0.08) !important;
    color: var(--gothic-cyan) !important;
    border-color: transparent !important;
    box-shadow:
        inset 3px 0 0 rgba(0, 180, 216, 0.85),
        inset 0 0 0 1px rgba(0, 180, 216, 0.16) !important;
    text-shadow: 0 0 6px rgba(0, 180, 216, 0.32) !important;
}

:root.theme-gothic .dropdown-item:hover i,
:root.theme-gothic .dropdown-item:focus i,
:root.theme-gothic .dropdown-item:active i,
:root.theme-gothic .dropdown-item.active i {
    color: var(--gothic-teal) !important;
    opacity: 1 !important;
}

:root.theme-gothic .context-menu {
    background: linear-gradient(180deg, rgba(26, 16, 37, 0.98), rgba(10, 5, 16, 0.99)) !important;
    border: 1px solid rgba(0, 180, 216, 0.2) !important;
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.42),
        0 0 24px rgba(157, 78, 221, 0.1) !important;
}

:root.theme-gothic .context-menu-item {
    color: var(--title) !important;
}

:root.theme-gothic .context-menu-item:hover,
:root.theme-gothic .context-menu-item:focus,
:root.theme-gothic .context-menu-item:active {
    background-color: rgba(0, 180, 216, 0.08) !important;
    color: var(--gothic-cyan) !important;
    box-shadow:
        inset 3px 0 0 rgba(0, 180, 216, 0.85),
        inset 0 0 0 1px rgba(0, 180, 216, 0.16) !important;
    text-shadow: 0 0 6px rgba(0, 180, 216, 0.32) !important;
}

:root.theme-gothic .context-menu-item:hover i,
:root.theme-gothic .context-menu-item:focus i,
:root.theme-gothic .context-menu-item:active i {
    color: var(--gothic-teal) !important;
    opacity: 1 !important;
}

:root.theme-gothic .context-menu-item.text-danger:hover,
:root.theme-gothic .context-menu-item.text-danger:focus,
:root.theme-gothic .context-menu-item.text-danger:active {
    background-color: rgba(164, 61, 92, 0.2) !important;
    color: #ff8fb1 !important;
    box-shadow:
        inset 3px 0 0 rgba(255, 143, 177, 0.8),
        inset 0 0 0 1px rgba(255, 143, 177, 0.16) !important;
    text-shadow: none !important;
}

:root.theme-gothic .context-menu-divider {
    border-top-color: rgba(0, 180, 216, 0.14) !important;
}

/* 6. Buttons - Chrome & Neon */
:root.theme-gothic .btn-primary, 
:root.theme-gothic .btn-primary *,
:root.theme-gothic .btn-primary:hover,
:root.theme-gothic .btn-primary:active,
.theme-gothic .btn-primary,
.theme-gothic .btn-primary * {
    background: linear-gradient(135deg, var(--gothic-teal) 0%, var(--gothic-cyan) 100%) !important;
    border-color: var(--gothic-teal) !important;
    color: var(--gothic-black) !important;
    font-weight: 600 !important;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.4) !important;
}

:root.theme-gothic .btn-primary:hover {
    background: linear-gradient(135deg, var(--gothic-purple) 0%, var(--gothic-violet) 100%) !important;
    border-color: var(--gothic-purple) !important;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.5) !important;
    transform: translateY(-1px);
}

:root.theme-gothic .microsys-filter .microsys-filter-action.btn-primary > .bi,
.theme-gothic .microsys-filter .microsys-filter-action.btn-primary > .bi {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
}

:root.theme-gothic .btn-secondary,
:root.theme-gothic .btn-success,
:root.theme-gothic .btn-info,
:root.theme-gothic .btn-warning,
:root.theme-gothic .btn-danger,
:root.theme-gothic .btn-light {
    color: var(--gothic-black) !important;
    font-weight: 600 !important;
}

:root.theme-gothic .btn-secondary .bi,
:root.theme-gothic .btn-success .bi,
:root.theme-gothic .btn-info .bi,
:root.theme-gothic .btn-warning .bi,
:root.theme-gothic .btn-danger .bi,
:root.theme-gothic .btn-light .bi {
    color: inherit !important;
}

:root.theme-gothic .glass-profile .action-btn,
:root.theme-gothic .glass-card .action-btn {
    min-height: 42px;
    padding: 10px 20px;
    font-size: 0.95rem;
    line-height: 1.2;
}

/* 7. Sidebar Active State */
:root.theme-gothic .sidebar,
.theme-gothic .sidebar {
    --sidebar-divider-color: rgba(0, 180, 216, 0.075);
    --sidebar-hover-bg: rgba(0, 180, 216, 0.055);
    --sidebar-folder-bg: rgba(20, 18, 36, 0.38);
    --sidebar-folder-active-bg: rgba(0, 180, 216, 0.1);
    --sidebar-root-active-bg: rgba(0, 180, 216, 0.08);
    --sidebar-folder-indicator-border: rgba(0, 180, 216, 0.18);
}

:root.theme-gothic .sidebar .list-group-item.active,
.theme-gothic .sidebar .list-group-item.active,
:root.theme-gothic .sidebar.collapsed .accordion-button.has-active-child,
.theme-gothic .sidebar.collapsed .accordion-button.has-active-child {
    color: var(--gothic-teal) !important;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.4) !important;
    background: rgba(0, 180, 216, 0.08) !important;
    border-left: 3px solid var(--gothic-teal) !important;
    box-shadow: 
        inset 5px 0 15px rgba(0, 180, 216, 0.1),
        0 0 15px rgba(0, 180, 216, 0.1) !important;
}

:root.theme-gothic ::-webkit-scrollbar-track {
    background: var(--gothic-black); 
}

:root.theme-gothic ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gothic-teal), var(--gothic-purple)) !important;
    border: 3px solid var(--gothic-black);
    border-radius: 10px;
}

:root.theme-gothic ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gothic-purple), var(--gothic-teal)) !important;
}

/* 8. Text Elements - Neon Typography */
:root.theme-gothic h1, 
:root.theme-gothic h2, 
:root.theme-gothic h3, 
:root.theme-gothic h4, 
:root.theme-gothic h5, 
:root.theme-gothic h6,
:root.theme-gothic .header-title,
:root.theme-gothic .stat-value,
:root.theme-gothic .form-text,
:root.theme-gothic .accordion-button,
:root.theme-gothic label,
:root.theme-gothic .form-label,
:root.theme-gothic .titlebar p,
:root.theme-gothic .card-title-sys,
.theme-gothic h1, 
.theme-gothic h2, 
.theme-gothic h3, 
.theme-gothic h4, 
.theme-gothic h5, 
.theme-gothic h6,
.theme-gothic .header-title,
.theme-gothic .stat-value,
.theme-gothic .form-text,
.theme-gothic .accordion-button,
.theme-gothic label,
.theme-gothic .form-label,
.theme-gothic .titlebar p,
.theme-gothic .card-title-sys {
    color: #ffffff !important;
}

:root.theme-gothic h1, 
:root.theme-gothic h2, 
:root.theme-gothic .page-title,
.theme-gothic h1, 
.theme-gothic h2, 
.theme-gothic .page-title {
    text-shadow: 0 0 15px rgba(0, 180, 216, 0.3) !important;
}

:root.theme-gothic .card-text-sys {
    color: #b0a0c0 !important;
}

/* 9. Glass Components - Chrome Glass */
:root.theme-gothic .glass-profile,
:root.theme-gothic .glass-card,
:root.theme-gothic .glass-detail {
    background: rgba(26, 16, 37, 0.95) !important;
    border: 1px solid rgba(0, 180, 216, 0.15) !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(157, 78, 221, 0.08) !important;
}

/* 10. Nav Tabs - Chrome Tabs */
:root.theme-gothic .nav-link {
    color: #9080a0 !important;
}

:root.theme-gothic .nav-link:hover {
    color: var(--gothic-teal) !important;
    text-shadow: 0 0 8px rgba(0, 180, 216, 0.3) !important;
}

:root.theme-gothic .nav-link.active {
    color: var(--gothic-teal) !important;
    background-color: rgba(0, 180, 216, 0.1) !important;
    border-color: var(--gothic-teal) !important;
    border-bottom-color: transparent !important;
    box-shadow: 
        inset 0 -2px 0 var(--gothic-teal),
        0 0 15px rgba(0, 180, 216, 0.15) !important;
}

:root.theme-gothic .modern-tabs .nav-link.active {
    color: var(--gothic-black) !important;
    background: linear-gradient(135deg, var(--gothic-teal) 0%, var(--gothic-purple) 100%) !important;
    border-color: var(--gothic-teal) !important;
    box-shadow: 
        0 10px 30px rgba(0, 180, 216, 0.3),
        0 0 0 1px rgba(0, 180, 216, 0.2) !important;
}

/* 11. Alerts - Neon Notifications */
:root.theme-gothic .alert-success {
    background-color: rgba(144, 224, 239, 0.12) !important;
    border-color: rgba(0, 180, 216, 0.35) !important;
    color: var(--gothic-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.15) !important;
}

:root.theme-gothic .alert-warning {
    background-color: rgba(224, 170, 255, 0.1) !important;
    border-color: rgba(157, 78, 221, 0.35) !important;
    color: var(--gothic-magenta) !important;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.15) !important;
}

:root.theme-gothic .alert-danger {
    background-color: rgba(123, 44, 191, 0.15) !important;
    border-color: rgba(157, 78, 221, 0.35) !important;
    color: var(--gothic-violet) !important;
    box-shadow: 0 0 20px rgba(123, 44, 191, 0.2) !important;
}

:root.theme-gothic .alert-info {
    background-color: rgba(0, 180, 216, 0.12) !important;
    border-color: rgba(0, 180, 216, 0.35) !important;
    color: var(--gothic-teal) !important;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.15) !important;
}

/* 12. Pagination - Chrome Navigation */
:root.theme-gothic .pagination .page-link {
    background-color: var(--gothic-panel) !important;
    border-color: rgba(192, 192, 192, 0.15) !important;
    color: #9080a0 !important;
}

:root.theme-gothic .pagination .page-link:hover {
    background-color: rgba(0, 180, 216, 0.1) !important;
    color: var(--gothic-teal) !important;
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.1) !important;
}

:root.theme-gothic .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--gothic-teal) 0%, var(--gothic-purple) 100%) !important;
    border-color: var(--gothic-teal) !important;
    color: var(--gothic-black) !important;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.4) !important;
}

/* 13. Badges - Chrome Indicators */
:root.theme-gothic .badge.bg-primary {
    background: linear-gradient(135deg, var(--gothic-teal) 0%, var(--gothic-cyan) 100%) !important;
    color: var(--gothic-black) !important;
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.3) !important;
}

:root.theme-gothic .badge.bg-success {
    background: linear-gradient(135deg, var(--gothic-cyan) 0%, #5ce1e6 100%) !important;
    color: var(--gothic-black) !important;
}

:root.theme-gothic .badge.bg-warning {
    background: linear-gradient(135deg, var(--gothic-magenta) 0%, #f0b0ff 100%) !important;
    color: var(--gothic-black) !important;
}

:root.theme-gothic .badge.bg-danger {
    background: linear-gradient(135deg, var(--gothic-violet) 0%, #a050d0 100%) !important;
    color: #fff !important;
}

:root.theme-gothic .badge.bg-info {
    background: linear-gradient(135deg, var(--gothic-purple) 0%, var(--gothic-teal) 100%) !important;
    color: #fff !important;
}

/* 14. Login Screen - Darkwave Terminal */
:root.theme-gothic .page .left {
    background: rgba(26, 16, 37, 0.98) !important;
    border: 1px solid rgba(0, 180, 216, 0.2) !important;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        0 0 40px rgba(157, 78, 221, 0.1) !important;
}

:root.theme-gothic .page .right {
    background: linear-gradient(135deg, var(--gothic-shadow) 0%, #0f0820 100%) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
    color: var(--gothic-teal) !important;
}

/* 15. Progress Bars - Chrome Fill */
:root.theme-gothic .progress-bar {
    background: linear-gradient(90deg, var(--gothic-teal) 0%, var(--gothic-cyan) 100%) !important;
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.3) !important;
}

/* 16. Form Check */
:root.theme-gothic .form-check-input {
    background-color: var(--gothic-panel) !important;
    border-color: rgba(0, 180, 216, 0.3) !important;
}

:root.theme-gothic .form-check-input:checked {
    background-color: var(--gothic-teal) !important;
    border-color: var(--gothic-teal) !important;
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.4) !important;
}

/* 17. Tooltip - Holographic */
:root.theme-gothic .tooltip-inner {
    background-color: var(--gothic-panel) !important;
    color: var(--gothic-teal) !important;
    border: 1px solid rgba(0, 180, 216, 0.25) !important;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.15) !important;
}

/* 18. Modal - Chrome Popup */
:root.theme-gothic .modal-header {
    background: linear-gradient(90deg, var(--gothic-shadow) 0%, var(--gothic-panel) 100%) !important;
    border-bottom: 1px solid rgba(0, 180, 216, 0.15) !important;
}

:root.theme-gothic .modal-header .modal-title {
    color: var(--gothic-teal) !important;
    text-shadow: 0 0 8px rgba(0, 180, 216, 0.3) !important;
}

/* 19. List Group */
:root.theme-gothic .list-group-item.active {
    background: linear-gradient(90deg, rgba(0, 180, 216, 0.1) 0%, rgba(157, 78, 221, 0.05) 100%) !important;
    border-color: var(--gothic-teal) !important;
    color: var(--gothic-teal) !important;
}

/* 20. Accordion */
:root.theme-gothic .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, rgba(0, 180, 216, 0.08) 0%, transparent 100%) !important;
    color: var(--gothic-teal) !important;
    box-shadow: inset 0 -1px 0 rgba(0, 180, 216, 0.15) !important;
}

/* 21. User Hub, Activity, Tutorial, and System Settings */
:root.theme-gothic .ms-user-trigger {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(157, 78, 221, 0.08)) !important;
    border-color: rgba(0, 180, 216, 0.2) !important;
    box-shadow: 0 0 18px rgba(0, 180, 216, 0.08) !important;
}

:root.theme-gothic .ms-user-trigger:hover {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.16), rgba(157, 78, 221, 0.14)) !important;
    border-color: rgba(0, 180, 216, 0.34) !important;
}

:root.theme-gothic .ms-user-dropdown-card,
:root.theme-gothic .stats-card,
:root.theme-gothic .timeline-content,
:root.theme-gothic .driver-popover {
    background: linear-gradient(180deg, rgba(26, 16, 37, 0.98), rgba(10, 5, 16, 0.98)) !important;
    border-color: rgba(0, 180, 216, 0.18) !important;
    color: var(--title) !important;
}

:root.theme-gothic .ms-user-dropdown-card,
:root.theme-gothic .driver-popover {
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(0, 180, 216, 0.12) !important;
}

:root.theme-gothic .ms-dropdown-header,
:root.theme-gothic #activityLogDetailModal .modal-footer,
:root.theme-gothic #activityLogDetailModal .modal-header {
    border-color: rgba(0, 180, 216, 0.12) !important;
}

:root.theme-gothic .ms-dropdown-toolbar,
:root.theme-gothic .completeness-container,
:root.theme-gothic .glass-profile .bg-light.border,
:root.theme-gothic .glass-card .bg-light.border,
:root.theme-gothic #activityLogDetailModal .bg-light,
:root.theme-gothic #backupCodesModal .alert.alert-warning,
:root.theme-gothic #otpSetupSuccess .alert.alert-warning {
    background: linear-gradient(180deg, rgba(26, 16, 37, 0.96), rgba(18, 10, 26, 0.94)) !important;
    border-color: rgba(0, 180, 216, 0.16) !important;
    color: var(--title) !important;
}

:root.theme-gothic .ms-user-role,
:root.theme-gothic #activityLogDetailModal .badge.bg-secondary {
    background: rgba(0, 180, 216, 0.12) !important;
    color: var(--gothic-teal) !important;
    border: 1px solid rgba(0, 180, 216, 0.18) !important;
}

:root.theme-gothic .ms-tool-btn,
:root.theme-gothic .ms-avatar-preview.bg-light {
    background: linear-gradient(180deg, rgba(26, 16, 37, 0.96), rgba(10, 5, 16, 0.96)) !important;
    border-color: rgba(0, 180, 216, 0.18) !important;
    color: var(--gothic-teal) !important;
}

:root.theme-gothic .ms-tool-btn:hover,
:root.theme-gothic .driver-popover-prev-btn:hover {
    background: rgba(0, 180, 216, 0.12) !important;
    border-color: rgba(0, 180, 216, 0.34) !important;
    color: var(--gothic-cyan) !important;
}

:root.theme-gothic .ms-avatar-preview,
:root.theme-gothic .ms-trigger-avatar,
:root.theme-gothic .profile-img-container,
:root.theme-gothic .preview-img,
:root.theme-gothic .ms-image-preview-circle {
    border-color: rgba(0, 180, 216, 0.24) !important;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(0, 180, 216, 0.12) !important;
}

:root.theme-gothic .stats-card:hover {
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(0, 180, 216, 0.12) !important;
}

:root.theme-gothic .stats-value,
:root.theme-gothic .stats-icon,
:root.theme-gothic #activityLogDetailModal .modal-title,
:root.theme-gothic #activityLogDetailModal h6,
:root.theme-gothic #activityLogDetailModal .text-secondary,
:root.theme-gothic .driver-popover-title {
    color: var(--gothic-teal) !important;
}

:root.theme-gothic .stats-label,
:root.theme-gothic .timeline-time,
:root.theme-gothic .driver-popover-progress-text,
:root.theme-gothic .driver-popover-close-btn,
:root.theme-gothic .text-white-50 {
    color: #a090c0 !important;
}

:root.theme-gothic .activity-timeline {
    border-color: rgba(0, 180, 216, 0.2) !important;
}

:root.theme-gothic .timeline-title,
:root.theme-gothic .driver-popover-description {
    color: #e0e0ff !important;
}

:root.theme-gothic .timeline-dot {
    border-color: var(--gothic-black) !important;
    box-shadow:
        0 0 0 2px rgba(0, 180, 216, 0.2),
        0 0 12px rgba(0, 180, 216, 0.18) !important;
}

:root.theme-gothic .progress-custom {
    background-color: rgba(0, 180, 216, 0.08) !important;
}

:root.theme-gothic .activitylog-page-card,
:root.theme-gothic #activityLogDetailModal .table-responsive {
    background: transparent !important;
}

:root.theme-gothic .ms-tooltip {
    --ms-tooltip-bg: rgba(10, 5, 16, 0.95);
    --ms-tooltip-color: var(--gothic-teal);
    --ms-tooltip-border: rgba(0, 180, 216, 0.22);
    background: rgba(10, 5, 16, 0.95) !important;
    color: var(--gothic-teal) !important;
    border-color: rgba(0, 180, 216, 0.22) !important;
}

:root.theme-gothic .driver-popover-next-btn {
    background: linear-gradient(90deg, rgba(0, 180, 216, 0.92), rgba(157, 78, 221, 0.84)) !important;
    border-color: rgba(0, 180, 216, 0.28) !important;
    color: var(--gothic-black) !important;
}

:root.theme-gothic .driver-popover-next-btn:hover {
    background: linear-gradient(90deg, rgba(0, 180, 216, 1), rgba(157, 78, 221, 0.94)) !important;
}

:root.theme-gothic .driver-popover-prev-btn {
    background: rgba(26, 16, 37, 0.95) !important;
    color: #d5d1eb !important;
    border-color: rgba(0, 180, 216, 0.14) !important;
}

:root.theme-gothic .driver-popover-close-btn:hover {
    color: var(--gothic-magenta) !important;
}

:root.theme-gothic .driver-popover-arrow {
    color: rgba(26, 16, 37, 0.98) !important;
}

:root.theme-gothic .text-bg-primary,
:root.theme-gothic .badge.text-bg-primary,
:root.theme-gothic .ms-system-settings-shell .text-bg-primary {
    background: linear-gradient(135deg, var(--gothic-teal) 0%, var(--gothic-purple) 100%) !important;
    color: var(--gothic-black) !important;
    border: 1px solid rgba(0, 180, 216, 0.24) !important;
    text-shadow: none !important;
}

:root.theme-gothic .sidebar-toolbar {
    border-top-color: rgba(0, 180, 216, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(224, 170, 255, 0.05), rgba(255, 255, 255, 0)),
        linear-gradient(to top, rgba(0, 180, 216, 0.18), rgba(10, 5, 16, 0.94)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 -10px 24px rgba(0, 0, 0, 0.28) !important;
}

:root.theme-gothic .sidebar-toolbar::before {
    border-color: rgba(0, 180, 216, 0.12) !important;
    background:
        linear-gradient(180deg, rgba(224, 170, 255, 0.07), rgba(255, 255, 255, 0.015)),
        repeating-linear-gradient(
            90deg,
            rgba(0, 180, 216, 0.05) 0 1px,
            transparent 1px 24px
        ) !important;
    box-shadow: inset 0 1px 0 rgba(224, 170, 255, 0.06) !important;
}

:root.theme-gothic .sidebar-toolbar-link,
:root.theme-gothic .reorder-toggle {
    color: rgba(224, 224, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(0, 180, 216, 0.14) !important;
    box-shadow:
        inset 0 1px 0 rgba(224, 170, 255, 0.05),
        0 5px 14px rgba(0, 0, 0, 0.22) !important;
}

:root.theme-gothic .sidebar-toolbar-link:hover,
:root.theme-gothic .reorder-toggle:hover,
:root.theme-gothic .reorder-toggle.active {
    color: var(--gothic-teal) !important;
    background:
        radial-gradient(circle at top, rgba(0, 180, 216, 0.18), transparent 70%),
        rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(0, 180, 216, 0.28) !important;
}

:root.theme-gothic .theme-arrow {
    color: var(--gothic-teal) !important;
}

:root.theme-gothic .sidebar-density-indicator {
    color: rgba(224, 224, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(0, 180, 216, 0.18) !important;
    box-shadow:
        inset 0 1px 0 rgba(224, 170, 255, 0.04),
        0 5px 14px rgba(0, 0, 0, 0.22) !important;
}

:root.theme-gothic .sidebar-density-indicator:hover {
    color: var(--gothic-teal) !important;
    background:
        radial-gradient(circle at top, rgba(0, 180, 216, 0.14), transparent 70%),
        rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(0, 180, 216, 0.32) !important;
}

:root.theme-gothic .sidebar-density-popup {
    background: linear-gradient(180deg, rgba(26, 16, 37, 0.98), rgba(10, 5, 16, 0.98)) !important;
    border-color: rgba(0, 180, 216, 0.2) !important;
    color: var(--title) !important;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.48),
        0 0 20px rgba(0, 180, 216, 0.08) !important;
}

:root.theme-gothic .sidebar-density-popup .small {
    color: var(--gothic-cyan) !important;
    border-bottom-color: rgba(0, 180, 216, 0.12) !important;
}

:root.theme-gothic .sidebar-density-chip {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(0, 180, 216, 0.18) !important;
    color: rgba(224, 224, 255, 0.55) !important;
}

:root.theme-gothic .sidebar-density-chip.is-active,
:root.theme-gothic .sidebar-density-chip:hover {
    color: var(--gothic-teal) !important;
    border-color: rgba(0, 180, 216, 0.32) !important;
    background: rgba(0, 180, 216, 0.1) !important;
}

:root.theme-gothic .current-theme-indicator {
    border-color: rgba(0, 180, 216, 0.42) !important;
    box-shadow:
        inset 0 0 0 1px rgba(224, 170, 255, 0.08),
        0 6px 16px rgba(0, 0, 0, 0.24),
        0 0 18px rgba(0, 180, 216, 0.12) !important;
}

:root.theme-gothic .theme-popup {
    background: linear-gradient(180deg, rgba(26, 16, 37, 0.98), rgba(10, 5, 16, 0.98)) !important;
    border-color: rgba(0, 180, 216, 0.2) !important;
    color: var(--title) !important;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.48),
        0 0 26px rgba(0, 180, 216, 0.1) !important;
}

:root.theme-gothic .theme-popup .small {
    color: var(--gothic-cyan) !important;
    border-bottom-color: rgba(0, 180, 216, 0.12) !important;
}

:root.theme-gothic .theme-option-circle {
    border-color: rgba(0, 180, 216, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 180, 216, 0.16) !important;
}

:root.theme-gothic .theme-option-circle.active {
    border-color: var(--gothic-teal) !important;
    box-shadow:
        0 0 0 2px var(--gothic-black),
        0 0 0 4px var(--gothic-teal),
        0 0 18px rgba(0, 180, 216, 0.28) !important;
}

.theme-gothic .theme-option-circle {
    border-color: rgba(0, 180, 216, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 180, 216, 0.16) !important;
}

.theme-gothic .theme-option-circle.active {
    border-color: var(--gothic-teal) !important;
    box-shadow:
        0 0 0 2px var(--gothic-black),
        0 0 0 4px var(--gothic-teal),
        0 0 18px rgba(0, 180, 216, 0.28) !important;
}

:root.theme-gothic .sidebar .list-group-item,
:root.theme-gothic .sidebar .accordion-button,
:root.theme-gothic .sidebar .accordion-item,
:root.theme-gothic .sidebar .accordion-body,
:root.theme-gothic .sidebar .group-url-btn,
.theme-gothic .sidebar .list-group-item,
.theme-gothic .sidebar .accordion-button,
.theme-gothic .sidebar .accordion-item,
.theme-gothic .sidebar .accordion-body,
.theme-gothic .sidebar .group-url-btn {
    border-width: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

:root.theme-gothic .sidebar .list-group-item.active,
:root.theme-gothic .sidebar .accordion-button:not(.collapsed),
.theme-gothic .sidebar .list-group-item.active,
.theme-gothic .sidebar .accordion-button:not(.collapsed) {
    border-left: none !important;
    box-shadow: none !important;
}

:root.theme-gothic .sidebar.collapsed .accordion-button.has-active-child,
.theme-gothic .sidebar.collapsed .accordion-button.has-active-child,
:root.theme-gothic .sidebar .list-group-item.active,
.theme-gothic .sidebar .list-group-item.active {
    border-left: none !important;
    box-shadow: none !important;
}

:root.theme-gothic .sidebar .accordion-button:not(.collapsed),
.theme-gothic .sidebar .accordion-button:not(.collapsed) {
    background:
        linear-gradient(180deg, rgba(224, 224, 255, 0.02), rgba(224, 224, 255, 0.006)),
        rgba(255, 255, 255, 0.018) !important;
    box-shadow:
        inset 0 1px 0 rgba(224, 224, 255, 0.045),
        inset 0 -1px 0 rgba(0, 0, 0, 0.16) !important;
}

:root.theme-gothic .sidebar.collapsed .accordion-button.has-active-child,
.theme-gothic .sidebar.collapsed .accordion-button.has-active-child {
    background:
        linear-gradient(180deg, rgba(224, 224, 255, 0.03), rgba(224, 224, 255, 0.008)),
        rgba(0, 180, 216, 0.055) !important;
    box-shadow:
        inset 0 1px 0 rgba(224, 224, 255, 0.04),
        inset 0 -1px 0 rgba(0, 180, 216, 0.055) !important;
}

/* 23. Tutorial Controls Bar */
:root.theme-gothic #tutorial-controls {
    --tut-bar-bg: rgba(18, 10, 26, 0.96);
    --tut-bar-border: var(--gothic-border);
    --tut-bar-shadow: rgba(10, 5, 16, 0.4);
    --tut-progress-color: var(--gothic-chrome);
    --tut-next-bg: linear-gradient(135deg, var(--gothic-teal), var(--gothic-cyan));
    --tut-next-bg-hover: linear-gradient(135deg, var(--gothic-purple), var(--gothic-violet));
    --tut-next-color: var(--gothic-black);
    --tut-next-shadow: rgba(0, 180, 216, 0.3);
    --tut-prev-bg: rgba(255, 255, 255, 0.05);
    --tut-prev-bg-hover: rgba(255, 255, 255, 0.1);
    --tut-prev-color: var(--gothic-silver);
    --tut-prev-border: var(--gothic-border);
    --tut-skip-color: #f87171;
    --tut-skip-border: rgba(248, 113, 113, 0.2);
    --tut-skip-bg-hover: rgba(248, 113, 113, 0.08);
}

:root.theme-gothic .tut-btn-next {
    background: var(--tut-next-bg) !important;
}

:root.theme-gothic .tut-btn-next:hover {
    background: var(--tut-next-bg-hover) !important;
}

/* 24. Titlebar Home Button */
:root.theme-gothic .titlebar .ms-titlebar-home,
:root.theme-gothic .titlebar .ms-login-round {
    color: #acb1d2 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(157, 78, 221, 0.18) !important;
    box-shadow: none !important;
}

:root.theme-gothic .titlebar .ms-titlebar-home:hover,
:root.theme-gothic .titlebar .ms-login-round:hover,
:root.theme-gothic .titlebar .ms-titlebar-home:focus,
:root.theme-gothic .titlebar .ms-login-round:focus,
:root.theme-gothic .titlebar .ms-titlebar-home:focus-visible,
:root.theme-gothic .titlebar .ms-login-round:focus-visible {
    color: var(--gothic-cyan) !important;
    background: rgba(0, 180, 216, 0.12) !important;
    border-color: rgba(0, 180, 216, 0.3) !important;
    box-shadow: 0 0 14px rgba(0, 180, 216, 0.15) !important;
}

/* Print - Disable effects */
@media print {
    :root.theme-gothic * {
        text-shadow: none !important;
        box-shadow: none !important;
    }

    :root.theme-gothic body::after,
    :root.theme-gothic::before {
        display: none !important;
    }
}
