/**
 * Options Chain Stylesheet
 * Contains styles for options chain table, strike range slider, and COI animations
 */

/* ============================================================================
   OPTIONS CHAIN CONTAINER & TABLE
   ============================================================================ */

/* Top scrollbar wrapper */
.chain-scroll-top-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    height: 20px;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    transition: opacity 0.2s ease;
    margin-bottom: -1px;
}

/* Hide top scrollbar when not needed */
.chain-scroll-top-wrapper[style*="display: none"] {
    display: none !important;
}

.chain-scroll-top-spacer {
    height: 1px;
    /* Width will be set dynamically by JavaScript */
}

/* Custom scrollbar styling for top wrapper */
.chain-scroll-top-wrapper::-webkit-scrollbar {
    height: 12px;
}

.chain-scroll-top-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chain-scroll-top-wrapper::-webkit-scrollbar-thumb {
    background: #1976d2;
    border-radius: 6px;
    transition: background 0.2s;
}

.chain-scroll-top-wrapper::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
}

.chain-container {
    background: white;
    border-radius: 0 0 8px 8px;
    overflow-x: auto;
    overflow-y: visible;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    border-top: none;
}

/* When top scrollbar is hidden, give container full rounded corners */
.chain-container[style*="border-radius: 8px"] {
    border-top: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* Custom scrollbar styling for chain container (bottom) */
.chain-container::-webkit-scrollbar {
    height: 12px;
}

.chain-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 8px 8px;
}

.chain-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
    transition: background 0.2s;
}

.chain-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.chain-table {
    width: 100%;
    border-collapse: collapse;
}

.chain-table thead {
    background: #fafafa;
}

.chain-table th {
    padding: 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e0e0e0;
}

.chain-table td {
    padding: 10px 12px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
}

.chain-table tbody tr:hover {
    background: #fafafa;
}

.chain-table tbody tr.atm {
    background: #fff3e0;
}

.chain-table tbody tr.atm:hover {
    background: #ffe0b2;
}

/* No Data Row (Deep OTM or Not Subscribed) */
.chain-table tbody tr.no-data-row {
    background: #f5f5f5;
    opacity: 0.6;
    font-style: italic;
    color: #999;
}

.chain-table tbody tr.no-data-row:hover {
    background: #eeeeee;
    opacity: 0.7;
}

/* ============================================================================
   STRIKE CELLS
   ============================================================================ */
.strike-cell {
    font-weight: 600;
    color: #1a1a1a;
}

.strike-cell.atm {
    color: #e65100;
    font-size: 14px;
}

/* ============================================================================
   COI (Change in OI) STYLING
   ============================================================================ */
.positive-coi {
    color: #2e7d32;
    /* No transition to prevent flash during updates */
}

.negative-coi {
    color: #c62828;
    /* No transition to prevent flash during updates */
}

/* ============================================================================
   VWAP (Volume Weighted Average Price) STYLING
   ============================================================================ */
.vwap-above {
    color: #c62828;  /* Red - LTP above VWAP (expensive) */
    font-weight: 600;
}

.vwap-below {
    color: #2e7d32;  /* Green - LTP below VWAP (cheap/oversold) */
    font-weight: 600;
}

/* VWAP cell styling */
.chain-table td[id*="-vwap"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
}

/* When VWAP shows "--" (not available) */
.chain-table td[id*="-vwap"]:not(.vwap-above):not(.vwap-below) {
    color: #999;
    font-weight: normal;
}

/* COI Flash Animations */
@keyframes flash-green {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(46, 125, 50, 0.3); }
}

@keyframes flash-red {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(198, 40, 40, 0.3); }
}

.coi-flash-green {
    animation: flash-green 0.6s ease-in-out;
}

.coi-flash-red {
    animation: flash-red 0.6s ease-in-out;
}

/* ============================================================================
   TABLE FOOTER (TOTALS) - PROFESSIONAL DESIGN
   ============================================================================ */
.chain-table tfoot {
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    border-top: 3px solid #e0e0e0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.footer-row {
    height: 120px;
}

