
    
       .collapse {
        transition: all 0.3s ease;
      }
      /* Ensure info panel content is visible */
      .collapse.show {
        display: block !important;
      }
      /* Style the info buttons */
      .btn-outline-light {
        border-color: #6c757d;
        color: #f8f9fa;
      }
      .btn-outline-light:hover {
        background-color: #6c757d;
        border-color: #6c757d;
      }
      /* Ensure proper spacing */
      .card-body .d-flex {
        margin-bottom: 1rem;
      }
      
      /* Myfeed News Button Styling */
      .btn-outline-light.btn-sm.ms-3 {
        transition: all 0.3s ease;
        border-width: 1px;
        font-weight: 500;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      }
      
      .btn-outline-light.btn-sm.ms-3:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        background: linear-gradient(135deg, #00d4aa, #00b894);
        border-color: #00d4aa;
        color: #fff;
      }
      
      .btn-outline-light.btn-sm.ms-3:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      }
      
      .btn-outline-light.btn-sm.ms-3 .fas.fa-newspaper {
        font-size: 0.9rem;
        margin-right: 0.25rem;
      }
      
      /* Responsive adjustments for the news button */
      @media (max-width: 768px) {
        .btn-outline-light.btn-sm.ms-3 .d-none.d-sm-inline {
          display: none !important;
        }
        .btn-outline-light.btn-sm.ms-3 {
          padding: 0.375rem 0.5rem;
          min-width: 40px;
        }
      }
      /* Info panel styling */
      .alert-info.bg-dark {
        background-color: rgba(13, 202, 240, 0.1) !important;
        border-color: #0dcaf0 !important;
      }
  
      /* Tesla Seasonality Chart Styles */
      @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');
  
      /* Embedded Tesla Seasonality Chart Styles */
      .tesla-seasonality-chart-embedded {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
        font-family: 'Montserrat', sans-serif;
        perspective: 1200px;
        padding: 20px;
        border-radius: 12px;
        margin: 20px 0;
      }
  
      .tesla-seasonality-chart-embedded .chart-container {
        position: relative;
        width: 100%;
        max-width: 400px;
        height: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform-style: preserve-3d;
        transition: transform 0.8s ease;
      }
  
      .tesla-seasonality-chart-embedded .photo {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/b/bd/Tesla_Motors.svg/1200px-Tesla_Motors.svg.png') center/contain no-repeat;
        background-size: 50%;
        opacity: 0.1;
        z-index: 0;
      }
  
      .tesla-seasonality-chart-embedded .chart {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        height: 150px;
        position: relative;
        z-index: 1;
        transform-style: preserve-3d;
        transition: transform 0.8s ease;
      }
  
      .tesla-seasonality-chart-embedded .bar {
        width: 20px;
        height: calc(var(--data-value) * 10px);
        margin: 0 3px;
        position: relative;
        transform-style: preserve-3d;
        transition: all 0.8s ease;
        background: linear-gradient(to bottom, var(--positive-color), #00c764);
        transform: rotateX(-60deg) rotateY(-10deg) translateZ(0);
        transform-origin: bottom center;
      }
  
      /* Staggered animation delays for wave-like motion */
      .tesla-seasonality-chart-embedded .bar1 { transition-delay: 0.1s; }
      .tesla-seasonality-chart-embedded .bar2 { transition-delay: 0.2s; }
      .tesla-seasonality-chart-embedded .bar3 { transition-delay: 0.3s; }
      .tesla-seasonality-chart-embedded .bar4 { transition-delay: 0s; }
      .tesla-seasonality-chart-embedded .bar5 { transition-delay: 0.1s; }
      .tesla-seasonality-chart-embedded .bar6 { transition-delay: 0.2s; }
      .tesla-seasonality-chart-embedded .bar7 { transition-delay: 0.3s; }
      .tesla-seasonality-chart-embedded .bar8 { transition-delay: 0.4s; }
      .tesla-seasonality-chart-embedded .bar9 { transition-delay: 0.5s; }
      .tesla-seasonality-chart-embedded .bar10 { transition-delay: 0.6s; }
      .tesla-seasonality-chart-embedded .bar11 { transition-delay: 0.7s; }
      .tesla-seasonality-chart-embedded .bar12 { transition-delay: 0.8s; }
  
      .tesla-seasonality-chart-embedded .bar.negative {
        background: linear-gradient(to bottom, #ff0000, #cc0000) !important;
      }
  
      .tesla-seasonality-chart-embedded .bar.negative span {
        color: #ff0000 !important;
      }
  
      .tesla-seasonality-chart-embedded.details .bar.negative {
        box-shadow: 0 8px 25px rgba(255, 82, 82, 0.6);
      }
  
      .tesla-seasonality-chart-embedded .bar::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 100%;
        right: calc(-1 * 20px);
        background: linear-gradient(to bottom, #00c764, #009955);
        transform: rotateY(90deg);
        transform-origin: 0% 50%;
      }
  
      .tesla-seasonality-chart-embedded .bar.negative::after {
        background: linear-gradient(to bottom, #ff1a1a, #cc0000);
      }
  
      .tesla-seasonality-chart-embedded .bar span {
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
        transform-origin: 0% 0%;
        white-space: nowrap;
        color: var(--text-color);
        font-size: 11px;
        font-weight: 600;
        opacity: 1;
        transition: opacity 0.5s ease;
        padding: 2px 4px;
        border-radius: 3px;
        background: rgba(0, 0, 0, 0.8);
        z-index: 10;
      }
  
      .tesla-seasonality-chart-embedded .month-labels {
        display: flex;
        justify-content: center;
        margin-top: 20px;
        gap: 8px;
        position: relative;
        z-index: 1;
      }
  
      .tesla-seasonality-chart-embedded .month-labels span {
        color: var(--text-color);
        font-size: 10px;
        font-weight: 600;
        width: 8px;
        text-align: center;
      }
  
      .tesla-seasonality-chart-embedded .performance-summary {
        display: flex;
        justify-content: space-between;
        width: 100%;
        max-width: 300px;
        padding: 0 20px;
        margin-top: 15px;
        position: relative;
        z-index: 1;
      }
  
      .tesla-seasonality-chart-embedded .best-month, .tesla-seasonality-chart-embedded .worst-month {
        font-size: 16px;
        color: var(--text-color);
        font-weight: 600;
      }
  
      .tesla-seasonality-chart-embedded .best-month {
        color: var(--positive-color);
      }
  
      .tesla-seasonality-chart-embedded .worst-month {
        color: var(--negative-color);
      }
  
      .tesla-seasonality-chart-embedded .info {
        color: rgba(255, 255, 255, 0.6);
        font-size: 10px;
        margin-top: 10px;
        text-align: center;
      }
  
      /* 3D View Styles for Embedded Chart */
      .tesla-seasonality-chart-embedded.details .chart-container {
        transform: translateZ(30px) translateY(25px);
      }
  
      .tesla-seasonality-chart-embedded.details .chart {
        transform: translateZ(40px) translateY(20px);
      }
  
      .tesla-seasonality-chart-embedded.details .bar {
        transform: rotateX(-65deg) rotateY(-5deg);
        height: 1px;
        width: 20px;
        margin: 0 3px;
        box-shadow: none;
        border-radius: 0;
      }
  
      .tesla-seasonality-chart-embedded.details .photo {
        transform: translateZ(40px);
        opacity: 0.2;
      }
  
      .tesla-seasonality-chart-embedded.details .performance-summary {
        transform: translateZ(50px) translateY(10px);
      }
  
      /* Mobile Responsive Design for Embedded Chart */
      @media (max-width: 767px) {
        .tesla-seasonality-chart-embedded .chart-container {
          max-width: 100%;
          height: 250px;
          padding: 10px;
        }
        
        .tesla-seasonality-chart-embedded .bar {
          width: 12px;
          margin: 0 1px;
        }
        
        .tesla-seasonality-chart-embedded .chart {
          height: 120px;
        }
        
        .tesla-seasonality-chart-embedded .bar span {
          font-size: 8px;
          top: -20px;
        }
        
        .tesla-seasonality-chart-embedded .month-labels {
          gap: 4px;
          margin-top: 15px;
        }
        
        .tesla-seasonality-chart-embedded .month-labels span {
          font-size: 8px;
          width: 6px;
        }
        
        .tesla-seasonality-chart-embedded .performance-summary {
          font-size: 9px;
          max-width: 250px;
        }
        
        .tesla-seasonality-chart-embedded .best-month, 
        .tesla-seasonality-chart-embedded .worst-month {
          font-size: 12px;
        }
      }

      /* Desktop Responsive Design for Embedded Chart */
      @media (min-width: 768px) {
        .tesla-seasonality-chart-embedded .chart-container {
          max-width: 500px;
          height: 350px;
        }
        
        .tesla-seasonality-chart-embedded .bar {
          width: 25px;
          margin: 0 4px;
        }
        
        .tesla-seasonality-chart-embedded .chart {
          height: 180px;
        }
        
        .tesla-seasonality-chart-embedded .bar span {
          font-size: 11px;
        }
        
        .tesla-seasonality-chart-embedded .month-labels span {
          font-size: 11px;
        }
        
        .tesla-seasonality-chart-embedded .performance-summary {
          font-size: 11px;
        }
      }
  
      :root {
        --bar-width: 25px;
        --bar-width-large: 35px;
        --positive-color: #00e676;
        --negative-color: #ff5252;
        --tesla-red: #e82127;
        --text-color: #ffffff;
        --bg-color: #000000;
        --layer-gap: 30px;
      }
  
      .tesla-seasonality-chart {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
        font-family: 'Montserrat', sans-serif;
        perspective: 1500px;
        padding: 20px;
      }
  
      .tesla-seasonality-chart .card {
        position: relative;
        width: 320px;
        height: 420px;
        background-color: var(--bg-color);
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform-style: preserve-3d;
        transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.8s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        overflow: hidden;
      }
  
      .tesla-seasonality-chart .photo {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/b/bd/Tesla_Motors.svg/1200px-Tesla_Motors.svg.png') center/contain no-repeat;
        background-size: 60%;
        opacity: 0.15;
        z-index: 0;
      }
  
      .tesla-seasonality-chart h2 {
        color: var(--tesla-red);
        font-size: 32px;
        margin: 15px 0 5px;
        position: relative;
        z-index: 1;
        text-transform: uppercase;
        letter-spacing: 2px;
      }
  
      .tesla-seasonality-chart p {
        color: var(--text-color);
        font-size: 14px;
        margin: 0 0 25px;
        position: relative;
        z-index: 1;
        letter-spacing: 1px;
      }
  
      .tesla-seasonality-chart .chart {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        height: 180px;
        position: relative;
        z-index: 1;
        transform-style: preserve-3d;
        transition: transform 0.8s ease;
      }
  
      .tesla-seasonality-chart .bar {
        width: var(--bar-width);
        height: calc(var(--data-value) * 2px);
        margin: 0 4px;
        position: relative;
        transform-style: preserve-3d;
        transition: all 0.8s ease;
        background: linear-gradient(to bottom, var(--positive-color), #00c764);
        transform: rotateX(-70deg) rotateY(-30deg) translateZ(0);
        transform-origin: bottom center;
      }
  
      .tesla-seasonality-chart .bar.negative {
        background: linear-gradient(to bottom, var(--negative-color), #ff1a1a);
      }
  
      .tesla-seasonality-chart .bar::before {
        content: attr(data-month);
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        color: var(--text-color);
        font-size: 12px;
      }
  
      .tesla-seasonality-chart .bar::after {
        content: '';
        position: absolute;
        width: var(--bar-width);
        height: 100%;
        right: calc(-1 * var(--bar-width));
        background: linear-gradient(to bottom, #00c764, #009955);
        transform: rotateY(90deg);
        transform-origin: 0% 50%;
      }
  
      .tesla-seasonality-chart .bar.negative::after {
        background: linear-gradient(to bottom, #ff1a1a, #cc0000);
      }
  
      .tesla-seasonality-chart .bar span {
        position: absolute;
        top: -25px;
        left: 50%;
        transform: translateX(-50%) rotateZ(-90deg);
        transform-origin: 0% 0%;
        white-space: nowrap;
        color: var(--text-color);
        font-size: 12px;
        font-weight: 600;
        opacity: 1;
        transition: opacity 0.5s ease;
        padding: 2px 5px;
        border-radius: 3px;
      }
  
      .tesla-seasonality-chart .month-labels {
        display: flex;
        justify-content: center;
        margin-top: 30px;
        gap: 12px;
        position: relative;
        z-index: 1;
      }
  
      .tesla-seasonality-chart .month-labels span {
        color: var(--text-color);
        font-size: 12px;
        font-weight: 600;
        width: 10px;
        text-align: center;
      }
  
      .tesla-seasonality-chart .performance-summary {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0 30px;
        margin-top: 20px;
        position: relative;
        z-index: 1;
      }
  
      .tesla-seasonality-chart .best-month, .tesla-seasonality-chart .worst-month {
        font-size: 12px;
        color: var(--text-color);
        font-weight: 600;
      }
  
      .tesla-seasonality-chart .best-month {
        color: var(--positive-color);
      }
  
      .tesla-seasonality-chart .worst-month {
        color: var(--negative-color);
      }
  
      .tesla-seasonality-chart .info {
        color: rgba(255, 255, 255, 0.7);
        font-size: 12px;
        margin-top: 20px;
        text-align: center;
        cursor: pointer;
      }
  
      /* 3D View Styles */
      .tesla-seasonality-chart.details .card {
        transform: rotateX(60deg) translateY(80px);
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.8);
      }
  
      .tesla-seasonality-chart.details .chart {
        transform: translateZ(var(--layer-gap)) translateY(30px);
      }
  
      .tesla-seasonality-chart.details .bar {
        transform: rotateX(-90deg) rotateY(-25deg);
        height: calc(var(--data-value) * 3px);
      }
  
      .tesla-seasonality-chart.details .photo {
        transform: translateZ(var(--layer-gap));
        opacity: 0.3;
      }
  
      .tesla-seasonality-chart.details h2, .tesla-seasonality-chart.details p {
        opacity: 0;
        transform: translateZ(calc(var(--layer-gap) * 2)) translateY(-50px);
      }
  
      .tesla-seasonality-chart.details .performance-summary {
        transform: translateZ(calc(var(--layer-gap) * 3)) translateY(50px);
      }
  
      /* Responsive Design */
      @media (min-width: 768px) {
        .tesla-seasonality-chart .card {
          width: 400px;
          height: 500px;
        }
        
        .tesla-seasonality-chart .bar {
          width: var(--bar-width-large);
          margin: 0 6px;
        }
        
        .tesla-seasonality-chart h2 {
          font-size: 36px;
        }
        
        .tesla-seasonality-chart p {
          font-size: 16px;
        }
        
        .tesla-seasonality-chart .month-labels {
          gap: 16px;
        }
        
        .tesla-seasonality-chart .month-labels span {
          font-size: 14px;
        }
        
        .tesla-seasonality-chart .performance-summary {
          font-size: 14px;
        }
      }
   
    
    
    
    
    
    
    /* Loading Animation Styles */
    :root {
      --black1: #000000;
      --black2: #0a0a0a;
      --black3: #151515;
      --accent: #00ff99; /* neon green for verified checks */
    }

    #page {
      align-items: center;
      background: linear-gradient(
                      to top right,
                      rgba(0, 0, 0, 1) 10%,
                      rgba(10, 10, 10, 1) 65%,
                      rgba(21, 21, 21, 1) 125%);
      bottom: 0;
      display: flex;
      justify-content: center;
      left: 0;
      position: relative;
      right: 0;
      top: 0;
      border-radius: 15px;
      overflow: hidden;
    }

    #phrase_box {  
      display: flex;
      flex-flow: column;
      height: 150px;
      overflow: hidden;
      width: 320px;
    }

    #phrases {
      transform: translateY(0);
    }

    text {
      fill: white;
      font-size: 20px;
      font-family: Arial, sans-serif;
      filter: drop-shadow(0 0 3px rgba(255,255,255,0.8));
    }

    /* Check mark animations */
    @keyframes fill-check {
      from { fill: white; }
      to { fill: var(--accent); }
    }
    @keyframes fill-circle {
      from { fill: rgba(255,255,255,0); }
      to { fill: rgba(0,255,153,0.3); }
    }
    /* Skeleton loading animations */
    .animate__pulse {
        animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
    }
    
    @keyframes skeleton-pulse {
        0% { opacity: 0.6; }
        100% { opacity: 1; }
    }
    
    /* Fast fade-in for progressive loading */
    .animate__fadeIn {
        animation: fast-fade-in 0.3s ease-out;
    }
    
    @keyframes fast-fade-in {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Optimized progress bar */
    .progress-bar {
        transition: width 0.2s ease-out;
    }
    
    /* Hardware acceleration for smooth animations */
    .ticker-card {
        transform: translateZ(0);
        will-change: transform, opacity;
    }
    
    /* Reduce layout shifts */
    .ticker-card img {
        aspect-ratio: 48/38;
        object-fit: contain;
    }

    /* Clickable ticker styling */
    .clickable-ticker {
      cursor: pointer;
      color: #00D4AA;
      font-weight: bold;
      transition: all 0.3s ease;
      text-decoration: none;
      border-bottom: 1px solid transparent;
    }

    .clickable-ticker:hover {
      color: #00f2ff;
      border-bottom: 1px solid #00f2ff;
      text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
      transform: scale(1.05);
    }

    .clickable-ticker:active {
      transform: scale(0.95);
    }

    /* Enhanced clickable ticker for dynamic content */
    .dynamic-ticker {
      cursor: pointer;
      color: #00D4AA;
      font-weight: bold;
      transition: all 0.3s ease;
      padding: 2px 4px;
      border-radius: 4px;
      background: rgba(0, 212, 170, 0.1);
    }

    .dynamic-ticker:hover {
      color: #00f2ff;
      background: rgba(0, 242, 255, 0.2);
      text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
      transform: scale(1.05);
    }

    .dynamic-ticker:active {
      transform: scale(0.95);
    }

    /* Ticker in tables and lists */
    .ticker-symbol {
      cursor: pointer;
      color: #00D4AA;
      font-weight: bold;
      transition: all 0.3s ease;
    }

    .ticker-symbol:hover {
      color: #00f2ff;
      text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
    }

    /* Enhanced styling for ticker cards */
    .ticker-card .clickable-ticker,
    .ticker-card .dynamic-ticker {
      font-size: 1.1em;
      font-weight: 700;
    }

    /* Mobile responsive adjustments */
    @media (max-width: 768px) {
      .clickable-ticker,
      .dynamic-ticker {
        font-size: 0.9em;
      }
      
      .clickable-ticker:hover,
      .dynamic-ticker:hover {
        transform: scale(1.02);
      }
    }
    
    /* Consistent dropdown styling */
    .ticker-details-dropdown {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      margin: 10px 0;
      overflow: hidden;
      min-height: 200px;
      padding: 15px;
    }
    
    .ticker-dropdown {
      transition: all 0.3s ease-in-out;
    }
    
    .smart-recommendation {
      padding: 15px;
      min-height: 150px;
    }
    
    /* 52-Week Gainers Styling */
    .gainer-item {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 8px;
      padding: 15px;
      margin-bottom: 10px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.3s ease;
    }
    
    .gainer-item:hover {
      background: rgba(255, 255, 255, 0.08);
      transform: translateY(-2px);
    }
    
    .gain-score {
      font-weight: bold;
      font-size: 1.1em;
    }
    
    .gain-score.high {
      color: #00ff88;
    }
    
    .gain-score.medium {
      color: #ffaa00;
    }
    
    .gain-score.low {
      color: #00aaff;
    }
    
    .gain-bar {
      height: 4px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 2px;
      margin: 10px 0;
      overflow: hidden;
    }
    
    .gain-fill {
      height: 100%;
      background: linear-gradient(90deg, #00ff88, #00aaff);
      border-radius: 2px;
      transition: width 0.3s ease;
    }
    
    /* Fixed container sizing */
    #mostActiveStocksContainer {
      height: 400px !important;
      min-height: 400px !important;
      max-height: 400px !important;
      overflow-y: auto;
      overflow-x: hidden;
      position: relative;
    }
    
    /* Ensure content doesn't expand container */
    #mostActiveStocksContainer .most-active-item {
      margin-bottom: 10px;
    }


/* short sqeeze card CSS  */

    
#spyFlowChart {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

/* SPY Flow Data Container */
#spyFlowData {
  font-family: 'Roboto', sans-serif;
}

#spyFlowData .bg-dark {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.9) 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.15) !important;
  transition: all 0.3s ease;
}

#spyFlowData .bg-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(148, 163, 184, 0.25) !important;
}

