/* Prevent any horizontal scroll */
html, body {
  overflow-x: hidden;
}

Base logo styling
.logo {
    width: auto;
    height: auto;
    max-width: 40px;     /* Default smaller size */
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out, opacity 0.3s ease;
}

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

/* logo spinner */
.logo-spinner {
    width: 80px; /* Adjust size as needed */
    height: auto;
    animation: spin 1s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    opacity: 0.8;
    transition: transform 0.9s ease-in-out, filter 0.9s ease-in-out, opacity 0.9s ease; 
  }
  
  /* Keyframes for rotating animation */
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  .navbar-brand {
    overflow: hidden;
    display: flex;
    align-items: center;    
    width: fit-content;
    font-size: 1.1rem;
    padding: 10px; /* Adjust as needed for extra spacing */
    margin-right: 20px; /* Extra margin to separate from search */
  }
  .navbar-brand .logo {
    height: 50px;       /* Adjust height as needed */
    width: auto;
    object-fit: contain;
    margin-right: 8px;  /* Optional spacing between the logo and the brand text */
    padding-right: 5px; /* Add right padding between the logo and brand text */
}

  #tickerInput {
    padding-left: 2.5em;
    background-repeat: no-repeat;
    background-position: 0.5em center;
    background-size: 1.2em;
    position: relative;
    size: contain;
}

/* hypertext */
.neon-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  
  .neon-text.animate {
    opacity: 1;
    transform: translateY(0);
  }


/* video background */
#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Send the video behind the content */
    overflow: hidden;
    border-radius: 20px;
}

#video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
}

@media (min-width: 1200px) {
  #transactionChart {
    width: 70%;    /* or any value you prefer */

    max-width: 800px; /* Increase the max-width on larger screens */
    margin : 0 auto; /* Center the chart */
  }
}

@media (min-width: 1200px) {
  /* Recommendation chart made a lot bigger */
  .recommendationTrendsChart {
    width: 95%;               /* Increase width percentage */
    max-width: 1400px;         /* Much bigger max-width for the recommendation chart */
    margin: 0 auto;           /* Center the chart */
  }
}



/* footer */
.interactive-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.75);  /* Semi-transparent dark background */
    backdrop-filter: blur(10px);         /* Glass blur effect */    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cta-button {
    position: relative;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50px;
    color: rgb(145, 43, 43);
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(160, 27, 91, 0.4);
}

.cta-button .hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.cta-button:hover .hover-effect {
    left: 100%;
}

.footer-icons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(240, 26, 26, 0.05);
    transition: all 0.3s ease;
}

.icon-wrapper:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.footer-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    transition: all 0.3s ease;
}

/* Facebook Hover Effect */
.icon-wrapper:nth-child(3):hover .footer-icon {
    fill: #1877f2;
    filter: drop-shadow(0 0 8px rgba(24, 119, 242, 0.4));
}

.icon-tooltip {
    position: absolute;
    top: -30px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.icon-wrapper:hover .icon-tooltip {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .footer-content {
        gap: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .footer-icons {
        gap: 1rem;
    }
    
    .icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .footer-icon {
        width: 20px;
        height: 20px;
    }
}



/* tagline animation */
@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  #tagline.reveal {
    visibility: visible !important;
    animation: fadeInUp 1s ease-out forwards;
  }
  /* tape insiders transaction */
  /* Ticker Container Styling */
.ticker-container {
    width: 70%;
    overflow: hidden;
    background: #062a1900;          /* Light tape background color */
    /* padding: 0.5px 0; */
    margin: 10px auto;
    border-radius: 8px;
  }
  
  /* Ticker Text Styling */
  .ticker {
    display: inline-block;
    white-space: nowrap;
    font-size: 2rem;             /* Adjust font size as needed */
    color: #111;                 /* Text color */
    animation: tickerMove 15s linear infinite;
  }
  
  /* Keyframes for ticker animation */
  @keyframes tickerMove {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-100%);
    }
  }

  #chart-container {
    width: 100%;
    margin: 0 auto;
  }
  
  /* Ensure the canvas resizes responsively */
  /* #transactionChart {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
  } */

.spinner-logo {
  width: 80px;
  animation: spin 2s linear infinite;
}

#search-container {
    padding: 10px; /* Adds padding around the search engine container */
    margin-left: auto; /* Pushes the search container to the right */
}

/* Wrap logo, navbrand, and search in a flex header container */
header.header-container {
    display: flex;
    justify-content: space-between; /* Space items out */
    align-items: center;
    padding: 10px 20px; /* Adjust as needed */
}