.chain-table tfoot td {
    padding: 20px 12px;
    vertical-align: middle;
}

.footer-empty {
    background: transparent;
}

/* Footer Cell Positioning */
.footer-cell-left {
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border-right: 2px solid #f5f5f5;
    vertical-align: middle !important;
}

.footer-cell-right {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border-left: 2px solid #f5f5f5;
    vertical-align: middle !important;
}

.footer-cell-center {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    vertical-align: middle !important;
}

/* Footer Section (Left & Right Cells) */
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 12px;
    min-width: 180px;
}

.footer-header {
    font-size: 10px;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

.footer-coi-value {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.5px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.6);
    /* Prevent unwanted transitions during updates */
    transition: none !important;
}

/* Color classes for footer COI */
.footer-coi-value.positive-coi {
    color: #2e7d32;
}

.footer-coi-value.negative-coi {
    color: #c62828;
}

.footer-badge-wrapper {
    margin-top: 6px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    border: 2px solid;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.footer-badge-positive {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-color: #4CAF50;
    color: #2E7D32;
}

.footer-badge-negative {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border-color: #EF5350;
    color: #C62828;
}

.footer-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Footer Center Section */
.footer-center {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-left: 2px solid #e8e8e8;
    border-right: 2px solid #e8e8e8;
}

.footer-summary-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    min-width: 160px;
}

.footer-summary-title {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding: 4px 12px;
    background: rgba(25, 118, 210, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(25, 118, 210, 0.15);
}

.footer-summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.7);
}

.footer-summary-label {
    font-weight: 600;
    color: #666;
    font-size: 12px;
}

.footer-summary-value {
    font-weight: 700;
    color: #1976d2;
    font-size: 15px;
    letter-spacing: -0.3px;
}

/* Legacy styles for backwards compatibility */
.total-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.total-value {
    font-size: 16px;
    font-weight: 700;
}

.total-percent {
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
}

/* ============================================================================
   COMPACT CONTROL BAR (Metrics + ATM + Slider Combined)
   ============================================================================ */
.compact-control-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    border-left: 4px solid #1976d2;
}

/* Control Rows */
.control-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.metrics-row {
    padding-bottom: 14px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 14px;
}

.controls-row {
    gap: 24px;
}

/* Compact Metrics */
.compact-metric {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    font-size: 13px;
}

.compact-metric.highlight {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ff9800;
    font-weight: 600;
}

.compact-metric.time {
    margin-left: auto;
}

.compact-label {
    font-weight: 600;
    color: #666;
    font-size: 12px;
}

.compact-value {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.compact-value.positive {
    color: #2e7d32;
}

.compact-value.negative {
    color: #c62828;
}

.compact-change {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0,0,0,0.05);
}

.compact-sub {
    font-size: 10px;
    color: #999;
    font-weight: 500;
}

.compact-sub span {
    color: #e65100;
    font-weight: 700;
}

/* Control Groups */
.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