/* Animated number counters */
@keyframes numberPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

#spyFlowData .fw-bold {
  animation: numberPulse 2s ease-in-out;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* Flow trend indicators */
.text-success {
  color: #22C55E !important;
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.3);
}

.text-danger {
  color: #EF4444 !important;
  text-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
}

.text-info {
  color: #06B6D4 !important;
}

/* Enhanced carousel card for SPY */
.seasonality-card {
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

/* Loading state enhancements */
.spinner-border-sm {
  color: #00D4AA;
}

/* Refresh button styling */
.btn-outline-warning {
  border-color: #F59E0B;
  color: #F59E0B;
  transition: all 0.3s ease;
}

.btn-outline-warning:hover {
  background-color: #F59E0B;
  border-color: #F59E0B;
  color: #1F2937;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* YOLO Pattern Detection Alert Styles removed */

.alert-sm {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.alert-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #ffc107;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  #spyFlowData .row.g-2 .col-6 {
    margin-bottom: 0.5rem;
  }
  
  #spyFlowData .small {
    font-size: 0.8rem;
  }
  
  #spyFlowChart {
    height: 320px !important; /* Increased height for mobile */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* SPY Flow Card adjustments for mobile */
  .seasonality-card .chart-container {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Hide chart title on mobile to save space */
  #spyFlowChart + .chart-title {
    display: none;
  }
  
  /* Make SPY flow data grid more compact on mobile */
  #spyFlowData .row.g-2 {
    margin: 0 !important;
  }
  
  #spyFlowData .bg-dark {
    padding: 0.5rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  /* Adjust carousel card height for mobile */
  .carousel-item .seasonality-card {
    min-height: 420px;
  }
  
  /* Make the chart fill more of the available space */
  .chart-container canvas {
    max-height: 320px !important;
  }
}

