/* ═══════════════════════════════════════════════════════════════════════════
   TERAPIJOS GIDAS — ADMINISTRATORIAUS PANELĖS TEMŲ SISTEMA (LIGHT & DARK MODE)
   Visiška tamsiosios temos integracija: jokių šviesių ar degančių langų
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --adm-bg: #f8fafc;
    --adm-surface: #ffffff;
    --adm-surface-subtle: #f1f5f9;
    --adm-surface-hover: #e2e8f0;
    --adm-border: #e2e8f0;
    --adm-border-subtle: #f1f5f9;
    --adm-text-main: #0f172a;
    --adm-text-secondary: #475569;
    --adm-text-muted: #64748b;
    --adm-brand: #2D6A4F;
    --adm-brand-hover: #1B4332;
    --adm-brand-light: rgba(45, 106, 79, 0.08);
    --adm-accent: #E07A5F;
    --adm-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ═══════════════════════════════════════════════════════════════════════════
   1. GLOBALŪS CSS KINTAMŲJŲ PERDENGIMAI TAMSIAM REŽIMUI
   Perdengiame styles.css kintamuosius, kad visi komponentai taptų tamsūs
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-theme="dark"],
body[data-theme="dark"],
:root[data-theme="dark"] {
    color-scheme: dark;
    --adm-bg: #0b111e;
    --adm-surface: #162032;
    --adm-surface-subtle: #1e293b;
    --adm-surface-hover: #273549;
    --adm-border: rgba(255, 255, 255, 0.09);
    --adm-border-subtle: rgba(255, 255, 255, 0.05);
    --adm-text-main: #f8fafc;
    --adm-text-secondary: #cbd5e1;
    --adm-text-muted: #94a3b8;
    --adm-brand: #34d399;
    --adm-brand-hover: #10b981;
    --adm-brand-light: rgba(52, 211, 153, 0.12);
    --adm-accent: #f87171;
    --adm-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

    /* styles.css kintamųjų pakeitimas į tamsius */
    --c-bg: #0b111e !important;
    --c-surface: #162032 !important;
    --c-border: rgba(255, 255, 255, 0.09) !important;
    --c-border-light: rgba(255, 255, 255, 0.05) !important;
    --c-text: #f8fafc !important;
    --c-text-light: #cbd5e1 !important;
    --c-text-muted: #94a3b8 !important;
    --c-primary-900: #f8fafc !important;
    --c-primary-700: #34d399 !important;
    --c-primary-500: #2D6A4F !important;
    --c-primary-300: #10b981 !important;
    --c-primary-100: rgba(52, 211, 153, 0.15) !important;
    --c-primary-50: rgba(52, 211, 153, 0.08) !important;
    --slate-900: #f8fafc !important;
    --slate-700: #cbd5e1 !important;
    --slate-500: #94a3b8 !important;
    --slate-300: #64748b !important;
    --slate-100: #1e293b !important;
    --slate-50: #162032 !important;

    background-color: #0b111e !important;
    color: #f8fafc !important;
}

/* ─── Temos mygtukas viršutinėje navigacijoje ─── */
.btn-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(45, 106, 79, 0.08);
    border: 1.5px solid rgba(45, 106, 79, 0.2);
    color: #2D6A4F;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.btn-theme-toggle:hover {
    background: rgba(45, 106, 79, 0.15);
    border-color: #2D6A4F;
    transform: translateY(-1px);
}
.btn-theme-toggle:active {
    transform: translateY(0);
}