/* Compact Pills (ATM Mode) */
.compact-pill {
    padding: 6px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    background: white;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compact-pill:hover {
    border-color: #1976d2;
    transform: translateY(-1px);
}

.compact-pill.active {
    background: #1976d2;
    border-color: #1976d2;
    color: white;
}

/* Compact Dropdown */
.compact-dropdown {
    padding: 6px 12px;
    border: 2px solid #1976d2;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: white;
    cursor: pointer;
    min-width: 150px;
    animation: fadeInScale 0.2s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.compact-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.compact-dropdown:hover {
    border-color: #1565c0;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
}

/* Compact Slider */
.slider-group {
    flex: 1;
    min-width: 200px;
}

.compact-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.compact-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #e0e0e0 0%, #1976d2 100%);
    outline: none;
    -webkit-appearance: none;
}

.compact-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1976d2;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.compact-slider::-webkit-slider-thumb:hover {
    background: #1565c0;
    transform: scale(1.1);
}

.compact-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1976d2;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider-label {
    font-weight: 700;
    color: #1976d2;
    font-size: 14px;
    min-width: 32px;
    text-align: center;
    padding: 4px 8px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 4px;
}

/* Compact Greeks Button */
.compact-greeks-btn {
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.compact-greeks-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

/* ============================================================================
   OLD STYLES - KEEP FOR BACKWARD COMPAT (Hidden by default)
   ============================================================================ */
.atm-control-container {
    background: white;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-left: 4px solid #1976d2;
    display: none; /* Hidden by new compact bar */
}

.atm-mode-section {
    margin-bottom: 12px;
}

.atm-mode-title {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    margin-right: 12px;
}

.atm-mode-pills {
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.atm-mode-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.atm-mode-pill:hover {
    border-color: #1976d2;
    background: #f5f9ff;
    transform: translateY(-1px);
}

.atm-mode-pill.active {
    border-color: #1976d2;
    background: #1976d2;
    color: white;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

.atm-mode-pill.active .mode-icon {
    filter: brightness(1.5);
}

.mode-icon {
    font-size: 14px;
}

.mode-text {
    font-weight: 600;
}

.mode-desc {
    font-size: 11px;
    opacity: 0.8;
}

.custom-atm-section {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #1976d2;
}

.custom-atm-section.visible {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-atm-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.custom-atm-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.custom-atm-dropdown {
    padding: 8px 12px;
    border: 2px solid #1976d2;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    min-width: 150px;
    transition: all 0.2s ease;
}

.custom-atm-dropdown:hover {
    border-color: #1565c0;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
}

.custom-atm-dropdown:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.reset-atm-btn {
    padding: 8px 16px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reset-atm-btn:hover {
    background: #f57c00;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.reset-atm-btn:active {
    transform: translateY(0);
}

/* Manual ATM row highlighting (green instead of yellow) */
tr.manual-atm {
    background: linear-gradient(90deg, #e8f5e9 0%, #c8e6c9 50%, #e8f5e9 100%);
    font-weight: 600;
}

tr.manual-atm:hover {
    background: linear-gradient(90deg, #c8e6c9 0%, #a5d6a7 50%, #c8e6c9 100%);
}

.strike-cell.manual-atm {
    background: #4caf50 !important;
    color: white;
    font-weight: 700;
    font-size: 15px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.strike-cell.manual-atm::after {
    content: "MANUAL";
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

/* ============================================================================
   STICKY SUMMARY BAR (Compact Professional Display)
   ============================================================================ */
.sticky-summary-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    border-radius: 8px;
    padding: 14px 20px;
    margin: 16px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    border-top: 3px solid #1976d2;
}

/* Call Section (Left) */
.summary-section.call-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border-radius: 6px;
    border-left: 3px solid #1976d2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.summary-section.call-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.12);
}

/* Net Section (Center) */
.summary-section.net-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    min-width: 200px;
}

/* Put Section (Right) */
.summary-section.put-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border-radius: 6px;
    border-left: 3px solid #e65100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.summary-section.put-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(230, 81, 0, 0.12);
}

.summary-icon {
    font-size: 16px;
    margin-bottom: 4px;
    opacity: 0.8;
}

.summary-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.summary-label {
    font-size: 9px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    border: 1px solid #e8e8e8;
}

.summary-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.summary-value.positive-coi {
    color: #2e7d32;
}

.summary-value.negative-coi {
    color: #c62828;
}

.summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.summary-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.summary-badge.footer-badge-positive {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-color: #4CAF50;
    color: #2E7D32;
}

.summary-badge.footer-badge-negative {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border-color: #EF5350;
    color: #C62828;
}

/* ============================================================================
   MARKET SIDE HIGHLIGHTING
   ============================================================================ */

/* Market Side Indicator Badge */
.market-side-indicator {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    animation: pulse 2s ease-in-out infinite;
}

.market-side-indicator.call-dominant {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: 2px solid #0d47a1;
}

.market-side-indicator.put-dominant {
    background: linear-gradient(135deg, #e65100 0%, #d84315 100%);
    color: white;
    border: 2px solid #bf360c;
}

.market-side-indicator.neutral {
    background: linear-gradient(135deg, #f9a825 0%, #f57f17 100%);
    color: white;
    border: 2px solid #f57f17;
}

/* Dominant Section Highlighting - Strong */
.summary-section.market-dominant {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%) !important;
    border-left-width: 5px !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.25) !important;
    transform: scale(1.02);
    animation: glow-strong 2s ease-in-out infinite;
}

.summary-section.call-section.market-dominant {
    border-left-color: #1976d2 !important;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.35) !important;
}

.summary-section.put-section.market-dominant {
    border-left-color: #e65100 !important;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.35) !important;
}

/* Moderate Section Highlighting */
.summary-section.market-moderate {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%) !important;
    border-left-width: 4px !important;
    box-shadow: 0 3px 8px rgba(255, 152, 0, 0.18) !important;
    transform: scale(1.01);
}

.summary-section.call-section.market-moderate {
    border-left-color: #1976d2 !important;
    box-shadow: 0 3px 8px rgba(25, 118, 210, 0.25) !important;
}

.summary-section.put-section.market-moderate {
    border-left-color: #e65100 !important;
    box-shadow: 0 3px 8px rgba(230, 81, 0, 0.25) !important;
}

/* Weak Section Highlighting */
.summary-section.market-weak {
    border-left-width: 3px !important;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.12) !important;
}

.summary-section.call-section.market-weak {
    border-left-color: #1976d2 !important;
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.15) !important;
}

.summary-section.put-section.market-weak {
    border-left-color: #e65100 !important;
    box-shadow: 0 2px 6px rgba(230, 81, 0, 0.15) !important;
}

/* Glow Animation for Strong Dominance */
@keyframes glow-strong {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.25);
    }
    50% {
        box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
    }
}

/* Pulse Animation for Market Side Indicator */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Net Summary Rows */
.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    width: 100%;
    padding: 5px 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
}