#loading-spinner {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}
@keyframes glimpse {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.0); }
    100% { opacity: 0; transform: scale(0.8); }
}
.glimpse-effect {
    animation: glimpse 1.5s ease-in-out infinite;
}

#unified-container {
  margin-top: 20px; 
  text-align: center;
  display: block; /* Ensure the container is not hidden */
}

@media (max-width: 576px) {
  /* shrink the shortLongChart donut on small screens */
  #shortLongChart {
    width: 350px !important;      /* tweak to taste */
    height: 150px !important;
     margin: 0 auto;
    max-width: 150px !important;
    max-height: 150px !important;
  }
}

/* Learn More Button Styles */
@import url('https://fonts.googleapis.com/css?family=Mukta:700');

.learn-more {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
}

button.learn-more {
  width: 12rem;
  height: auto;
}

button.learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  width: 3rem;
  height: 3rem;
  background: #282936;
  border-radius: 1.625rem;
}

button.learn-more .circle .icon.arrow {
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

button.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: '';
  top: -0.25rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

button.learn-more .button-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin-left: 1.85rem;
  color: #282936;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

/* Changes Made for Looping Expansion Effect:
   - Added CSS Animations:
     • Circle Expansion: @keyframes expandContract animates
       .circle width from 3rem → 100% → 3rem over 2s ease-in-out, infinite loop.
     • Arrow Movement: @keyframes arrowMove syncs the arrow’s translate(1rem)
       and background change midway through the loop.
     • Text Color: @keyframes textColor animates .button-text color
       from #282936 → #fff → #282936 in sync with the circle.
   - Animation Properties:
     • .circle { animation: expandContract 2s ease-in-out infinite; }
     • .icon.arrow { animation: arrowMove      2s ease-in-out infinite; }
     • .button-text { animation: textColor     2s ease-in-out infinite; }
   - Paused on Interaction:
     • :hover, :active states set animation: none on
       .circle, .icon.arrow, .button-text for a stable expanded view.
   - Mobile Optimizations & Accessibility:
     • Retained responsive sizing (vw units, media query ≤600px),
       aria-label on button, focus outline, and onclick navigation.
*/

/* Keyframes for looping expansion effect */
@keyframes expandContract {
  0%, 100% { width: 3rem; }
  50%      { width: 100%; }
}

@keyframes arrowMove {
  0%, 100% {
    transform: translate(0, 0);
    background: none;
  }
  50% {
    transform: translate(1rem, 0);
    background: #fff;
  }
}

@keyframes textColor {
  0%, 100% { color: #282936; }
  50%      { color: #fff;   }
}

/* Pause animations on hover/active */
button:hover .circle,
button:active .circle {
  animation: none;
  width: 100%;
}

button:hover .circle .icon.arrow,
button:active .circle .icon.arrow {
  animation: none;
  background: #fff;
  transform: translate(1rem, 0);
}

button:hover .button-text,
button:active .button-text {
  animation: none;
  color: #fff;
}

/* ————————————————————————————————
   Enable looping expansion/arrow/text animations
   ———————————————————————————————— */

button.learn-more .circle {
  animation: expandContract 2s ease-in-out infinite;
}

button.learn-more .circle .icon.arrow {
  animation: arrowMove 2s ease-in-out infinite;
}

button.learn-more .button-text {
  animation: textColor 2s ease-in-out infinite;
}

/* Responsive search container to avoid logo collision */
@media (max-width: 576px) {
  #search-container {
    margin-top: 80px !important; /* Add extra top margin on mobile */
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .search-input-wrapper {
    max-width: calc(100% - 30px) !important; /* Reduce width on mobile */
  }
  
  .navbar-brand {
    font-size: 1rem; /* Slightly smaller logo text on mobile */
  }
  
  .logo {
    height: 25px; /* Smaller logo image on mobile */
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  #search-container {
    margin-top: 70px !important; /* Medium spacing for tablets */
  }
}

/* Ensure navbar stays fixed and visible */
.navbar {
  z-index: 1030;
  /* backdrop-filter: blur(10px); */
  background-color: rgba(0, 0, 0, 0) !important;
}

/* Unusual Options Activity widget styles (moved from Targets.html) */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f9fafb;
  color: #111827;
  margin: 0;
  padding: 1rem;
}
.widget-container {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 600px;
  margin: auto;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
.widget-container h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.widget-container p {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
#activity-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
#activity-table th,
#activity-table td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}
#activity-table th {
  font-weight: 500;
  color: #6b7280;
  font-size: 0.75rem;
  text-transform: uppercase;
}
#activity-table td {
  font-size: 0.875rem;
}
.ticker-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ticker-logo {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
}
.ticker-symbol {
  font-weight: 600;
}
.sentiment-bullish {
  color: #16a34a;
  font-weight: 500;
}
.sentiment-bearish {
  color: #dc2626;
  font-weight: 500;
}
.sentiment-neutral {
  color: #6b7280;
  font-weight: 500;
}
.loading-message,
.error-message {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

/* Remove the duplicate #summary rules and replace with this single rule */

/* Remove the existing #summary rule and replace with these two rules */
#summary {
    color: #ffffff; /* White text always */
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

#summary.data-loaded {
    background-color: #000000; /* Black background only when data is loaded */
}

#analyst-recommendation {
    background-color: #000000; /* Black background */
    color: #ffffff; /* White text */
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Ticker Suggestions Dropdown Styles */
.ticker-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 1px;
}

.ticker-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #333;
  color: #fff;
  transition: background-color 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticker-suggestion-item:hover,
.ticker-suggestion-item.selected {
  background-color: #2d2d2d;
}

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

.ticker-symbol {
  font-weight: bold;
  color: #00d4ff;
  font-size: 0.9rem;
}

.ticker-name {
  color: #ccc;
  font-size: 0.8rem;
  margin-left: 8px;
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* House Disclosures - Member avatars */
.house-member-avatar-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(148, 163, 184, 0.6);
}

.house-member-avatar-wrapper.small {
  width: 36px;
  height: 36px;
  border-width: 1px;
}

.house-member-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.house-member-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: #e5e7eb;
  background: radial-gradient(circle at 30% 30%, #0ea5e9, #1e293b);
}

.ticker-suggestions::-webkit-scrollbar {
  width: 6px;
}

.ticker-suggestions::-webkit-scrollbar-track {
  background: #2a2a2a;
}

.ticker-suggestions::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 3px;
}