/* Enhanced SMA Analysis Styles */
.sma-analysis-section {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  transition: all 0.3s ease;
}

.sma-analysis-section:hover {
  border-color: rgba(59, 130, 246, 0.5) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.bg-gradient-dark {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.95) 100%);
}

.cross-item {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cross-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.cross-item:hover::before {
  left: 100%;
}

.cross-item:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.4) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.current-sma-status {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.sma-alignment {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.8) 0%, rgba(71, 85, 105, 0.8) 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.3s ease;
}

.sma-alignment:hover {
  border-color: rgba(148, 163, 184, 0.4);
  transform: translateY(-1px);
}

/* Pulse animation for recent crosses */
@keyframes crossPulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.cross-item:first-child {
  animation: crossPulse 2s infinite;
}

/* Traditional analysis styling */
.traditional-analysis {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1rem;
}

/* Mobile responsive adjustments for SMA analysis */
@media (max-width: 768px) {
  .sma-analysis-section {
    padding: 1rem !important;
  }
  
  .cross-item {
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .current-sma-status {
    padding: 0.75rem;
  }
  
  .sma-alignment {
    padding: 0.75rem !important;
  }
  
  .cross-item .small {
    font-size: 0.8rem;
  }
}


/* Smart recommendation styling */
.recommendation-cell .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
}

/* Sector Performance Fill Bar Styles */
.sector-percentage-cell {
  position: relative !important;
  padding: 8px 12px !important;
  min-width: 150px !important;
  height: 40px !important;
  overflow: hidden !important;
  border-radius: 4px !important;
}

.sector-fill-bar {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  z-index: 1 !important;
  border-radius: 4px !important;
  transition: width 0.5s ease !important;
  opacity: 0.9 !important;
  min-width: 20px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.sector-fill-positive-weak {
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%) !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3) !important;
}