/* Special styling for NET COI row with market side indicator */
.summary-row:has(.market-side-indicator) {
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
}

.summary-sublabel {
    font-weight: 600;
    color: #666;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-row .summary-value {
    font-size: 13px;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 0;
}

/* Hide old table footer */
.chain-table tfoot {
    display: none;
}

/* ============================================================================
   RESPONSIVE DESIGN - Sticky Summary Bar
   ============================================================================ */
@media (max-width: 1200px) {
    .sticky-summary-bar {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 24px;
    }
    
    .summary-section.net-section {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .sticky-summary-bar {
        padding: 16px 16px;
        gap: 12px;
    }
    
    .summary-section {
        padding: 16px;
    }
    
    .summary-value {
        font-size: 20px;
    }
    
    .summary-badge {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .summary-row {
        font-size: 13px;
    }
    
    .market-side-indicator {
        font-size: 9px;
        padding: 3px 8px;
        margin-left: 4px;
    }
}

/* ============================================================================
   RESPONSIVE DESIGN - Compact Control Bar
   ============================================================================ */
@media (max-width: 1024px) {
    .control-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .metrics-row {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .compact-metric.time {
        margin-left: 0;
    }
    
    .control-group {
        width: 100%;
    }
    
    .slider-group {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .metrics-row {
        flex-direction: column;
    }
    
    .compact-metric {
        width: 100%;
        justify-content: space-between;
    }
}

/* ============================================================================
   STRIKE RANGE SLIDER - OLD (Hidden)
   ============================================================================ */
.slider-container {
    background: white;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: none; /* Hidden by new compact bar */
}

/* Slider header is now in greeks.css to avoid conflicts */

.slider-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.slider-value {
    font-size: 16px;
    font-weight: 700;
    color: #1976d2;
}

.slider-wrapper {
    position: relative;
    padding: 0 8px;
}

.strike-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    margin: 20px 0;
}

.strike-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1976d2;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.strike-slider::-webkit-slider-thumb:hover {
    background: #1565c0;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.strike-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1976d2;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.strike-slider::-moz-range-thumb:hover {
    background: #1565c0;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
    padding: 0 8px;
}