.ticker-suggestions::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Ensure input group maintains proper positioning */
.input-group {
  position: relative;
}

/* Simple suggestion item styles */
.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #333;
  color: #fff;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
}

.suggestion-item:hover {
  background-color: #2d2d2d;
}

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

.suggestion-item strong {
  color: #00d4ff;
  font-size: 0.9rem;
}

/* Dark theme adjustments for dropdown */
[data-bs-theme="dark"] .ticker-suggestions {
  background: #212529;
  border-color: #495057;
}

[data-bs-theme="dark"] .ticker-suggestion-item {
  border-color: #343a40;
}

[data-bs-theme="dark"] .ticker-suggestion-item:hover,
[data-bs-theme="dark"] .ticker-suggestion-item.selected {
  background-color: #343a40;
}

[data-bs-theme="dark"] .suggestion-item {
  border-color: #343a40;
}

[data-bs-theme="dark"] .suggestion-item:hover {
  background-color: #343a40;
}

/* Enhanced Ticker Command Interface Styles (ShadCN-inspired) */
.ticker-command-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0a0a0a;
  border: 1px solid #27272a;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 4px;
  animation: slideDown 0.15s ease-out;
}

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

.ticker-command-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #27272a;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  position: relative;
  z-index: 1;
}

.ticker-command-item:hover,
.ticker-command-item.selected {
  background: #3b82f6;
  color: white;
}

.ticker-command-item:active {
  background: #2563eb;
  transform: translateY(1px);
}

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

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

.ticker-symbol {
  font-weight: bold;
  color: #3b82f6;
  font-size: 14px;
  margin-bottom: 2px;
}

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

.ticker-title {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 2px;
}

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

.ticker-sector {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 2px;
}

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

.ticker-market-cap {
  font-size: 11px;
  color: #10b981;
  font-weight: 500;
}

.ticker-command-item:hover .ticker-market-cap,
.ticker-command-item.selected .ticker-market-cap {
  color: rgba(255, 255, 255, 0.8);
}

.ticker-type-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 40px;
  text-align: center;
}