html[data-theme="dark"] .btn-theme-toggle {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
html[data-theme="dark"] .btn-theme-toggle:hover {
    background: #243247 !important;
    border-color: #34d399 !important;
    color: #34d399 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. VIRŠUTINĖ NAVIGACIJOS JUOSTA (NAVBAR)
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-theme="dark"] .nav,
html[data-theme="dark"] .nav.scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .nav-logo {
    color: #f8fafc !important;
}

html[data-theme="dark"] .nav-links a {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a.active {
    color: #34d399 !important;
}

html[data-theme="dark"] #topNavRefreshBtn {
    background: rgba(52, 211, 153, 0.12) !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
    color: #34d399 !important;
}

html[data-theme="dark"] .nav-links {
    background: #162032 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. PAGRINDINIS ADMIN KONTEINERIS IR STATISTIKA
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-theme="dark"] body {
    background-color: #0b111e !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .admin-container {
    color: #f8fafc !important;
    background: transparent !important;
}

html[data-theme="dark"] .admin-header {
    background: linear-gradient(135deg, #132e24 0%, #0f172a 100%) !important;
    border: 1px solid rgba(52, 211, 153, 0.25) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .stat-card,
html[data-theme="dark"] div.stat-card {
    background: #162032 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .stat-card .stat-number,
html[data-theme="dark"] #totalSpecialists,
html[data-theme="dark"] #pendingApplications,
html[data-theme="dark"] #totalBookings {
    color: #34d399 !important;
}

html[data-theme="dark"] #pendingEthicalCount {
    color: #fb923c !important;
}

html[data-theme="dark"] .stat-card div {
    color: #94a3b8 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. IŠMANIOJI ADMIN NAVIGACIJOS SISTEMA IR TAB MYGTUKAI
   Visiškai pašaliname baltus mygtukus ir fonus
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-theme="dark"] .admin-nav-system {
    background: #162032 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .admin-tab-selector-icon {
    background: rgba(52, 211, 153, 0.15) !important;
    color: #34d399 !important;
}

html[data-theme="dark"] .admin-tab-selector-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .admin-tab-select {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .admin-tab-select:hover {
    border-color: #475569 !important;
    background: #243247 !important;
}
html[data-theme="dark"] .admin-tab-select:focus {
    border-color: #34d399 !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2) !important;
    background: #162032 !important;
}
html[data-theme="dark"] .admin-tab-select option,
html[data-theme="dark"] .admin-tab-select optgroup {
    background: #162032 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .admin-tab-select-wrap::after {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .admin-tab-quick-info {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .admin-tab-active-pill {
    background: rgba(52, 211, 153, 0.18) !important;
    color: #34d399 !important;
}

/* Slinkimo mygtukai (< ir >) */
html[data-theme="dark"] .tabs-scroll-btn {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}
html[data-theme="dark"] .tabs-scroll-btn:hover:not(:disabled) {
    background: #273549 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .tabs-scroll-btn:disabled {
    opacity: 0.25 !important;
    background: #162032 !important;
    border-color: #273549 !important;
    color: #64748b !important;
}

/* 🎯 TAB MYGTUKAI (pill buttons) — Nebėra jokių baltų mygtukų! */
html[data-theme="dark"] .tab-btn {
    background: #162032 !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .tab-btn:hover {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .tab-btn.active {
    background: #2D6A4F !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(45, 106, 79, 0.5) !important;
}
html[data-theme="dark"] .tab-btn.active:hover {
    background: #1B4332 !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .tab-btn.has-pending {
    background-color: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #fca5a5 !important;
}
html[data-theme="dark"] .tab-btn #specialistsTabCount {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .tab-btn.active #specialistsTabCount {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. LENTELĖS IR DUOMENŲ STRUKTŪROS (DATA TABLES)
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-theme="dark"] .data-table,
html[data-theme="dark"] table,
html[data-theme="dark"] .admin-table,
html[data-theme="dark"] .guardian-log-table {
    background: #162032 !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .data-table thead th,
html[data-theme="dark"] table thead th,
html[data-theme="dark"] .admin-table th,
html[data-theme="dark"] thead tr {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.09) !important;
    border-top: none !important;
}

html[data-theme="dark"] .data-table tbody td,
html[data-theme="dark"] table tbody td,
html[data-theme="dark"] .admin-table td {
    background: transparent !important;
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .data-table tbody tr:hover td,
html[data-theme="dark"] table tbody tr:hover td,
html[data-theme="dark"] .data-table tbody tr:hover,
html[data-theme="dark"] table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] .data-table tfoot td,
html[data-theme="dark"] table tfoot td,
html[data-theme="dark"] .data-table tfoot tr,
html[data-theme="dark"] table tfoot tr {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-top: 2px solid rgba(255, 255, 255, 0.09) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. FORMŲ ĮVESTYS, FILTRAI, DROPDOWNS IR PAIEŠKA
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .form-input,
html[data-theme="dark"] .form-select {
    background: #162032 !important;
    border: 1.5px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #64748b !important;
    opacity: 0.85;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
    border-color: #34d399 !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2) !important;
    outline: none !important;
    background: #1e293b !important;
}

html[data-theme="dark"] select option,
html[data-theme="dark"] select optgroup {
    background: #162032 !important;
    color: #f8fafc !important;
}

/* Specialistų skaičiaus informacinė juosta */
html[data-theme="dark"] #specialistsCountInfo {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. STATUSŲ ŽYMOS IR PLANŲ BADGES
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-theme="dark"] .status-pending {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

html[data-theme="dark"] .status-approved,
html[data-theme="dark"] .status-confirmed {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .status-rejected,
html[data-theme="dark"] .status-cancelled {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

html[data-theme="dark"] .status-completed {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

html[data-theme="dark"] .status-no-show {
    background: rgba(148, 163, 184, 0.15) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

html[data-theme="dark"] .status-past {
    background: rgba(251, 146, 60, 0.15) !important;
    color: #fb923c !important;
    border: 1px solid rgba(251, 146, 60, 0.35) !important;
}

html[data-theme="dark"] .plan-badge.plan-premium {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

html[data-theme="dark"] .plan-badge.plan-pro {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #a5b4fc !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
}

html[data-theme="dark"] .plan-badge.plan-basic {
    background: rgba(148, 163, 184, 0.15) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. ANALITIKOS TAB'AS IR KORTELĖS
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-theme="dark"] .analytics-card,
html[data-theme="dark"] .analytics-section-card {
    background: #162032 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .analytics-card-title {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .analytics-card-value {
    color: #f8fafc !important;
}

html[data-theme="dark"] .growth-recommendation-item {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border-left: 4px solid #34d399 !important;
}
html[data-theme="dark"] .growth-recommendation-item.warning {
    background: rgba(245, 158, 11, 0.1) !important;
    border-left-color: #f59e0b !important;
}
html[data-theme="dark"] .growth-recommendation-item.success {
    background: rgba(34, 197, 94, 0.1) !important;
    border-left-color: #22c55e !important;
}

html[data-theme="dark"] .funnel-period-btn {
    background: transparent !important;
    color: #94a3b8 !important;
}
html[data-theme="dark"] .funnel-period-btn.active {
    background: #2D6A4F !important;
    color: #ffffff !important;
}

html[data-theme="dark"] #funnelMainPeriodLabel {
    background: #1e293b !important;
    color: #34d399 !important;
}

html[data-theme="dark"] .plan-progress-bar {
    background-color: #334155 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. MODALINIAI LANGAI IR DIALOGAI
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-theme="dark"] .modal-overlay,
html[data-theme="dark"] #ADMIN_MODAL_FIXED,
html[data-theme="dark"] #EMAIL_TEMPLATE_MODAL,
html[data-theme="dark"] #ETHICAL_REJECT_MODAL,
html[data-theme="dark"] #auditDetailsModalFixed {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
}

html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .modal-box,
html[data-theme="dark"] #ADMIN_MODAL_FIXED > div,
html[data-theme="dark"] #EMAIL_TEMPLATE_MODAL > div,
html[data-theme="dark"] #ETHICAL_REJECT_MODAL > div,
html[data-theme="dark"] #auditDetailsModalFixed > div {
    background: #162032 !important;
    color: #f8fafc !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] #ETHICAL_REJECT_MODAL textarea,
html[data-theme="dark"] #ETHICAL_REJECT_MODAL input,
html[data-theme="dark"] #EMAIL_TEMPLATE_MODAL select,
html[data-theme="dark"] #EMAIL_TEMPLATE_MODAL input,
html[data-theme="dark"] #EMAIL_TEMPLATE_MODAL textarea,
html[data-theme="dark"] #ADMIN_MODAL_FIXED input,
html[data-theme="dark"] #ADMIN_MODAL_FIXED select,
html[data-theme="dark"] #ADMIN_MODAL_FIXED textarea {
    background: #0b111e !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] #ETHICAL_REJECT_MODAL button[onclick*="closeEthicalRejectionModal"],
html[data-theme="dark"] #EMAIL_TEMPLATE_MODAL button[onclick*="closeEmailModal"],
html[data-theme="dark"] #ADMIN_MODAL_FIXED button[onclick*="closeAdminModal"] {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] #ADMIN_MODAL_FIXED div[style*="border-bottom:1px solid #eee"],
html[data-theme="dark"] #ADMIN_MODAL_FIXED div[style*="border-bottom: 1px solid #eee"],
html[data-theme="dark"] #ADMIN_MODAL_FIXED div[style*="border-bottom"] {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .modal-content h1,
html[data-theme="dark"] .modal-content h2,
html[data-theme="dark"] .modal-content h3,
html[data-theme="dark"] .modal-box h2,
html[data-theme="dark"] .modal-box h3,
html[data-theme="dark"] #adminModalTitle,
html[data-theme="dark"] #emailModalTitle {
    color: #f8fafc !important;
}

html[data-theme="dark"] .modal-content p,
html[data-theme="dark"] .modal-content label,
html[data-theme="dark"] .modal-content span,
html[data-theme="dark"] .modal-box p,
html[data-theme="dark"] .modal-box label,
html[data-theme="dark"] #adminModalBody {
    color: #cbd5e1 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. UNIVERSALŪS INLINE STILIŲ ŽUDIKAI (VISIEMS ELEMENTAMS)
   Užtikrina, kad joks HTML elementas neturėtų degančio balto fono
   ═══════════════════════════════════════════════════════════════════════════ */

/* Visi balti / šviesiai pilki fonai -> tamsi paletė */
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: white"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:white"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #ffffff"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#ffffff"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #fff"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#fff"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #f8fafc"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#f8fafc"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #f1f5f9"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#f1f5f9"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #f3f4f6"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#f3f4f6"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #e2e8f0"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#e2e8f0"] {
    background: #162032 !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    color: #f8fafc !important;
}

/* Švelniai žali fonai (sėkmė, patvirtinta) */
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #f0fdf4"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#f0fdf4"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #dcfce7"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#dcfce7"] {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}

/* Švelniai oranžiniai / geltoni fonai (įspėjimai, laukiantys) */
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #fff7ed"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#fff7ed"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #fffbeb"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#fffbeb"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #fef3c7"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#fef3c7"] {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #fbbf24 !important;
}

/* Švelniai raudoni fonai (klaidos, atmesti) */
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #fee2e2"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#fee2e2"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #fef2f2"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#fef2f2"] {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #f87171 !important;
}

/* Švelniai žydri / cyan / teal fonai (dok. peržiūros, sesijos, info pranešimai) */
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #f0fdfa"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#f0fdfa"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #ccfbf1"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#ccfbf1"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #99f6e4"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#99f6e4"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #e0f2fe"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#e0f2fe"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #ecfeff"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#ecfeff"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #f0f9ff"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#f0f9ff"] {
    background: rgba(13, 148, 136, 0.14) !important;
    border-color: rgba(20, 184, 166, 0.28) !important;
    color: #5eead4 !important;
}

/* Švelniai mėlyni / violetiniai fonai */
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #eff6ff"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#eff6ff"] {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.28) !important;
    color: #93c5fd !important;
}
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background: #faf5ff"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, thead, tbody, section, header, aside, article, li, ul, form, select, input, textarea)[style*="background:#faf5ff"] {
    background: rgba(168, 85, 247, 0.12) !important;
    border-color: rgba(168, 85, 247, 0.28) !important;
    color: #c084fc !important;
}

