/* Symbol Detail — dark theme (builds on rsi-page-dark.css) */

body.rsi-dark-page {
    background: #0b0f14 !important;
    color: #e2e8f0 !important;
    padding-top: 70px !important;
}

.rsi-dark-page .page-wrap {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 16px 40px;
    flex: 1;
    box-sizing: border-box;
}

.rsi-dark-page .panel {
    background: #141b26 !important;
    border: 1px solid #2a3544 !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
    padding: 18px 20px !important;
    margin-bottom: 18px !important;
}

.rsi-dark-page .panel--hero {
    border-top: 3px solid #3b82f6 !important;
}

.rsi-dark-page .sd-page-title {
    margin: 0 0 8px;
    font-size: 1.65rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.rsi-dark-page .sd-page-title i {
    margin-right: 10px;
    color: #60a5fa;
}

.rsi-dark-page .sd-page-lead {
    margin: 0 0 16px;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.rsi-dark-page .snapshot-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
}

.rsi-dark-page .header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

.rsi-dark-page .header-grid .form-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}

.rsi-dark-page .form-control {
    min-height: 44px;
    background: #0c1219 !important;
    border: 1px solid #2a3544 !important;
    border-radius: 10px !important;
    color: #f1f5f9 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.rsi-dark-page .form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    background: #0f1724 !important;
}

.rsi-dark-page .form-control::placeholder {
    color: #64748b !important;
}

.rsi-dark-page #loadBtn {
    min-height: 44px;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: 1px solid #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.rsi-dark-page #loadBtn:hover {
    filter: brightness(1.08);
}

.rsi-dark-page .btn-outline-primary {
    min-height: 44px;
    font-weight: 700;
    border-radius: 10px !important;
    border: 1px solid #2a3544 !important;
    background: #1a2332 !important;
    color: #93c5fd !important;
}

.rsi-dark-page .btn-outline-primary:hover {
    background: #243044 !important;
    border-color: #3b4a5e !important;
    color: #bfdbfe !important;
}

.rsi-dark-page .cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 14px;
}

.rsi-dark-page .tf-card {
    background: #0c1219 !important;
    border: 1px solid #2a3544 !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    min-width: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rsi-dark-page .tf-card:hover {
    border-color: #3b4a5e !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.rsi-dark-page .tf-card:nth-child(1) { border-top: 3px solid #34d399; }
.rsi-dark-page .tf-card:nth-child(2) { border-top: 3px solid #60a5fa; }
.rsi-dark-page .tf-card:nth-child(3) { border-top: 3px solid #fbbf24; }
.rsi-dark-page .tf-card:nth-child(4) { border-top: 3px solid #f87171; }

.rsi-dark-page .tf-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.rsi-dark-page .tf-title h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.3;
    word-break: break-word;
}

.rsi-dark-page .pill {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.rsi-dark-page .sig-long {
    background: rgba(52, 211, 153, 0.12) !important;
    color: #6ee7b7 !important;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.rsi-dark-page .sig-short {
    background: rgba(248, 113, 113, 0.12) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.rsi-dark-page .sig-neutral {
    background: rgba(148, 163, 184, 0.1) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.rsi-dark-page .kv {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    font-size: 0.85rem;
    border-bottom: 1px dashed #2a3544;
    padding: 6px 0;
    align-items: baseline;
}

.rsi-dark-page .kv:last-child {
    border-bottom: 0;
}

.rsi-dark-page .kv strong {
    color: #e2e8f0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rsi-dark-page .muted {
    color: #64748b !important;
}

.rsi-dark-page .snapshot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rsi-dark-page .history-wrap {
    max-height: 48vh;
    overflow: auto;
    border: 1px solid #2a3544;
    border-radius: 10px;
    background: #0c1219;
}

.rsi-dark-page .history-table {
    width: 100%;
    border-collapse: collapse;
    background: #0c1219;
}

.rsi-dark-page .history-table th {
    background: #1a2332;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 8px;
    border-bottom: 1px solid #2a3544;
}

.rsi-dark-page .history-table td {
    border-bottom: 1px solid #1e2936;
    padding: 8px;
    font-size: 0.86rem;
    color: #cbd5e1;
}

.rsi-dark-page .history-table tbody tr:nth-child(even) {
    background: #0f1520;
}

.rsi-dark-page .history-table tbody tr:hover {
    background: #1a2332;
}

@media (max-width: 1100px) {
    .rsi-dark-page .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rsi-dark-page .header-grid {
        grid-template-columns: 1fr;
    }

    .rsi-dark-page #loadBtn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .rsi-dark-page .page-wrap {
        padding: 14px 10px 32px;
    }

    .rsi-dark-page .panel {
        padding: 14px !important;
    }

    .rsi-dark-page .cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rsi-dark-page .snapshot-header {
        flex-direction: column;
        align-items: stretch;
    }

    .rsi-dark-page .snapshot-header .btn,
    .rsi-dark-page #loadBtn {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .rsi-dark-page .tf-title {
        flex-direction: column;
        align-items: flex-start;
    }
}