.sector-fill-positive-medium {
  background: linear-gradient(90deg, #059669 0%, #10B981 100%) !important;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.4) !important;
}

.sector-fill-positive-strong {
  background: linear-gradient(90deg, #047857 0%, #059669 100%) !important;
  box-shadow: 0 0 8px rgba(4, 120, 87, 0.5) !important;
}

.sector-fill-positive-extreme {
  background: linear-gradient(90deg, #065F46 0%, #047857 100%) !important;
  box-shadow: 0 0 12px rgba(6, 95, 70, 0.6) !important;
  animation: pulse-glow-green 2s ease-in-out infinite !important;
}

@keyframes pulse-glow-green {
  0%, 100% { box-shadow: 0 0 12px rgba(6, 95, 70, 0.6); }
  50% { box-shadow: 0 0 20px rgba(6, 95, 70, 0.8); }
}

.sector-fill-negative-weak {
  background: linear-gradient(90deg, #F87171 0%, #EF4444 100%) !important;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.3) !important;
}

.sector-fill-negative-medium {
  background: linear-gradient(90deg, #EF4444 0%, #DC2626 100%) !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4) !important;
}

.sector-fill-negative-strong {
  background: linear-gradient(90deg, #DC2626 0%, #B91C1C 100%) !important;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.5) !important;
}

.sector-fill-negative-extreme {
  background: linear-gradient(90deg, #B91C1C 0%, #991B1B 100%) !important;
  box-shadow: 0 0 12px rgba(185, 27, 27, 0.6) !important;
  animation: pulse-glow-red 2s ease-in-out infinite !important;
}

@keyframes pulse-glow-red {
  0%, 100% { box-shadow: 0 0 12px rgba(185, 27, 27, 0.6); }
  50% { box-shadow: 0 0 20px rgba(185, 27, 27, 0.8); }
}

.sector-fill-neutral {
  background: #6B7280 !important;
  box-shadow: 0 0 8px rgba(107, 114, 128, 0.4) !important;
}

.sector-text-overlay {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
  color: #FFFFFF !important;
  font-weight: bold !important;
  font-size: 14px !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
  white-space: nowrap !important;
  background: rgba(0, 0, 0, 0.8) !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Enhanced hover effects for sector fill bars */
.sector-percentage-cell:hover .sector-fill-bar {
  opacity: 1 !important;
  transform: scaleY(1.05) !important;
}

.sector-percentage-cell:hover .sector-text-overlay {
  background: rgba(0, 0, 0, 0.8) !important;
  transform: translate(-50%, -50%) scale(1.05) !important;
}

/* Enhanced sector table styling */
#sectorTable td {
  border: 1px solid rgba(148, 163, 184, 0.2);
  vertical-align: middle;
}

#sectorTable th {
  background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
  color: #F9FAFB;
  font-weight: bold;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Sector Performance Clickable Styles */
.sector-row {
  transition: all 0.3s ease;
}

.sector-row:hover {
  background: rgba(148, 163, 184, 0.1) !important;
  transform: translateX(2px);
}

.sector-dropdown {
  background: rgba(15, 23, 42, 0.8);
}

.sector-dropdown td {
  border: none !important;
  padding: 0 !important;
}

.sector-details-dropdown {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 8px;
  padding: 15px;
  margin: 8px 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sector-info h6 {
  color: #F9FAFB;
  font-weight: bold;
  margin-bottom: 12px;
}

.sector-metric {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.sector-metric .badge {
  font-size: 0.75rem;
  padding: 4px 8px;
}

.sector-description {
  padding: 8px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 12px;
}

/* Enhanced sector percentage cell with better color shades */
.sector-percentage-cell {
  position: relative !important;
  padding: 8px 12px !important;
  min-width: 150px !important;
  height: 40px !important;
  overflow: hidden !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
}

.sector-percentage-cell:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Enhanced fill bar colors for better visibility */
.sector-fill-positive-extreme {
  background: linear-gradient(90deg, #065F46 0%, #047857 100%) !important;
  box-shadow: 0 0 12px rgba(6, 95, 70, 0.6) !important;
}

.sector-fill-positive-strong {
  background: linear-gradient(90deg, #047857 0%, #059669 100%) !important;
  box-shadow: 0 0 8px rgba(4, 120, 87, 0.5) !important;
}

.sector-fill-positive-medium {
  background: linear-gradient(90deg, #059669 0%, #10B981 100%) !important;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.4) !important;
}

.sector-fill-positive-weak {
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%) !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3) !important;
}

.sector-fill-negative-extreme {
  background: linear-gradient(90deg, #B91C1C 0%, #991B1B 100%) !important;
  box-shadow: 0 0 12px rgba(185, 27, 27, 0.6) !important;
}

.sector-fill-negative-strong {
  background: linear-gradient(90deg, #DC2626 0%, #B91C1C 100%) !important;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.5) !important;
}

.sector-fill-negative-medium {
  background: linear-gradient(90deg, #EF4444 0%, #DC2626 100%) !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4) !important;
}

.sector-fill-negative-weak {
  background: linear-gradient(90deg, #F87171 0%, #EF4444 100%) !important;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.3) !important;
}

.ticker-row {
  transition: all 0.2s ease;
}

.ticker-row:hover {
  background-color: rgba(59, 130, 246, 0.1);
  transform: translateX(2px);
}

.score-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.score-item:last-child {
  border-bottom: none;
}

.score-item .badge {
  min-width: 100px;
  text-align: center;
}

/* Ticker dropdown styling */
.ticker-dropdown {
  background-color: rgba(59, 130, 246, 0.05);
}

.ticker-details-dropdown {
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-metric {
  margin-bottom: 8px;
}

.ticker-metric .badge {
  font-size: 0.75rem;
}

.valuation-recommendation {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.ticker-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ticker-row:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

/* Smart recommendation card styling */
.recommendation-card {
  padding: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.analysis-item {
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.analysis-item .badge {
  font-size: 0.75rem;
  margin-bottom: 5px;
}

.analysis-item .text-light {
  font-weight: 600;
  font-size: 1.1rem;
}

.score-breakdown {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 15px;
  margin-top: 15px;
}

.score-breakdown h6 {
  color: #00D4AA;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Short recommendation icons styling */
.short-icons {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.check-icon {
  color: #28a745;
  stroke: #28a745;
}

.short-icon {
  color: #dc3545;
  stroke: #dc3545;
}

.short-icons svg {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .ticker-row td {
    padding: 8px 4px;
    font-size: 0.9rem;
  }
  
  .ticker-row .name-cell {
    min-width: 80px;
  }
  
  .ticker-row .price-cell {
    min-width: 60px;
    text-align: center;
  }
  
  .ticker-row .change-cell {
    min-width: 70px;
    text-align: center;
  }
  
  .ticker-dropdown td {
    padding: 10px;
  }
  
  .recommendation-card {
    padding: 10px;
  }
  
  .analysis-breakdown .row {
    margin: 0;
  }
  
  .analysis-breakdown .col-md-4 {
    padding: 5px;
    margin-bottom: 10px;
  }
  
  .analysis-item {
    padding: 8px;
    margin-bottom: 8px;
  }
  
  .analysis-item .text-light {
    font-size: 0.9rem;
  }
  
  .score-breakdown {
    padding: 10px;
  }
  
  .score-breakdown .col-md-4 {
    padding: 5px;
    margin-bottom: 8px;
  }
  
  .ticker-actions .btn {
    font-size: 0.8rem;
    padding: 4px 8px;
    margin: 2px;
  }
  
  .alert h5 {
    font-size: 1rem;
  }
  
  .alert p {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .table-responsive {
    font-size: 0.8rem;
  }
  
  .ticker-row td {
    padding: 6px 2px;
  }
  
  .recommendation-card {
    padding: 8px;
  }
  
  .analysis-item {
    padding: 6px;
  }
  
  .ticker-actions {
    text-align: center;
  }
  
  .ticker-actions .btn {
    display: block;
    width: 100%;
    margin: 4px 0;
  }
}


  







.fuel-gauge-container {
      background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
      border-radius: 12px;
      padding: 20px;
      margin: 15px 0;
      border: 1px solid #333;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    .fuel-level {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
    }

    .fuel-level-text {
      color: #ffd700;
      font-weight: bold;
      font-size: 16px;
    }

    .fuel-percentage {
      font-size: 28px;
      font-weight: bold;
      color: #ffd700;
      text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
      transition: all 0.3s ease;
    }

    .fuel-warning {
      font-size: 24px;
      transition: all 0.3s ease;
    }

    .fuel-warning.low { color: #ff4444; }
    .fuel-warning.medium { color: #ffd700; }
    .fuel-warning.high { color: #00ff00; }

    .fuel-slider {
      width: 100%;
      height: 8px;
      background: linear-gradient(to right, #ff4444 0%, #ffd700 50%, #00ff00 100%);
      border-radius: 4px;
      outline: none;
      margin: 10px 0;
      position: relative;
      transition: all 0.3s ease;
    }

    .fuel-slider::-webkit-slider-thumb {
      appearance: none;
      width: 24px;
      height: 24px;
      background: radial-gradient(circle, #ffd700, #ffaa00);
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
      transition: all 0.3s ease;
    }

    .fuel-slider::-webkit-slider-thumb:hover {
      transform: scale(1.2);
      box-shadow: 0 0 20px rgba(255, 215, 0, 1);
    }

    .fuel-slider::-moz-range-thumb {
      width: 24px;
      height: 24px;
      background: radial-gradient(circle, #ffd700, #ffaa00);
      border-radius: 50%;
      cursor: pointer;
      border: none;
      box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
      transition: all 0.3s ease;
    }

    .fuel-slider.active {
      box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
      animation: fuel-flow 1.5s ease-in-out;
    }

    @keyframes fuel-flow {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    .fuel-markers {
      display: flex;
      justify-content: space-between;
      margin-top: 10px;
      padding: 0 12px;
    }

    .fuel-marker {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      transition: all 0.3s ease;
      opacity: 0.6;
    }

    .fuel-marker.active {
      opacity: 1;
      transform: scale(1.1);
    }

    .fuel-marker-line {
      width: 2px;
      height: 12px;
      background: #666;
      margin-bottom: 5px;
      transition: all 0.3s ease;
    }

    .fuel-marker.active .fuel-marker-line {
      background: #ffd700;
      box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    }

    .fuel-marker-text {
      font-size: 10px;
      color: #999;
      font-weight: bold;
      transition: all 0.3s ease;
    }

    .fuel-marker.active .fuel-marker-text {
      color: #ffd700;
    }

    .fuel-marker:hover {
      opacity: 1;
      transform: scale(1.05);
    }

    .fuel-info {
      margin-top: 15px;
      text-align: center;
    }

    .fuel-info-text {
      font-size: 12px;
      color: #aaa;
      font-style: italic;
    }

    /* Short Squeeze Styles */
    .bg-danger-gradient {
      background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    }
    
    .short-squeeze-item {
      background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
      border-radius: 8px;
      padding: 12px;
      margin-bottom: 8px;
      border-left: 4px solid;
      transition: all 0.3s ease;
    }
    
    .short-squeeze-item:hover {
      transform: translateX(5px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .short-squeeze-item.high-score {
      border-left-color: #dc3545;
      background: linear-gradient(135deg, #2a1a1a 0%, #1a0a0a 100%);
    }
    
    .short-squeeze-item.medium-score {
      border-left-color: #ffc107;
      background: linear-gradient(135deg, #2a1a1a 0%, #1a1a0a 100%);
    }
    
    .short-squeeze-item.low-score {
      border-left-color: #28a745;
      background: linear-gradient(135deg, #1a2a1a 0%, #0a1a0a 100%);
    }
    
    .squeeze-score {
      background: radial-gradient(circle, #dc3545, #c82333);
      color: white;
      padding: 4px 8px;
      border-radius: 12px;
      font-weight: bold;
      font-size: 0.8em;
      display: inline-block;
      box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    }
    
    .squeeze-score.medium {
      background: radial-gradient(circle, #ffc107, #e0a800);
      color: #333;
    }
    
    .squeeze-score.low {
      background: radial-gradient(circle, #28a745, #1e7e34);
      color: white;
    }
    
    .short-interest-bar {
      background: #333;
      height: 4px;
      border-radius: 2px;
      overflow: hidden;
      margin: 4px 0;
    }
    
    .short-interest-fill {
      height: 100%;
      background: linear-gradient(to right, #28a745, #ffc107, #dc3545);
      transition: width 0.3s ease;
    }

    /* Real vs Estimated Data Styling */
.short-interest-fill.real-data {
  background: linear-gradient(90deg, #28a745, #20c997);
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
}

.short-interest-fill.estimated-data {
  background: linear-gradient(90deg, #ffc107, #fd7e14);
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.3);
}

.badge.bg-success {
  background-color: #28a745 !important;
  font-size: 0.7em;
  border-radius: 8px;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
  font-size: 0.7em;
  border-radius: 8px;
}

/* Mobile responsiveness */
    @media (max-width: 768px) {
      .fuel-gauge-container {
        padding: 15px;
      }
      
      .fuel-level {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }
      
      .fuel-percentage {
        font-size: 24px;
      }
      
      .fuel-marker-text {
        font-size: 8px;
      }
    }










/* =================================
   BASE & TYPOGRAPHY STYLES
   ================================= */
/* Styles for large digits, often used in countdowns or prominent displays */
.digit {
  font-size: 60px;
  font-weight: bold;
  font-family: sans-serif;
  fill: #4CAF50; /* Green fill color */
  dominant-baseline: central;
  text-anchor: middle;
}

/* Base styles for text colors */
.text-light {
  color: #fff; /* White text */
}

.text-success {
  color: #28a745; /* Green text, typically for positive values */
}

.text-danger {
  color: #dc3545; /* Red text, typically for negative values */
}

/* =================================
   CIRCLE & PULSE ANIMATION
   ================================= */
/* Styles for a circular element, often used with an animation */
.circle {
  stroke: #e73605b7; /* Semi-transparent red stroke */
  stroke-width: 4;
  fill: none;
  animation: pulse 2s infinite alternate; /* Applies a pulse animation */
}

/* Keyframe animation for a pulsing effect */
@keyframes pulse {
  0% {
    stroke-width: 4;
    opacity: 1;
    r: 20; /* Initial radius */
  }
  100% {
    stroke-width: 0;
    opacity: 0;
    r: 40; /* Final radius, creating a fading out, expanding effect */
  }
}

/* =================================
   FADE-IN ANIMATIONS
   ================================= */
/* Keyframe animation for a general fade-in effect with a slight upward translation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keyframe animation for fading in teaser text */
@keyframes fadeInTeaser {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Keyframe animation for fading in main content */
@keyframes fadeInContent {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Applies fade-in animation to teaser text */
.fade-in-teaser {
  color: #fff !important; /* Ensures white color */
  opacity: 0; /* Starts invisible */
  animation: fadeInTeaser 1.5s ease-in-out forwards; /* Applies specific fade-in animation */
}

/* Applies fade-in animation to main content */
.fade-in-content {
  opacity: 1; /* Always visible - animation disabled */
  /* animation: fadeInContent 1s ease-in-out forwards; Animation disabled */
}

/* Applies fade-in animation to dynamic content cards */
.fade-in {
  opacity: 1; /* Always visible - animation disabled */
  /* animation: fadeIn 1s ease-in-out forwards; Animation disabled */
}

/* =================================
   LAYOUT & FLEX UTILITIES
   ================================= */
/* Flexbox utility classes for common layouts */
.d-flex {
  display: flex;
  overflow: visible !important; /* Ensures content is not clipped */
}

.align-items-center {
  align-items: center; /* Vertically aligns items in a flex container */
}

.me-2 {
  margin-right: 0.5rem; /* Margin-right utility */
}

/* Scroll snap container for horizontal scrolling with snapping behavior */
.layered-container {
  display: flex;
  overflow-x: auto; /* Enables horizontal scrolling */
  scroll-snap-type: x mandatory; /* Enforces snapping on the x-axis */
  -webkit-overflow-scrolling: touch; /* Improves scrolling on iOS */
  gap: 1rem; /* Space between flex items */
}

.layered-container > * {
  flex: 0 0 100%; /* Each direct child takes full width */
  scroll-snap-align: start; /* Snaps to the start of each child */
}

/* =================================
   LOGO & TICKER STYLING
   ================================ */
/* Base styling for company logos and ticker images */
.company-logo,
.ticker-card img {
  border-radius: 6px;
  object-fit: contain; /* Ensures image fits within its bounds */
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white border */
  width: 54px !important;
  height: 54px !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8); /* White glow effect */
}

/* Container for logos, providing minimum dimensions */
.logo-container {
  position: relative;
  min-width: 48px;
  min-height: 38px;
}

/* Fallback styles for logos when an image isn't available, displaying initials */
.logo-fallback,
.initials-logo {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  text-align: center;
  line-height: 1;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  width: 32px;
  height: 32px;
  border-radius: 50%; /* Circular shape */
  background-color: #444; /* Dark gray background */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Specific column width definitions for tables */
.name-cell {
  min-width: 200px;
}

.symbol-cell {
  min-width: 80px;
  font-weight: bold;
}

.price-cell,
.change-cell {
  min-width: 100px;
}

/* =================================
   NAVBAR & OFFCANVAS STYLING
   ================================= */
/* Logo styling within the navbar */
.logo {
  width: auto;
  height: auto;
  max-width: 40px;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out, opacity 0.3s ease; /* Smooth transitions */
}

/* Navbar brand (logo and site title) styling */
.navbar-brand {
  overflow: hidden;
  display: flex;
  align-items: center;
  width: fit-content;
  font-size: 1.1rem;
  padding: 10px;
  margin-right: 20px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px); /* Slight upward lift on hover */
}

.logo:hover {
  transform: scale(1.1); /* Slight zoom on logo hover */
}

/* Offcanvas menu styling */
.offcanvas {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); /* Gradient background */
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}

/* Navigation link styling within offcanvas */
.nav-link {
  border-radius: 8px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1); /* Light background on hover */
  transform: translateX(5px); /* Slight right shift on hover */
}

.nav-link.active {
  background: rgba(0, 255, 136, 0.2); /* Active link background */
  color: #00ff88 !important; /* Active link text color */
}

/* Twitter follow button styling */
.twitter-follow-button {
  margin: 10 auto;
  display: block;
  width: 100%;
  max-width: 6ch;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

/* =================================
   BOOTSTRAP OVERRIDES
   ================================= */
/* Overrides Bootstrap primary button styles to a dark red theme */
.btn-primary {
  background-color: #cb6c6c !important;
  border-color: #684343 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #b76161 !important;
  border-color: #ad6464 !important;
}

/* Overrides all Bootstrap dark backgrounds to pure black */
.bg-dark {
  background-color: #000 !important;
}

/* Custom utility class for a dark red card background */
.bg-darkred {
  background-color: #d27979 !important;
  color: #FFFFFF !important;
}

/* Override analyze button colors */
#analyzeButton {
  background-color: #5d05059d !important; /* your desired bg color */
  border-color: #e73605 !important; /* match the border */
  color: #ffffff !important; /* text color */
}

#analyzeButton:hover,
#analyzeButton:focus {
  background-color: #2bc21d3c !important; /* slightly darker on hover */
  border-color: #23c71b !important;
}

/* =================================
   FORM & SEARCH STYLING
   ================================= */
/* Search input border color override */
#symbolInput {
  border-color: #a9a9a9e2 !important;
}

#symbolInput:focus {
  border-color: #988c8c !important;
  box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.25) !important; /* Custom focus shadow */
}

/* Futuristic search wrapper styling */
nav .input-group {
  border: 1px solid rgb(203, 173, 173);
  border-radius: 15px;
  box-shadow: none !important;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background */
  overflow: hidden;
  padding: 2px;
}

/* Removes default inner borders and background for input group elements */
nav .input-group .form-control,
nav .input-group .btn {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* Rounds inner elements of the search input to match the wrapper */
nav .input-group .form-control {
  border-radius: 15px 0 0 15px !important;
}

nav .input-group .btn {
  border-radius: 0 15px 15px 0 !important;
}

nav .input-group.loading {
  animation: none !important;
  box-shadow: none !important;
}

/* Loading state glow animation for search wrapper */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 5px #0ff, 0 0 15px rgb(140, 110, 110);
  }
  50% {
    box-shadow: 0 0 15px #0ff, 0 0 30px rgb(255, 0, 0);
  }
}

/* Suggestions dropdown for ticker search */
.ticker-suggestions,
.ticker-command-list {
  position: absolute;
  top: 100%; /* Positions below the input */
  left: 0;
  right: 0;
  background: #2c3e50; /* Dark blue-gray background */
  border: 1px solid #34495e;
  border-radius: 0.375rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000; /* Ensures it appears above other content */
  max-height: 300px;
  overflow-y: auto;
  margin-top: 2px;
  display: none; /* Hidden by default, toggled by JS */
}

.ticker-command-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #34495e;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--bs-light); /* Uses Bootstrap light color variable */
}

.ticker-command-item:hover,
.ticker-command-item.selected {
  background: #3498db; /* Blue background on hover/selection */
  color: white;
}

.ticker-command-item:last-child {
  border-bottom: none; /* No border for the last item */
}

.ticker-command-item.loading {
  justify-content: center;
  color: #95a5a6; /* Gray text for loading state */
}

.ticker-command-item.no-results {
  text-align: center;
  color: #95a5a6;
  font-style: italic;
}

.ticker-info {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ticker-symbol {
  font-weight: bold;
  color: #3498db;
  font-size: 14px;
}

.ticker-command-item:hover .ticker-symbol,
.ticker-command-item.selected .ticker-symbol {
  color: white;
}

.ticker-title {
  font-size: 12px;
  color: #bdc3c7;
  margin-top: 2px;
}

.ticker-command-item:hover .ticker-title,
.ticker-command-item.selected .ticker-title {
  color: rgba(255, 255, 255, 0.9);
}

/* =================================
   CARD COMPONENTS
   ================================= */
/* Futuristic card-body styling */
.card-body {
  background: rgba(0, 0, 0, 0.6) !important; /* Semi-transparent black background */
  border: 1px solid rgb(199, 91, 91) !important; /* Reddish border */
  border-radius: 0.5rem;
  box-shadow: 0 0 8px #0ff, 0 0 16px rgb(194, 114, 114); /* Blue and reddish glow */
  color: #fff;
}

/* Futuristic carousel card styling */
.futuristic-card {
  border: 1px solid rgb(185, 121, 121);
  border-radius: 15px;
  box-shadow: 0 0 10px rgb(136, 102, 102), 0 0 20px #0ff; /* Reddish and blue glow */
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

/* Info table styling with rounded corners */
table.info-table {
  border-radius: 0.5rem;
  overflow: hidden; /* Ensures border-radius is applied to content */
  border: 1px solid #FFFFFF;
  background-color: #ffffff !important;
}

/* Card styling for ticker items */
.ticker-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth transition for hover effects */
  border-left: 3px solid transparent; /* Left border for sentiment indication */
}

.ticker-card:hover {
  transform: translateY(-2px); /* Slight upward lift on hover */
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1); /* Soft shadow on hover */
  border-color: rgba(255, 255, 255, 0.3) !important;
  border-left-color: #007bff; /* Default blue left border on hover */
}

/* Specific left border colors on hover based on sentiment data attribute */
.ticker-card[data-sentiment="bullish"]:hover {
  border-left-color: #28a745;
}

.ticker-card[data-sentiment="bearish"]:hover {
  border-left-color: #dc3545;
}

.ticker-card[data-sentiment="neutral"]:hover {
  border-left-color: #ffc107;
}

/* Hover glow effect for cards */
.hover-glow:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
}

/* Seasonality card styling */
.seasonality-card {
  width: 90%;
  max-width: 650px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: linear-gradient(145deg, #1a1a2e, #16213e); /* Dark gradient background */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Responsive Seasonality Chart Styles */
.seasonality-chart-container {
  position: relative;
  min-height: 300px;
  width: 100%;
}

/* Mobile Seasonality Chart */
.mobile-seasonality-chart {
  padding: 0 10px;
  width: 100%;
  overflow-x: hidden;
}

.chart-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.legend-mobile {
  flex-wrap: wrap;
  gap: 8px;
}

.legend-item-mobile {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.tsla-dot {
  background: linear-gradient(180deg, rgba(54, 162, 235, 0.9), rgba(54, 162, 235, 0.7));
}

.spy-dot {
  background: linear-gradient(180deg, rgba(255, 206, 86, 0.9), rgba(255, 206, 86, 0.7));
}

.legend-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Mobile Month Cards */
.mobile-months-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.month-card {
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.05));
  border-radius: 10px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.month-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 212, 170, 0.3);
}

.month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.month-name {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.month-performance {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.performance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.performance-bar {
  width: 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  min-height: 20px;
}

.performance-bar:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.performance-bar.tsla {
  background: linear-gradient(180deg, rgba(54, 162, 235, 0.9), rgba(54, 162, 235, 0.7));
  box-shadow: 0 2px 8px rgba(54, 162, 235, 0.3);
}

.performance-bar.spy {
  background: linear-gradient(180deg, rgba(255, 206, 86, 0.9), rgba(255, 206, 86, 0.7));
  box-shadow: 0 2px 8px rgba(255, 206, 86, 0.3);
}

.performance-bar.negative {
  background: linear-gradient(180deg, rgba(255, 99, 132, 0.9), rgba(220, 20, 60, 0.8));
  box-shadow: 0 2px 8px rgba(255, 99, 132, 0.4);
}

.performance-value {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  min-width: 35px;
  white-space: nowrap;
}

.performance-value.positive {
  color: #00D4AA;
}

.performance-value.negative {
  color: #ff6b6b;
}

/* Desktop Seasonality Chart */
.desktop-seasonality-chart {
  padding: 20px;
}

.chart-grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  align-items: center;
  height: 250px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.05));
  border-radius: 12px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-baseline {
  position: absolute;
  top: 50%;
  left: 15px;
  right: 15px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(0, 212, 170, 0.4), rgba(255, 255, 255, 0.3));
  z-index: 1;
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(0, 212, 170, 0.2);
}

.zero-line-label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 500;
  z-index: 2;
}

.chart-month {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.chart-bars {
  display: flex;
  flex-direction: row;
  gap: 3px;
  align-items: flex-end;
  height: 160px;
  position: relative;
}

.chart-bar {
  width: 12px;
  border-radius: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.chart-bar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.chart-bar.tsla {
  background: linear-gradient(180deg, rgba(54, 162, 235, 0.9), rgba(54, 162, 235, 0.7));
}

.chart-bar.spy {
  background: linear-gradient(180deg, rgba(255, 206, 86, 0.9), rgba(255, 206, 86, 0.7));
}

.chart-bar.negative {
  background: linear-gradient(180deg, rgba(255, 99, 132, 0.9), rgba(220, 20, 60, 0.8));
}

.month-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

/* Legend Styles */
.seasonality-legend {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.legend-color {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tsla-color {
  background: linear-gradient(180deg, rgba(54, 162, 235, 0.9), rgba(54, 162, 235, 0.7));
}

.spy-color {
  background: linear-gradient(180deg, rgba(255, 206, 86, 0.9), rgba(255, 206, 86, 0.7));
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .seasonality-card {
    width: 95%;
    max-width: none;
    margin: 0 auto;
  }
  
  .seasonality-chart-container {
    min-height: 250px;
  }
  
  .mobile-months-container {
    gap: 10px;
    margin-top: 15px;
  }
  
  .month-card {
    padding: 12px;
  }
  
  .month-header {
    margin-bottom: 10px;
  }
  
  .month-name {
    font-size: 13px;
  }
  
  .month-performance {
    gap: 12px;
  }
  
  .performance-bar {
    width: 18px;
  }
  
  .performance-value {
    font-size: 10px;
    min-width: 30px;
  }
  
  .legend-mobile {
    gap: 6px;
  }
  
  .legend-text {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .seasonality-card .card-body {
    padding: 15px 10px;
  }
  
  .mobile-months-container {
    gap: 8px;
  }
  
  .month-card {
    padding: 10px;
  }
  
  .month-performance {
    gap: 10px;
    justify-content: space-between;
    width: 100%;
  }
  
  .performance-bar {
    width: 16px;
  }
  
  .performance-value {
    font-size: 9px;
    min-width: 28px;
  }
  
  .month-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .month-performance {
    justify-content: flex-start;
    gap: 15px;
  }
  
  .legend-mobile {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .month-card {
    padding: 8px;
  }
  
  .month-name {
    font-size: 12px;
  }
  
  .month-performance {
    gap: 6px;
  }
  
  .performance-bar {
    width: 14px;
  }
  
  .performance-value {
    font-size: 8px;
    min-width: 25px;
  }
  
  .legend-text {
    font-size: 10px;
  }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
  .seasonality-chart-container {
    min-height: 200px;
  }
  
  .mobile-months-container {
    gap: 8px;
    margin-top: 10px;
  }
  
  .month-card {
    padding: 8px;
  }
  
  .month-header {
    margin-bottom: 8px;
  }
  
  .month-performance {
    gap: 10px;
  }
}

/* Legend item styling for charts */
.legend-item {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #adb5bd;
}

.legend-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 6px;
}

/* Gradient background utility classes */
.bg-primary-gradient {
  background: linear-gradient(45deg, #3a7bd5, #00d2ff);
}

.bg-purple-gradient {
  background: linear-gradient(45deg, #8e2de2, #4a00e0);
}

.bg-info-gradient {
  background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%) !important;
  color: white !important;
}

.bg-warning-gradient {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
  color: #000 !important;
}

.bg-success-gradient {
  background: linear-gradient(135deg, #198754 0%, #146c43 100%) !important;
  color: white !important;
}

.bg-teal {
  background-color: #20c997;
}

.bg-gray {
  background-color: #6c757d;
}

/* Carousel indicators styling */
.carousel-indicators-container {
  display: flex;
  justify-content: center;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
}

.carousel-indicators button.active {
  background-color: #3a7bd5;
  transform: scale(1.2); /* Slightly larger for active indicator */
}

/* =================================
   LOADING & SPINNER ANIMATIONS
   ================================= */
/* Enhanced glimpse and lightning spinner with better visibility */
.spinner-logo {
  width: 100px;
  height: 100px;
  animation:
    glimpseLightning 4s ease-in-out infinite,
    lightningFlash 6s linear infinite,
    subtleFloat 3s ease-in-out infinite;
  opacity: 0.9;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)); /* White drop shadow */
  position: relative;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

/* Keyframe animation for a glimpse and lightning effect */
@keyframes glimpseLightning {
  0% {
    opacity: 0.3;
    filter:
      drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)) brightness(0.8);
  }
  25% {
    opacity: 0.7;
    filter:
      drop-shadow(0 0 15px rgba(0, 150, 255, 0.7)) brightness(1.2);
  }
  50% {
    opacity: 1;
    filter:
      drop-shadow(0 0 25px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 35px rgba(0, 200, 255, 0.6)) brightness(1.5);
  }
  75% {
    opacity: 0.8;
    filter:
      drop-shadow(0 0 20px rgba(255, 100, 0, 0.8)) brightness(1.1);
  }
  100% {
    opacity: 0.4;
    filter:
      drop-shadow(0 0 8px rgba(255, 255, 255, 0.4)) brightness(0.9);
  }
}

/* Keyframe animation for a lightning flash effect */
@keyframes lightningFlash {
  0%,
  90%,
  100% {
    box-shadow:
      0 0 10px rgba(255, 255, 255, 0.3),
      0 0 20px rgba(0, 150, 255, 0.2);
  }
  5% {
    box-shadow:
      0 0 30px rgba(255, 255, 255, 1),
      0 0 50px rgba(255, 255, 0, 0.8),
      0 0 70px rgba(255, 255, 255, 0.6);
  }
  10% {
    box-shadow:
      0 0 15px rgba(255, 255, 255, 0.4),
      0 0 25px rgba(0, 150, 255, 0.3);
  }
  15% {
    box-shadow:
      0 0 40px rgba(255, 255, 255, 1),
      0 0 60px rgba(0, 255, 255, 0.9),
      0 0 80px rgba(255, 255, 255, 0.7);
  }
}

/* Keyframe animation for a subtle floating effect */
@keyframes subtleFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Keyframe animation for a more dramatic floating effect with scaling */
@keyframes dramaticFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  33% {
    transform: translateY(-12px) scale(1.05);
  }
  66% {
    transform: translateY(-6px) scale(0.98);
  }
}

/* Keyframe animation for a color shifting effect */
@keyframes colorShift {
  0% {
    filter: hue-rotate(0deg) brightness(1) saturate(1);
  }
  25% {
    filter: hue-rotate(90deg) brightness(1.3) saturate(1.5);
  }
  50% {
    filter: hue-rotate(180deg) brightness(1.1) saturate(1.2);
  }
  75% {
    filter: hue-rotate(270deg) brightness(1.4) saturate(1.3);
  }
  100% {
    filter: hue-rotate(360deg) brightness(1) saturate(1);
  }
}

/* Applies enhanced animations to the spinner logo */
.spinner-logo.enhanced {
  animation:
    glimpseLightning 3s ease-in-out infinite,
    lightningFlash 4s linear infinite,
    dramaticFloat 2.5s ease-in-out infinite,
    colorShift 5s linear infinite;
}

/* Fallback glimpse animation for compatibility */
@keyframes glimpse {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* =================================
   SPINNER ELECTRIC PARTICLES
   ================================= */
/* Adds electric particles around the spinner using pseudo-elements */
.spinner-logo::before,
.spinner-logo::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(0, 150, 255, 0.8) 40%, transparent 70%);
  border-radius: 50%;
  animation: electricOrbit 2.5s linear infinite;
  opacity: 0.8;
}

.spinner-logo::before {
  top: -15px;
  left: 50%;
  margin-left: -3px;
  animation-delay: 0s;
  background: radial-gradient(circle, rgba(255, 255, 0, 1) 0%, rgba(255, 150, 0, 0.8) 40%, transparent 70%);
}

.spinner-logo::after {
  top: 50%;
  right: -15px;
  margin-top: -3px;
  animation-delay: 1.25s;
  background: radial-gradient(circle, rgba(0, 255, 255, 1) 0%, rgba(0, 150, 255, 0.8) 40%, transparent 70%);
}

/* Keyframe animation for electric particles orbiting the spinner */
@keyframes electricOrbit {
  0% {
    transform: rotate(0deg) translateX(60px) rotate(0deg) scale(0.5);
    opacity: 0.3;
  }
  25% {
    transform: rotate(90deg) translateX(60px) rotate(-90deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotate(180deg) translateX(60px) rotate(-180deg) scale(0.8);
    opacity: 0.7;
  }
  75% {
    transform: rotate(270deg) translateX(60px) rotate(-270deg) scale(1.2);
    opacity: 0.9;
  }
  100% {
    transform: rotate(360deg) translateX(60px) rotate(-360deg) scale(0.5);
    opacity: 0.3;
  }
}

/* =================================
   LOADING TEXT EFFECTS
   ================================= */
/* Loading text with electric effect */
.loading-text span {
  animation: electricText 2s ease-in-out infinite;
  opacity: 0.8;
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Keyframe animation for electric text effect */
@keyframes electricText {
  0%,
  100% {
    opacity: 0.6;
    transform: translateY(0px);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  }
  25% {
    opacity: 0.9;
    transform: translateY(-3px);
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.8);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
    text-shadow:
      0 0 20px rgba(255, 255, 255, 1),
      0 0 30px rgba(255, 255, 0, 0.6);
  }
  75% {
    opacity: 0.8;
    transform: translateY(-2px);
    text-shadow: 0 0 12px rgba(255, 100, 0, 0.7);
  }
}

/* =================================
   ALERTS & ICON ANIMATIONS
   ================================= */
/* Keyframe animation for a shining effect on alerts */
@keyframes shine {
  0% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
  }
}

.alert-shine {
  animation: shine 2s infinite ease-in-out; /* Applies the shine animation */
}

/* Keyframe animation for a vibration (shake) effect */
@keyframes shake {
  0% {
    transform: translate(0px, 0px);
  }
  25% {
    transform: translate(-2px, 0px);
  }
  50% {
    transform: translate(2px, 0px);
  }
  75% {
    transform: translate(-2px, 0px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}

.vibrate {
  animation: shake 0.5s ease-in-out infinite; /* Applies the shake animation */
}

/* Animated chart line icon */
.animated-chart-icon polyline {
  stroke-dasharray: 100; /* Sets the length of the dash and gap */
  stroke-dashoffset: 100; /* Hides the line initially */
  animation: draw-line 9s ease-in-out infinite alternate; /* Animates drawing the line */
}

/* Keyframe animation to draw a line by animating stroke-dashoffset */
@keyframes draw-line {
  to {
    stroke-dashoffset: 0; /* Draws the line completely */
  }
}

/* =================================
   CHECK-LIST ANIMATION
   ================================= */
/* Styling for a custom check-list */
.check-list {
  padding-left: 0;
  list-style: none; /* Removes default list bullets */
}

.check-list li {
  display: flex;
  align-items: center;
  opacity: 0; /* Starts invisible */
  transform: translateY(20px); /* Starts slightly below its final position */
  animation: fadeInUp 0.6s ease-out forwards; /* Applies fade-in-up animation */
}

/* Animation delays for staggered appearance of list items */
.check-list li:nth-child(1) {
  animation-delay: 0.2s;
}

.check-list li:nth-child(2) {
  animation-delay: 0.4s;
}

.check-list li:nth-child(3) {
  animation-delay: 0.6s;
}

/* Keyframe animation for fading in and moving up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================================
   LOADING OVERLAYS
   ================================= */
/* Full-screen centered loading overlay */
#loading {
  position: fixed !important;
  inset: 0 !important; /* Covers the entire viewport */
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Ensures it's on top */
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  backdrop-filter: blur(5px); /* Blurs content behind it */
  -webkit-backdrop-filter: blur(5px);
}

/* Full-screen no-data overlay */
.no-data-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85); /* More opaque black background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.no-data-overlay .no-data-content {
  text-align: center;
  color: #fff;
}

.no-data-overlay .no-data-content img {
  max-width: 200px;
  margin-bottom: 1rem;
}

/* =================================
   OPTIONS FLOW DROPDOWN
   ================================= */
/* Card styling for options insights */
.options-insights-card {
  background: linear-gradient(135deg, #4B0082 0%, #6A0A9A 50%, #8B00B3 100%); /* Purple gradient */
  border: 1px solid rgba(75, 0, 130, 0.3);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(75, 0, 130, 0.2);
}

/* Dropdown toggle button styling */
.options-dropdown-toggle {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.options-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px); /* Slight upward lift on hover */
}

/* Chevron icon animation for dropdowns */
.options-chevron {
  transition: transform 0.3s ease-in-out;
}

.options-chevron.rotated {
  transform: rotate(180deg); /* Rotates 180 degrees when 'rotated' class is applied */
}

/* Grid layout for options metrics */
.options-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Responsive grid columns */
  gap: 1rem;
}

/* Metric card styling */
.metric-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  backdrop-filter: blur(10px); /* Blurs content behind the card */
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px); /* Slight upward lift on hover */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Sentiment badge styling */
.sentiment-badge {
  font-weight: 600;
  border-radius: 2rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
}

/* Specific sentiment badge colors */
.sentiment-bullish {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
}

.sentiment-bearish {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
}

.sentiment-neutral {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
}

/* Options table container with custom scrollbar */
.options-table-container {
  max-height: 250px;
  overflow-y: auto; /* Enables vertical scrolling */
  scrollbar-width: thin; /* Firefox scrollbar width */
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent; /* Firefox scrollbar colors */
}

/* Webkit scrollbar styling */
.options-table-container::-webkit-scrollbar {
  width: 6px;
}

.options-table-container::-webkit-scrollbar-track {
  background: transparent;
}

.options-table-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.options-table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Volume and Open Interest (OI) bars */
.volume-bar {
  height: 4px;
  background: linear-gradient(90deg, #059669, #10B981); /* Green gradient */
  border-radius: 2px;
  transition: width 0.5s ease; /* Smooth width transition */
}

.oi-bar {
  height: 4px;
  background: linear-gradient(90deg, #DC2626, #EF4444); /* Red gradient */
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* Purple text utility */
.text-purple {
  color: #8B5CF6 !important;
}

/* Progress bar styling overrides */
.progress {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.progress-bar {
  border-radius: 4px;
}

/* Fade-in animation for metrics */
.fade-in-metric {
  animation: fadeInMetric 0.6s ease-out forwards;
}

/* Keyframe for fade-in metric animation */
@keyframes fadeInMetric {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced interactivity for metric card headings */
.metric-card .h4,
.metric-card .h5,
.metric-card .h6 {
  transition: all 0.3s ease;
}

.metric-card:hover .h4,
.metric-card:hover .h5,
.metric-card:hover .h6 {
  transform: scale(1.05); /* Slightly scales up headings on hover */
}

/* Staggered fade-in for metric cards in a grid */
.options-metrics-grid .metric-card {
  animation: fadeInMetric 0.6s ease-out forwards;
}

.options-metrics-grid .metric-card:nth-child(1) {
  animation-delay: 0.1s;
}

.options-metrics-grid .metric-card:nth-child(2) {
  animation-delay: 0.2s;
}

.options-metrics-grid .metric-card:nth-child(3) {
  animation-delay: 0.3s;
}

.options-metrics-grid .metric-card:nth-child(4) {
  animation-delay: 0.4s;
}

.options-metrics-grid .metric-card:nth-child(5) {
  animation-delay: 0.5s;
}

.options-metrics-grid .metric-card:nth-child(6) {
  animation-delay: 0.6s;
}

.options-metrics-grid .metric-card:nth-child(7) {
  animation-delay: 0.7s;
}

.options-metrics-grid .metric-card:nth-child(8) {
  animation-delay: 0.8s;
}

/* =================================
   FUEL-STYLE SLIDER
   ================================= */
/* Container for the fuel gauge slider */
.fuel-gauge-container {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(30, 30, 30, 0.9) 100%);
  border-radius: 20px;
  padding: 25px;
  border: 2px solid rgba(255, 215, 0, 0.3); /* Gold border */
  position: relative;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

/* Fuel pump icon using a pseudo-element */
.fuel-gauge-container::before {
  /* content: '⛽';  */
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 24px;
  background: linear-gradient(135deg, #1a1a1a, #333);
  padding: 8px 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Styling for the fuel level display */
.fuel-level {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.fuel-level-text {
  font-size: 16px;
  font-weight: 600;
  color: #ffd700; /* Gold text */
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fuel-percentage {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 2px 15px rgba(255, 255, 255, 0.3);
  min-width: 80px;
  text-align: center;
}

/* Custom range input (slider) styling */
.fuel-slider {
  -webkit-appearance: none; /* Removes default Webkit styles */
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right,
      #dc3545 0%,
      #fd7e14 20%,
      #ffc107 40%,
      #28a745 60%,
      #20c997 80%,
      #17a2b8 100%); /* Multi-color gradient for the track */
  outline: none;
  opacity: 0.8;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.fuel-slider:hover {
  opacity: 1;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); /* Gold glow on hover */
}

/* Webkit (Chrome, Safari) slider thumb styling */
.fuel-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #ffb300 50%, #ff8f00 100%); /* Gold gradient for thumb */
  cursor: pointer;
  border: 4px solid #1a1a1a; /* Dark border around thumb */
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.fuel-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: scale(1.15); /* Scales up on hover */
}

.fuel-slider::-webkit-slider-thumb:active {
  transform: scale(1.25); /* Scales up more when active */
  box-shadow: 0 0 40px rgba(255, 215, 0, 1.2);
}

/* Firefox slider thumb and track styling */
.fuel-slider::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #ffb300 50%, #ff8f00 100%);
  cursor: pointer;
  border: 4px solid #1a1a1a;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.fuel-slider::-moz-range-track {
  width: 100%;
  height: 12px;
  cursor: pointer;
  background: linear-gradient(to right,
      #dc3545 0%,
      #fd7e14 20%,
      /* #ffc107 40%, */
      #28a745 60%,
      #20c997 80%,
      /* #17a2b8 100% */
      );
  border-radius: 6px;
}

/* Fuel markers (e.g., E, F) */
.fuel-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding: 0 15px;
}

.fuel-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}

.fuel-marker-line {
  width: 3px;
  height: 15px;
  background: rgba(255, 255, 255, 0.3);
  margin-bottom: 8px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.fuel-marker-text {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fuel-marker.active {
  color: #ffd700; /* Gold color for active marker */
  transform: translateY(-2px);
}

.fuel-marker.active .fuel-marker-line {
  background: linear-gradient(to top, #ffd700, #ffb300); /* Gold gradient for active line */
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  height: 20px;
}

/* Fuel warning indicators (low, medium, high) */
.fuel-warning {
  font-size: 20px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px currentColor); /* Glow based on text color */
}

.fuel-warning.low {
  color: #dc3545;
  animation: pulse-red 1.5s infinite;
}

.fuel-warning.medium {
  color: #ffc107;
  animation: pulse-yellow 2s infinite;
}

.fuel-warning.high {
  color: #28a745;
  animation: pulse-green 2.5s infinite;
}

/* Keyframe animations for warning pulses */
@keyframes pulse-red {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes pulse-yellow {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes pulse-green {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.03);
  }
}

/* Animated fuel flow effect for the slider track */
@keyframes fuel-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.fuel-slider.active {
  background: linear-gradient(45deg,
      #dc3545, #fd7e14, #ffc107, #28a745, #20c997, #17a2b8,
      #dc3545, #fd7e14, #ffc107, #28a745, #20c997, #17a2b8); /* Repeating gradient */
  background-size: 400% 400%; /* Larger background for animation */
  animation: fuel-flow 2s ease infinite; /* Applies the fuel flow animation */
}

/* Fuel information panel */
.fuel-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  margin-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fuel-info-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.4;
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */
/* Seasonality chart width on large screens */
@media (min-width: 992px) {
  #seasonalitySection canvas#seasonalityChart {
    width: 70% !important;
    margin: 0 auto;
  }
}

/* Responsive adjustments for fuel gauge container */
@media (max-width: 768px) {
  .fuel-gauge-container {
    padding: 20px 15px;
  }

  .fuel-level {
    flex-direction: column; /* Stacks items vertically on small screens */
    gap: 10px;
  }

  .fuel-percentage {
    font-size: 24px;
  }

  .fuel-markers {
    padding: 0 10px;
  }

  .fuel-marker-text {
    font-size: 9px;
  }
}





/* Professional Analysis Criteria Styles */
.analysis-criteria {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.criteria-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 6px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.3s ease;
}

.criteria-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(148, 163, 184, 0.2);
}

.criteria-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 4px 0;
}

.criteria-item:last-child {
  margin-bottom: 0;
}

.criteria-item .badge {
  font-size: 0.7rem;
  padding: 4px 8px;
}

.criteria-item small {
  font-size: 0.75rem;
  max-width: 60%;
  text-align: right;
}

/* Enhanced threshold slider */
.fuel-slider {
  background: linear-gradient(90deg, #1F2937 0%, #374151 100%);
  border-radius: 8px;
  height: 8px;
  outline: none;
  transition: all 0.3s ease;
}

.fuel-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  transition: all 0.3s ease;
}

.fuel-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.6);
}

.fuel-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Professional ticker analysis styles */
.ticker-analysis {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.ticker-analysis-dropdown {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 8px;
  padding: 15px;
  margin: 8px 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ticker-row {
  transition: all 0.3s ease;
}

.ticker-row:hover {
  background: rgba(148, 163, 184, 0.1) !important;
  transform: translateX(2px);
}

.analysis-dropdown {
  background: rgba(15, 23, 42, 0.8);
}

.analysis-dropdown td {
  border: none !important;
  padding: 0 !important;
}

.analysis-score {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 8px;
}

.score-excellent {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
}

.score-good {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: white;
}

.score-poor {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
}

.recommendation {
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.1);
}

/* Enhanced clickable elements */
.ticker-row .fa-chevron-down,
.ticker-row .fa-chevron-up {
  transition: all 0.3s ease;
}

.ticker-row:hover .fa-chevron-down,
.ticker-row:hover .fa-chevron-up {
  color: #F59E0B !important;
  transform: scale(1.1);
}

/* Smooth dropdown animation */
.analysis-dropdown {
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Shorting Criteria Styles */
.shorting-criteria {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 12px;
  margin: 12px 0;
}

.shorting-criteria h6 {
  color: #EF4444;
  font-weight: bold;
  margin-bottom: 8px;
}

.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.criteria-item-short {
  display: flex;
  align-items: center;
  padding: 4px 0;
  font-size: 0.85rem;
}

.criteria-item-short i {
  font-size: 0.8rem;
}

.criteria-item-short span {
  font-weight: 500;
}

/* Enhanced recommendation styling for shorting opportunities */
.recommendation {
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
  border-left: 3px solid;
}

.recommendation:contains('SHORT') {
  border-left-color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}

.recommendation:contains('CAUTION') {
  border-left-color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
}

.recommendation:contains('EXCELLENT') {
  border-left-color: #10B981;
  background: rgba(16, 185, 129, 0.1);
}

/* Highest IV Table Styles */
.ticker-row-iv {
  transition: all 0.3s ease;
}

.ticker-row-iv:hover {
  background: rgba(148, 163, 184, 0.1) !important;
  transform: translateX(2px);
}

.ticker-row-iv td {
  vertical-align: middle;
  padding: 12px 8px;
}

/* IV Dropdown Styles */
.iv-dropdown-toggle {
  background: linear-gradient(135deg, #1F2937 0%, #374151 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  transition: all 0.3s ease !important;
}

.iv-dropdown-toggle:hover {
  background: linear-gradient(135deg, #374151 0%, #4B5563 100%) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2) !important;
}

.iv-dropdown-chevron {
  transition: transform 0.3s ease !important;
}

.iv-dropdown-toggle[aria-expanded="true"] .iv-dropdown-chevron {
  transform: rotate(180deg) !important;
}

/* IV Table Styles */
#ivTickersCollapse .table-dark {
  background: transparent !important;
  border: none !important;
}

#ivTickersCollapse .table-dark thead th {
  background: linear-gradient(135deg, #1F2937 0%, #374151 100%) !important;
  color: #F9FAFB !important;
  font-weight: 600 !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  padding: 10px 8px !important;
  font-size: 0.8rem !important;
}

#ivTickersCollapse .table-dark tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1) !important;
}

#ivTickersCollapse .table-dark tbody tr:hover {
  background: rgba(148, 163, 184, 0.05) !important;
}

#ivTickersCollapse .table-dark tbody td {
  padding: 8px !important;
  vertical-align: middle !important;
}

/* Rank badge animations */
.badge.rounded-pill {
  transition: all 0.3s ease;
}

.badge.rounded-pill:hover {
  transform: scale(1.1);
}

/* IV badge styling */
.badge.fs-6.fw-bold {
  font-size: 0.9rem !important;
  padding: 6px 10px;
  border-radius: 6px;
}

/* Type indicator styling */
.ticker-row-iv .text-success {
  color: #10B981 !important;
  font-weight: 500;
}

.ticker-row-iv .text-danger {
  color: #EF4444 !important;
  font-weight: 500;
}

.ticker-row-iv .text-muted {
  color: #6B7280 !important;
}

/* Legend styling */
.legend-item {
  display: inline-flex;
  align-items: center;
  margin: 0 8px;
}

.legend-item i {
  margin-right: 4px;
}

/* Enhanced table header */
.table-dark thead th {
  background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
  color: #F9FAFB;
  font-weight: bold;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 12px 8px;
}

/* Volatility level indicators */
.volatility-extreme {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: white;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

.volatility-high {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: white;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.volatility-medium {
  background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
  color: white;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.volatility-low {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Sector Performance Clickable Styles */

/* Most Active Stocks Styles */
.most-active-item {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.9) 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.most-active-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00D4AA 0%, #0099CC 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.most-active-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(148, 163, 184, 0.3);
}

.most-active-item:hover::before {
  transform: scaleX(1);
}

.most-active-item.high-volume {
  border-left: 4px solid #22C55E;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.most-active-item.medium-volume {
  border-left: 4px solid #F59E0B;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.most-active-item.low-volume {
  border-left: 4px solid #6B7280;
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.1) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.volume-score {
  font-weight: bold;
  font-size: 1.1rem;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.volume-score.high {
  color: #22C55E;
  animation: pulse-green 2s infinite;
}

.volume-score.medium {
  color: #F59E0B;
  animation: pulse-yellow 2s infinite;
}

.volume-score.low {
  color: #6B7280;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes pulse-yellow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.volume-bar {
  height: 6px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 3px;
  margin: 0.5rem 0;
  overflow: hidden;
  position: relative;
}

.volume-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
  position: relative;
}

.volume-fill.positive {
  background: linear-gradient(90deg, #22C55E 0%, #16A34A 100%);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.volume-fill.negative {
  background: linear-gradient(90deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.volume-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Badge styling for most active stocks */
.most-active-item .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.most-active-item .badge.bg-secondary {
  background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%) !important;
  color: white;
  box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
}

/* Responsive adjustments for most active stocks */
@media (max-width: 768px) {
  .most-active-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .volume-score {
    font-size: 1rem;
  }
  
  .most-active-item .row.small {
    font-size: 0.75rem;
  }
  
  .most-active-item .col-4 {
    padding: 0.25rem;
  }
}

/* Enhanced hover effects for most active stocks */
.most-active-item:hover .volume-fill {
  transform: scaleY(1.1);
}

.most-active-item:hover .volume-score {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Loading state for most active stocks */
#mostActiveStocksContainer .spinner-border {
  color: #00D4AA;
}

#mostActiveStocksContainer .text-muted {
  color: #94A3B8 !important;
}

/* Alert styling for most active stocks */
#mostActiveStocksContainer .alert {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 12px;
}

#mostActiveStocksContainer .alert-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
  border-color: rgba(255, 193, 7, 0.3);
}

/* Summary section styling */
#mostActiveStocksContainer .bg-dark {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.9) 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.15) !important;
  border-radius: 8px;
}

#mostActiveStocksContainer .text-muted {
  color: #94A3B8 !important;
}

#mostActiveStocksContainer .text-success {
  color: #22C55E !important;
}

#mostActiveStocksContainer .text-warning {
  color: #F59E0B !important;
}

/* 52-Week Gainers Styles */
.most-active-item.extreme-gainer {
  border-left: 4px solid #FF6B6B;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(30, 41, 59, 0.9) 100%);
  animation: extreme-gainer-glow 2s ease-in-out infinite alternate;
}

.most-active-item.high-gainer {
  border-left: 4px solid #FF8E53;
  background: linear-gradient(135deg, rgba(255, 142, 83, 0.1) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.most-active-item.medium-gainer {
  border-left: 4px solid #FFB347;
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.1) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.most-active-item.low-gainer {
  border-left: 4px solid #FFD93D;
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.1) 0%, rgba(30, 41, 59, 0.9) 100%);
}

@keyframes extreme-gainer-glow {
  0% { box-shadow: 0 0 5px rgba(255, 107, 107, 0.3); }
  100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.6); }
}

.gain-score {
  font-weight: bold;
  font-size: 1.1rem;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.gain-score.extreme {
  color: #FF6B6B;
  animation: pulse-red 2s infinite;
}

.gain-score.high {
  color: #FF8E53;
  animation: pulse-orange 2s infinite;
}

.gain-score.medium {
  color: #FFB347;
  animation: pulse-yellow 2s infinite;
}

.gain-score.low {
  color: #FFD93D;
}

@keyframes pulse-orange {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.gain-bar {
  height: 6px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 3px;
  margin: 0.5rem 0;
  overflow: hidden;
  position: relative;
}

.gain-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
  position: relative;
}

.gain-fill.positive {
  background: linear-gradient(90deg, #FF6B6B 0%, #FF8E53 100%);
}

.gain-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

/* 52-Week Gainers Container Styles */
#fiftyTwoWeekGainersContainer .spinner-border {
  color: #FF6B6B;
}

#fiftyTwoWeekGainersContainer .text-muted {
  color: #94A3B8 !important;
}

#fiftyTwoWeekGainersContainer .alert {
  border: 1px solid rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.1);
}

#fiftyTwoWeekGainersContainer .alert-warning {
  border-color: #FF8E53;
  background: rgba(255, 142, 83, 0.1);
}

#fiftyTwoWeekGainersContainer .bg-dark {
  background: rgba(30, 41, 59, 0.9) !important;
  border: 1px solid rgba(255, 107, 107, 0.2);
}

#fiftyTwoWeekGainersContainer .text-muted {
  color: #94A3B8 !important;
}

#fiftyTwoWeekGainersContainer .text-success {
  color: #FF6B6B !important;
}

#fiftyTwoWeekGainersContainer .text-warning {
  color: #FF8E53 !important;
}





































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































/* ================================= COMPARATIVE CHART MOBILE RESPONSIVENESS ================================= */

/* FINAL ULTRA-POWERFUL: Override ALL inline styles for comparative chart */
@media (max-width: 768px) {
  .seasonality-card .card-body { 
    padding: 0 !important; 
    margin: 0 !important; 
  }
  
  .seasonality-card .card-body > div[style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 0px !important;
    height: 200px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    background: linear-gradient(145deg, rgba(0,0,0,0.15), rgba(255,255,255,0.05)) !important;
    border-radius: 0 !important;
    position: relative !important;
    box-shadow: none !important;
  }
  
  .seasonality-card .card-body > div[style*="grid-template-columns"] * { 
    box-sizing: border-box !important; 
  }
  
  .seasonality-card .card-body > div[style*="grid-template-columns"] > div {
    width: 100% !important; 
    max-width: 100% !important; 
    min-width: 100% !important;
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important;
    gap: 0px !important; 
    padding: 0 !important; 
    margin: 0 !important;
  }
  
  .seasonality-card .card-body > div[style*="grid-template-columns"] > div > span {
    font-size: 0.6rem !important; 
    white-space: nowrap !important; 
    overflow: hidden !important;
    text-overflow: ellipsis !important; 
    max-width: 100% !important; 
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600 !important; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important; 
    letter-spacing: 0.3px !important;
  }
  
  .seasonality-card .card-body > div[style*="grid-template-columns"] > div > div {
    height: auto !important; 
    min-height: 120px !important; 
    display: flex !important;
    flex-direction: row !important; 
    gap: 0px !important; 
    align-items: flex-end !important; 
    position: relative !important;
  }
  
  /* Target individual bars - make them NANOSCOPIC to fit card */
  .seasonality-card .card-body > div[style*="grid-template-columns"] > div > div > div {
    width: 0.5px !important; 
    min-width: 0.5px !important; 
    max-width: 0.5px !important;
    height: auto !important; 
    min-height: 16px !important; 
    border-radius: 0px !important;
    transition: all 0.3s ease !important; 
    cursor: pointer !important;
    transform: scaleX(1) !important;
  }
  
  /* Override specific bar colors and heights */
  .seasonality-card .card-body > div[style*="grid-template-columns"] > div > div > div[style*="background: linear-gradient(180deg, rgba(54,162,235"] { 
    background: linear-gradient(180deg, rgba(54,162,235,0.9), rgba(54,162,235,0.7)) !important; 
    box-shadow: 0 1px 4px rgba(54,162,235,0.3) !important; 
  }
  
  .seasonality-card .card-body > div[style*="grid-template-columns"] > div > div > div[style*="background: linear-gradient(180deg, rgba(255,206,86"] { 
    background: linear-gradient(180deg, rgba(255,206,86,0.9), rgba(255,206,86,0.7)) !important; 
    box-shadow: 0 1px 4px rgba(255,206,86,0.3) !important; 
  }
  
  .seasonality-card .card-body > div[style*="grid-template-columns"] > div > div > div[style*="background: linear-gradient(180deg, rgba(255,99,132"] { 
    background: linear-gradient(180deg, rgba(255,99,132,0.9), rgba(220,20,60,0.8)) !important; 
    box-shadow: 0 1px 4px rgba(255,99,132,0.4) !important; 
  }
}

@media (max-width: 480px) {
  .seasonality-card .card-body > div[style*="grid-template-columns: repeat(12, 1fr)"] { 
    grid-template-columns: repeat(12, 1fr) !important; 
    gap: 0px !important; 
    height: 180px !important; 
    padding: 0px !important; 
  }
  
  .seasonality-card .card-body > div[style*="grid-template-columns: repeat(12, 1fr)"] > div > div > div { 
    width: 0.3px !important; 
    min-width: 0.3px !important; 
    max-width: 0.3px !important;
    transform: scaleX(1.5) !important;
  }
  
  .seasonality-card .card-body > div[style*="grid-template-columns: repeat(12, 1fr)"] > div > span { 
    font-size: 0.55rem !important; 
  }
}

@media (max-width: 360px) {
  .seasonality-card .card-body .card-body > div[style*="grid-template-columns: repeat(12, 1fr)"] { 
    grid-template-columns: repeat(12, 1fr) !important; 
    gap: 0px !important; 
    height: 160px !important; 
    padding: 0px !important; 
  }
  
  .seasonality-card .card-body > div[style*="grid-template-columns: repeat(12, 1fr)"] > div > div > div { 
    width: 0.2px !important; 
    min-width: 0.2px !important; 
    max-width: 0.2px !important;
    transform: scaleX(2) !important;
  }
  
  .seasonality-card .card-body > div[style*="grid-template-columns: repeat(12, 1fr)"] > div > span { 
    font-size: 0.5rem !important; 
  }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .seasonality-card .card-body > div[style*="grid-template-columns"] {
    height: 150px !important;
  }
  
  .seasonality-card .card-body > div[style*="grid-template-columns"] > div > div > div {
    width: 0.4px !important;
    min-width: 0.4px !important;
    max-width: 0.4px !important;
    transform: scaleX(1.2) !important;
  }
}

/* RESPONSIVE DEMONSTRATION SYSTEM */
.responsive-demo {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  z-index: 9999;
  max-width: 200px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.responsive-demo h6 {
  margin: 0 0 8px 0;
  color: #00D4AA;
  font-size: 11px;
}

.responsive-demo .demo-info {
  margin: 2px 0;
  font-size: 10px;
  opacity: 0.9;
}

.responsive-demo .demo-bar {
  display: inline-block;
  width: 12px;
  height: 20px;
  background: linear-gradient(180deg, rgba(54,162,235,0.9), rgba(54,162,235,0.7));
  border-radius: 2px;
  margin: 0 2px;
  vertical-align: middle;
}

.responsive-demo .demo-bar.mobile {
  width: 0.5px;
  transform: scaleX(1);
}

.responsive-demo .demo-bar.small-mobile {
  width: 0.3px;
  transform: scaleX(1.5);
}

.responsive-demo .demo-bar.very-small-mobile {
  width: 0.2px;
  transform: scaleX(2);
}

/* Hide demo on very small screens */
@media (max-width: 320px) {
  .responsive-demo {
    display: none;
  }
}