/* Šviesių rėmelių pavertimas į subtilius tamsius */
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, section, header, aside, article, li, ul, form, select, input, textarea)[style*="border: 1px solid var(--c-border)"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, section, header, aside, article, li, ul, form, select, input, textarea)[style*="border:1px solid var(--c-border)"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, section, header, aside, article, li, ul, form, select, input, textarea)[style*="border: 1px solid #99f6e4"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, section, header, aside, article, li, ul, form, select, input, textarea)[style*="border:1px solid #99f6e4"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, section, header, aside, article, li, ul, form, select, input, textarea)[style*="border: 1px solid #bbf7d0"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, section, header, aside, article, li, ul, form, select, input, textarea)[style*="border:1px solid #bbf7d0"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, section, header, aside, article, li, ul, form, select, input, textarea)[style*="border: 1px solid #e2e8f0"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, section, header, aside, article, li, ul, form, select, input, textarea)[style*="border:1px solid #e2e8f0"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, section, header, aside, article, li, ul, form, select, input, textarea)[style*="border: 1px solid #cbd5e1"],
html[data-theme="dark"] :is(div, label, span, p, button, a, tr, td, th, section, header, aside, article, li, ul, form, select, input, textarea)[style*="border:1px solid #cbd5e1"] {
    border-color: rgba(255, 255, 255, 0.09) !important;
}

