/* GammaScope - Dark Theme */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
}

/* Metric Cards */
.metric-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 16px 20px;
    transition: border-color 0.2s;
}

.metric-card:hover {
    border-color: #58a6ff;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b949e;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.metric-positive { color: #3fb950; }
.metric-negative { color: #f85149; }
.metric-neutral { color: #d2a8ff; }

/* Chart containers */
.chart-container {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #21262d;
}

/* Symbol Input */
.symbol-input {
    background: #0d1117;
    border: 1px solid #30363d;
    color: #c9d1d9;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.symbol-input:focus {
    background: #0d1117;
    border-color: #f0b429;
    color: #e6edf3;
    box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.15);
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 17, 23, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Option Chain Table */
.chain-table {
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.chain-table th {
    background: #21262d;
    color: #8b949e;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chain-table td {
    padding: 4px 8px;
    vertical-align: middle;
    border-color: #21262d;
}

.chain-table .itm {
    background: rgba(56, 139, 253, 0.08);
}

.chain-table .strike-col {
    background: #21262d;
    font-weight: 700;
    text-align: center;
    color: #f0b429;
    font-size: 0.85rem;
}

/* Regime Badge */
.regime-positive {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.regime-negative {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.3);
}

/* Tabs */
.nav-tabs .nav-link {
    color: #8b949e;
    border: none;
    padding: 8px 16px;
}

.nav-tabs .nav-link.active {
    background: #21262d;
    color: #f0b429;
    border: 1px solid #30363d;
    border-bottom: none;
}

/* Control Bar */
.control-bar {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px 16px;
}

/* Metric Sub-label */
.metric-sub {
    font-size: 0.7rem;
    color: #8b949e;
    margin-top: 2px;
}

/* Spot Row Highlight */
.chain-spot-row td {
    background: rgba(240, 180, 41, 0.12) !important;
    border-top: 2px solid #f0b429 !important;
    border-bottom: 2px solid #f0b429 !important;
}

.strike-spot {
    background: #f0b429 !important;
    color: #0d1117 !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
}

/* Range Slider */
.form-range {
    accent-color: #f0b429;
}

.form-range::-webkit-slider-runnable-track {
    background: #30363d;
    height: 4px;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .metric-value { font-size: 1.1rem; }
    .chart-container { padding: 8px; }
    .control-bar { padding: 8px; }
}