.ticker-type-badge.stock {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.ticker-type-badge.etf {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ticker-command-item:hover .ticker-type-badge.stock,
.ticker-command-item.selected .ticker-type-badge.stock {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.ticker-command-item:hover .ticker-type-badge.etf,
.ticker-command-item.selected .ticker-type-badge.etf {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced Pattern Badge Styling */
@keyframes pulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.pattern-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    font-size: 0.75rem;
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 280px;
    word-wrap: break-word;
    line-height: 1.2;
}

.pattern-badge.high-confidence {
    animation: pulse 2s infinite;
}

/* Triangle Pattern Enhancements */
.chart-container {
    position: relative;
}

.pattern-info-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 200px;
}

/* Enhanced Chart Hover Effects */
.chart-container:hover .pattern-badge {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Pattern Color Indicators */
.pattern-bullish { border-left: 4px solid #28a745; }
.pattern-bearish { border-left: 4px solid #dc3545; }
.pattern-warning { border-left: 4px solid #ffc107; }
.pattern-reversal { border-left: 4px solid #17a2b8; }
.pattern-uncertain { border-left: 4px solid #6c757d; }

/* Trading Plans Dropdown Styles */
.trading-plans-toggle {
  border: none;
  background: transparent;
  transition: background-color 0.3s ease;
}


.trading-plans-chevron {
  transition: transform 0.3s ease;
}

.trading-plans-toggle[aria-expanded="true"] .trading-plans-chevron {
  transform: rotate(180deg);
}

/* Ensure the collapse animation is smooth */
.collapse {
  transition: height 0.3s ease;
}

#tradingPlansCollapse {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile chart optimizations */
@media (max-width: 768px) {
  body, html {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    overflow-x: hidden !important;
  }
  
  .container,
  .container-fluid,
  .row,
  .col,
  .card,
  .card-body {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  
  .chart-container {
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  canvas {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure chart containers use full width */
  #chart-container,
  #spyFlowChart,
  .chart-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  /* Optimize chart responsiveness */
  .responsive-chart {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: 350px !important; /* Increased height for mobile */
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Enhanced Swing Trade Dropdown Styles */
.swing-trade-toggle {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  border: 1px solid #404040;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.swing-trade-toggle:hover {
  background: linear-gradient(135deg, #2d2d2d 0%, #404040 50%, #2d2d2d 100%);
  border-color: #555;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.swing-trade-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.swing-trade-chevron {
  transition: transform 0.3s ease;
  color: #fff;
}

.swing-trade-toggle[aria-expanded="true"] .swing-trade-chevron {
  transform: rotate(180deg);
}

.swing-trade-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.swing-trade-toggle:hover::before {
  left: 100%;
}

#swingTradeCollapse {
  border-top: 1px solid #404040;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

#swingTradeCollapse .card-body {
  padding: 1.5rem;
}

/* Enhanced Signal Analysis Table Styles */
.table-dark.table-sm {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.table-dark.table-sm tbody tr {
  border-bottom: 1px solid #404040;
  transition: background-color 0.2s ease;
}

.table-dark.table-sm tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.table-dark.table-sm tbody tr:last-child {
  border-bottom: none;
}

.table-dark.table-sm td {
  padding: 0.75rem;
  vertical-align: middle;
}

.table-dark.table-sm td:first-child {
  font-weight: 600;
  color: #ccc;
}

.table-dark.table-sm td:last-child {
  text-align: right;
  font-weight: 500;
}

/* Institutional Ownership Table Enhancements */
.institutional-ownership-table {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.institutional-ownership-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.institutional-ownership-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.institutional-ownership-table tbody tr:last-child {
  border-bottom: none;
}

.institutional-ownership-table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  line-height: 1.5;
}

.institutional-ownership-table td:first-child {
  font-weight: 600;
  color: #ccc;
  min-width: 120px;
}

.institutional-ownership-table td:last-child {
  color: #fff;
  font-weight: 500;
}

/* Badge Styles for Confidence Levels */
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.badge.bg-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.badge.bg-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.badge.bg-danger {
  background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%) !important;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Alert Styles */
.alert-info {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
  border: 1px solid rgba(23, 162, 184, 0.3);
  border-radius: 8px;
  color: #17a2b8;
}

.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);
  border-radius: 8px;
  color: #ffc107;
}

/* Animation for dropdown content */
#swingTradeCollapse .collapse {
  transition: all 0.3s ease;
}

#swingTradeCollapse .collapse.show {
  animation: slideDown 0.3s ease-out;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .swing-trade-toggle {
    padding: 0.75rem !important;
  }
  
  .swing-trade-toggle h6 {
    font-size: 0.9rem;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  #swingTradeCollapse .card-body {
    padding: 1rem;
  }
  
  .table-dark.table-sm td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}