/* Tamsių tekstų pavertimas į šviesius */
html[data-theme="dark"] :is(span, p, h1, h2, h3, h4, h5, h6, strong, b, div, label, a, td, th)[style*="color: #1e293b"],
html[data-theme="dark"] :is(span, p, h1, h2, h3, h4, h5, h6, strong, b, div, label, a, td, th)[style*="color:#1e293b"],
html[data-theme="dark"] :is(span, p, h1, h2, h3, h4, h5, h6, strong, b, div, label, a, td, th)[style*="color: #0f172a"],
html[data-theme="dark"] :is(span, p, h1, h2, h3, h4, h5, h6, strong, b, div, label, a, td, th)[style*="color:#0f172a"],
html[data-theme="dark"] :is(span, p, h1, h2, h3, h4, h5, h6, strong, b, div, label, a, td, th)[style*="color: #1a1c1e"],
html[data-theme="dark"] :is(span, p, h1, h2, h3, h4, h5, h6, strong, b, div, label, a, td, th)[style*="color:#1a1c1e"],
html[data-theme="dark"] :is(span, p, h1, h2, h3, h4, h5, h6, strong, b, div, label, a, td, th)[style*="color: #1a202c"],
html[data-theme="dark"] :is(span, p, h1, h2, h3, h4, h5, h6, strong, b, div, label, a, td, th)[style*="color:#1a202c"],
html[data-theme="dark"] :is(span, p, h1, h2, h3, h4, h5, h6, strong, b, div, label, a, td, th)[style*="color: #1B4332"],
html[data-theme="dark"] :is(span, p, h1, h2, h3, h4, h5, h6, strong, b, div, label, a, td, th)[style*="color:#1B4332"],
html[data-theme="dark"] :is(span, p, h1, h2, h3, h4, h5, h6, strong, b, div, label, a, td, th)[style*="color: #111827"],
html[data-theme="dark"] :is(span, p, h1, h2, h3, h4, h5, h6, strong, b, div, label, a, td, th)[style*="color:#111827"] {
    color: #f8fafc !important;
}

