/* Indicator Filter – dark theme (extends screener-page-dark.css) */

body.rsi-dark-page.indicator-filter-page {
    background: #0b0f14 !important;
    color: #e2e8f0 !important;
}

body.rsi-dark-page.indicator-filter-page .container-fluid {
    background: transparent !important;
}

/* Filter panel */
body.rsi-dark-page.indicator-filter-page .if-filter-panel {
    background: #141b26 !important;
    border-color: #2a3544 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

body.rsi-dark-page.indicator-filter-page .if-filter-actions #addCondition {
    background: #1a2332 !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

body.rsi-dark-page.indicator-filter-page .if-filter-actions #addCondition:hover {
    background: #243044 !important;
}

body.rsi-dark-page.indicator-filter-page .if-filter-actions #applyFilter {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

body.rsi-dark-page.indicator-filter-page .if-strategy-row .form-control,
body.rsi-dark-page.indicator-filter-page .if-strategy-row .form-select {
    background: #0c1219 !important;
    border-color: #2a3544 !important;
    color: #e2e8f0 !important;
}

body.rsi-dark-page.indicator-filter-page .if-strategy-row .form-control:focus,
body.rsi-dark-page.indicator-filter-page .if-strategy-row .form-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

body.rsi-dark-page.indicator-filter-page .if-strategy-btns .btn {
    background: #1a2332 !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

body.rsi-dark-page.indicator-filter-page .if-strategy-btns .btn:hover {
    background: #243044 !important;
    color: #e2e8f0 !important;
}

body.rsi-dark-page.indicator-filter-page .if-strategy-btns .btn-outline-primary {
    background: transparent !important;
    color: #60a5fa !important;
    border-color: #3b82f6 !important;
}

body.rsi-dark-page.indicator-filter-page .if-strategy-btns .btn-outline-danger {
    background: transparent !important;
    color: #f87171 !important;
    border-color: #ef4444 !important;
}

body.rsi-dark-page.indicator-filter-page #strategyFeedback {
    color: #64748b !important;
}

/* Filter condition cards – dark overrides */
body.rsi-dark-page.indicator-filter-page .filter-condition {
    background: #0c1219 !important;
    border-color: #2a3544 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

body.rsi-dark-page.indicator-filter-page .filter-condition:hover {
    border-color: rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12) !important;
}