/* Pilkų tekstų pavertimas į švelniai šviesius */
html[data-theme="dark"] :is(span, p, small, label, div, td, th)[style*="color: #475569"],
html[data-theme="dark"] :is(span, p, small, label, div, td, th)[style*="color:#475569"],
html[data-theme="dark"] :is(span, p, small, label, div, td, th)[style*="color: #64748b"],
html[data-theme="dark"] :is(span, p, small, label, div, td, th)[style*="color:#64748b"],
html[data-theme="dark"] :is(span, p, small, label, div, td, th)[style*="color:var(--c-text-muted)"] {
    color: #94a3b8 !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .doc-link {
    color: #34d399 !important;
}

/* Tamsūs scrollbarai Windows Chrome/Edge */
html[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: #0b111e;
}
html[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #0f172a;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #24344d;
    border-radius: 4px;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #334866;
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. ADMINISTRATORIAUS VEIKSMŲ ŽURNALAS (AUDIT TRAIL) & SKROLINIMAS
   ═══════════════════════════════════════════════════════════════════════════ */
.admin-audit-scroll-container {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid var(--c-border, #e2e8f0);
    border-radius: 8px;
    scrollbar-width: thin;
    position: relative;
}
.admin-audit-thead-tr {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f8fafc;
    color: #475569;
}
.admin-log-filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: white;
    color: #334155;
    transition: all 0.15s ease;
}
.admin-log-filter-btn:hover {
    background: #f1f5f9;
}
.admin-log-filter-btn.active {
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #ffffff !important;
}
.admin-log-row {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}
.admin-log-row:hover {
    background: rgba(0, 0, 0, 0.02);
}
.admin-log-row-doc {
    background: rgba(13, 148, 136, 0.06);
}

/* Tamsios temos taisyklės veiksmų žurnalui */
html[data-theme="dark"] .admin-audit-scroll-container {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: #0f172a !important;
}
html[data-theme="dark"] .admin-audit-thead-tr {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .admin-audit-thead-tr th {
    background: #1e293b !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .admin-log-filter-btn {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}
html[data-theme="dark"] .admin-log-filter-btn:hover {
    background: #334155;
}
html[data-theme="dark"] .admin-log-filter-btn.active {
    background: #0f766e !important;
    border-color: #14b8a6 !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .admin-log-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: transparent;
}
html[data-theme="dark"] .admin-log-row:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}
html[data-theme="dark"] .admin-log-row-doc {
    background: rgba(13, 148, 136, 0.14) !important;
}
html[data-theme="dark"] .admin-log-row-doc td {
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .admin-log-admin-email {
    color: #f8fafc !important;
}
html[data-theme="dark"] .admin-log-action-doc {
    color: #2dd4bf !important;
}
html[data-theme="dark"] .admin-log-action-default {
    color: #93c5fd !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. KONVERSIJŲ CENTRAS (CONVERSION FUNNEL) - TAMSUS REŽIMAS
   Visiškai pašalinami balti langai ir kortelės
   ═══════════════════════════════════════════════════════════════════════════ */
html[data-theme="dark"] .cf-header-card {
    background: linear-gradient(135deg, #132e24 0%, #0f172a 100%) !important;
    border: 1px solid rgba(52, 211, 153, 0.25) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .cf-kpi-card {
    background: #162032 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .cf-kpi-title {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .cf-kpi-value {
    color: #f8fafc !important;
}
html[data-theme="dark"] .cf-kpi-sub {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .cf-section-card {
    background: #162032 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .cf-section-card h3,
html[data-theme="dark"] .cf-section-card h4 {
    color: #f8fafc !important;
}
html[data-theme="dark"] .cf-section-card p {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .cf-step-row {
    background: #162032 !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .cf-step-row:hover {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}
html[data-theme="dark"] .cf-step-num {
    background: rgba(52, 211, 153, 0.15) !important;
    color: #34d399 !important;
}
html[data-theme="dark"] .cf-step-label {
    color: #f8fafc !important;
}
html[data-theme="dark"] .cf-step-desc {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .cf-step-val {
    color: #34d399 !important;
}
html[data-theme="dark"] .cf-step-row[data-step="4"] .cf-step-num {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
}
html[data-theme="dark"] .cf-step-row[data-step="5"] .cf-step-num {
    background: rgba(14, 165, 233, 0.15) !important;
    color: #38bdf8 !important;
}
html[data-theme="dark"] .cf-step-row[data-step="6"] .cf-step-num {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}
html[data-theme="dark"] .cf-step-row[data-step="7"] .cf-step-num {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
}
html[data-theme="dark"] .cf-filters-panel {
    background: #162032 !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}
html[data-theme="dark"] .cf-filters-panel span,
html[data-theme="dark"] .cf-filters-panel label {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .cf-period-wrap {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
}
html[data-theme="dark"] .fc-period-btn {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .fc-period-btn:hover {
    color: #f8fafc !important;
}
html[data-theme="dark"] .fc-period-btn.active {
    background: #10b981 !important;
    color: #0b111e !important;
    font-weight: 700 !important;
}
html[data-theme="dark"] select.cf-select {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}
html[data-theme="dark"] .cf-emergency-badge {
    background: rgba(225, 29, 72, 0.15) !important;
    color: #fb7185 !important;
    border-color: rgba(225, 29, 72, 0.3) !important;
}
html[data-theme="dark"] .cf-bottleneck-success {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
    color: #34d399 !important;
}
html[data-theme="dark"] .cf-bottleneck-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #fbbf24 !important;
}
html[data-theme="dark"] .cf-bottleneck-critical {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #f87171 !important;
}
html[data-theme="dark"] .cf-bottleneck-alert h4 {
    color: inherit !important;
}
html[data-theme="dark"] .cf-bottleneck-alert p {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .cf-section-card table th {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .cf-section-card table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .cf-section-card table tr:hover td {
    background: rgba(255, 255, 255, 0.04) !important;
}