body.rsi-dark-page.indicator-filter-page .filter-group select,
body.rsi-dark-page.indicator-filter-page .filter-group input {
    background-color: #141b26 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.rsi-dark-page.indicator-filter-page .filter-group select:hover,
body.rsi-dark-page.indicator-filter-page .filter-group input:hover {
    border-color: #6366f1 !important;
    background-color: #1a2332 !important;
}

body.rsi-dark-page.indicator-filter-page .filter-indicator {
    color: #a5b4fc !important;
    background: linear-gradient(145deg, #1e1b4b 0%, #1a2332 100%) !important;
    border-color: #4338ca !important;
}

body.rsi-dark-page.indicator-filter-page .filter-operator {
    color: #94a3b8 !important;
    background: linear-gradient(145deg, #141b26 0%, #1a2332 100%) !important;
    border-color: #334155 !important;
}

body.rsi-dark-page.indicator-filter-page .filter-value {
    color: #e2e8f0 !important;
    background: #141b26 !important;
    border-color: #334155 !important;
}

body.rsi-dark-page.indicator-filter-page .logic-toggle {
    background: #1a2332 !important;
    border-color: #334155 !important;
}

body.rsi-dark-page.indicator-filter-page .logic-btn.and {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

body.rsi-dark-page.indicator-filter-page .logic-btn.and.active {
    background: #059669 !important;
    color: #fff !important;
    border-color: #059669 !important;
}

body.rsi-dark-page.indicator-filter-page .logic-btn.or {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

body.rsi-dark-page.indicator-filter-page .logic-btn.or.active {
    background: #dc2626 !important;
    color: #fff !important;
    border-color: #dc2626 !important;
}

body.rsi-dark-page.indicator-filter-page .remove-condition {
    background: #141b26 !important;
    border-color: #334155 !important;
    color: #64748b !important;
}

body.rsi-dark-page.indicator-filter-page .remove-condition:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
}

body.rsi-dark-page.indicator-filter-page .condition-chip.chip-long {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, #0c1219 50%) !important;
}

body.rsi-dark-page.indicator-filter-page .condition-chip.chip-short {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, #0c1219 55%) !important;
}

body.rsi-dark-page.indicator-filter-page .condition-chip.chip-neutral {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.08) 0%, #0c1219 55%) !important;
}

body.rsi-dark-page.indicator-filter-page .select-long {
    color: #6ee7b7 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

body.rsi-dark-page.indicator-filter-page .select-short {
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

body.rsi-dark-page.indicator-filter-page .select-neutral {
    color: #94a3b8 !important;
    background: rgba(100, 116, 139, 0.15) !important;
    border-color: #475569 !important;
}

/* Results panel */
body.rsi-dark-page.indicator-filter-page {
    overflow-x: visible !important;
}

body.rsi-dark-page.indicator-filter-page .container-fluid,
body.rsi-dark-page.indicator-filter-page #indicator-filter-main-content {
    overflow: visible !important;
}

body.rsi-dark-page.indicator-filter-page .if-results-header {
    background: #1a2332 !important;
    border-color: #2a3544 !important;
    color: #f1f5f9 !important;
}

body.rsi-dark-page.indicator-filter-page .if-results-table-wrap {
    border-color: #2a3544 !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable {
    overflow: visible !important;
}

body.rsi-dark-page.indicator-filter-page .screener-table-wrap {
    background: #0c1219 !important;
    border-color: #2a3544 !important;
    max-height: min(62vh, calc(100vh - 300px)) !important;
    overflow: auto !important;
    overscroll-behavior: contain;
}

body.rsi-dark-page.indicator-filter-page .screener-table-wrap::after {
    color: #64748b !important;
    background: #0c1219 !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable {
    width: max-content !important;
    min-width: 100% !important;
    margin: 0 !important;
    background: #0c1219 !important;
    color: #e2e8f0 !important;
    table-layout: auto !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 4 !important;
    background: #1a2332 !important;
    color: #94a3b8 !important;
    border-color: #2a3544 !important;
    box-shadow: 0 1px 0 #2a3544 !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable th:first-child,
body.rsi-dark-page.indicator-filter-page #resultsTable td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 3 !important;
    box-shadow: 4px 0 14px rgba(0, 0, 0, 0.45) !important;
    border-right: 1px solid #2a3544 !important;
    isolation: isolate;
}

body.rsi-dark-page.indicator-filter-page #resultsTable thead th:first-child {
    z-index: 8 !important;
    top: 0 !important;
    left: 0 !important;
    background-color: #1a2332 !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable td:first-child::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #0c1219;
    z-index: -1;
    pointer-events: none;
}

body.rsi-dark-page.indicator-filter-page #resultsTable tbody tr:nth-child(even) td:first-child::before {
    background-color: #0f172a;
}

body.rsi-dark-page.indicator-filter-page #resultsTable tbody tr:hover td:first-child::before {
    background-color: #131c2e;
}

body.rsi-dark-page.indicator-filter-page #resultsTable td:not(:first-child) {
    background-color: transparent !important;
    color: #e2e8f0 !important;
    border-color: #1e293b !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable td:first-child {
    background-color: #0c1219 !important;
    color: #93c5fd !important;
    border-color: #1e293b !important;
    font-weight: 600 !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable tbody tr {
    background: transparent !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable tbody tr:nth-child(even) td:not(:first-child) {
    background-color: rgba(15, 23, 42, 0.55) !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable tbody tr:nth-child(even) td:first-child {
    background-color: #0f172a !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable tbody tr:hover td:not(:first-child) {
    background-color: rgba(59, 130, 246, 0.08) !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable tbody tr:hover td:first-child {
    background-color: #131c2e !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable td:first-child a,
body.rsi-dark-page.indicator-filter-page #resultsTable td:first-child .symbol-link {
    color: #93c5fd !important;
    text-decoration: none !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable td:first-child a:hover {
    color: #bfdbfe !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable .signal-pill.bg-green {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #6ee7b7 !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable .signal-pill.bg-red {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable .signal-pill.bg-yellow {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fcd34d !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable .signal-pill.bg-gray {
    background: rgba(100, 116, 139, 0.22) !important;
    color: #cbd5e1 !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable td.cell-tone-bull {
    background: rgba(34, 197, 94, 0.16) !important;
    color: #6ee7b7 !important;
}

body.rsi-dark-page.indicator-filter-page #resultsTable td.cell-tone-bear {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #fca5a5 !important;
}

@media (min-width: 1024px) {
    body.rsi-dark-page.indicator-filter-page #resultsTable th:first-child,
    body.rsi-dark-page.indicator-filter-page #resultsTable td:first-child {
        position: sticky !important;
        left: 0 !important;
        z-index: 3 !important;
    }

    body.rsi-dark-page.indicator-filter-page #resultsTable thead th:first-child {
        z-index: 8 !important;
    }
}

/* SEO sections */
body.rsi-dark-page.indicator-filter-page .if-seo-card {
    background: #141b26 !important;
    border-color: #2a3544 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
}

body.rsi-dark-page.indicator-filter-page .if-seo-card h2 {
    color: #f1f5f9 !important;
}

body.rsi-dark-page.indicator-filter-page .if-seo-card h3 {
    color: #cbd5e1 !important;
}

body.rsi-dark-page.indicator-filter-page .if-seo-card p,
body.rsi-dark-page.indicator-filter-page .if-seo-card li {
    color: #94a3b8 !important;
}

body.rsi-dark-page.indicator-filter-page .if-seo-card a {
    color: #60a5fa !important;
}

body.rsi-dark-page.indicator-filter-page .if-seo-card .if-tip {
    background: rgba(37, 99, 235, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #93c5fd !important;
}

body.rsi-dark-page.indicator-filter-page .if-seo-card .if-note {
    color: #64748b !important;
}

body.rsi-dark-page.indicator-filter-page .accordion-item {
    background: #0c1219 !important;
    border-color: #2a3544 !important;
}

body.rsi-dark-page.indicator-filter-page .accordion-button {
    background: #141b26 !important;
    color: #e2e8f0 !important;
}

body.rsi-dark-page.indicator-filter-page .accordion-button:not(.collapsed) {
    background: #1e293b !important;
    color: #60a5fa !important;
}

body.rsi-dark-page.indicator-filter-page .accordion-body {
    background: #0c1219 !important;
    color: #94a3b8 !important;
}

body.rsi-dark-page.indicator-filter-page .loading-message {
    color: #60a5fa !important;
}

body.rsi-dark-page.indicator-filter-page .preloader {
    background: #0b0f14 !important;
}

body.rsi-dark-page.indicator-filter-page .preloader .spinner {
    border-color: #1e293b !important;
    border-top-color: #3b82f6 !important;
}

body.rsi-dark-page.indicator-filter-page .condition-timeframe .timeframe-btn,
body.rsi-dark-page.indicator-filter-page .condition-timeframe .condition-timeframe-btn {
    background: #1e293b !important;
    color: #94a3b8 !important;
    border-color: #2a3544 !important;
}

body.rsi-dark-page.indicator-filter-page .condition-timeframe .timeframe-btn.active[data-timeframe="15m"],
body.rsi-dark-page.indicator-filter-page .condition-timeframe .condition-timeframe-btn.active[data-timeframe="15m"] {
    background: #22c55e !important;
    color: #fff !important;
    border-color: #22c55e !important;
}

body.rsi-dark-page.indicator-filter-page .condition-timeframe .timeframe-btn.active[data-timeframe="1h"],
body.rsi-dark-page.indicator-filter-page .condition-timeframe .condition-timeframe-btn.active[data-timeframe="1h"] {
    background: #3b82f6 !important;
    color: #fff !important;
    border-color: #3b82f6 !important;
}

body.rsi-dark-page.indicator-filter-page .condition-timeframe .timeframe-btn.active[data-timeframe="4h"],
body.rsi-dark-page.indicator-filter-page .condition-timeframe .condition-timeframe-btn.active[data-timeframe="4h"] {
    background: #f97316 !important;
    color: #fff !important;
    border-color: #f97316 !important;
}

body.rsi-dark-page.indicator-filter-page .condition-timeframe .timeframe-btn.active[data-timeframe="1d"],
body.rsi-dark-page.indicator-filter-page .condition-timeframe .condition-timeframe-btn.active[data-timeframe="1d"] {
    background: #ef4444 !important;
    color: #fff !important;
    border-color: #ef4444 !important;
}
