/* Dashboard-specific styles */

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Page Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-header h2,
.page-header h1 {
  font-size: 1.8em;
  color: var(--text-heading);
  font-weight: 700;
}

.yahoo-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.6em;
  font-weight: 400;
  margin-left: 10px;
  vertical-align: middle;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.yahoo-link:hover {
  opacity: 1;
  text-decoration: underline;
  color: #fbbf24;
  /* Golden color on hover to signify "finance premium" */
}

.page-header {
  margin-bottom: 30px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1em;
  margin-top: 10px;
}

/* Search Container */
.search-container {
  position: relative;
}

.search-input,
#stockSearch {
  width: 280px;
  padding: 12px 18px;
  padding-left: 44px;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95em;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-input:focus,
#stockSearch:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 128, 148, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.2);
  background: var(--bg-secondary);
  width: 320px;
}

.search-input::placeholder,
#stockSearch::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  margin-top: 8px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.search-results.show {
  display: block;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: rgba(0, 128, 148, 0.1);
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2em;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.1);
  border-color: var(--accent-color);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 128, 148, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 128, 148, 0.15);
}

.stat-icon {
  font-size: 2.5em;
}

.stat-content {
  flex: 1;
}

.stat-content h3,
.stat-label {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 5px;
  font-weight: 500;
}

.stat-value {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--text-heading);
}

/* Dashboard Sections */
.dashboard-section,
.section {
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-header h2 {
  font-size: 1.8em;
  color: var(--text-primary);
}

.btn-export {
  padding: 10px 20px;
  background: linear-gradient(135deg, #008094 0%, #00b4d8 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-export:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 128, 148, 0.3);
}

/* Tabs */
.picks-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 128, 148, 0.1);
}

.tab-btn.active {
  color: var(--accent-primary);
  background: rgba(0, 128, 148, 0.15);
}

/* Picks Grid */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.pick-card {
  background: linear-gradient(135deg, rgba(0, 128, 148, 0.08) 0%, rgba(0, 180, 216, 0.05) 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.pick-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 128, 148, 0.2);
}

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

.pick-ticker {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--text-primary);
}

.pick-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.pick-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}

.pick-detail {
  display: flex;
  flex-direction: column;
}

.pick-detail-label {
  font-size: 0.8em;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.pick-detail-value {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-primary);
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg,
      var(--bg-secondary) 25%,
      rgba(255, 255, 255, 0.05) 50%,
      var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 12px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 200px;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--accent-color);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

/* Signals Grid */
.signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
  }

  #stockSearch {
    width: 100%;
  }

  #stockSearch:focus {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .picks-grid,
  .signals-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-export {
    width: 100%;
  }
}

/* Dashboard Redesign Styles */

/* Filter Panel */
.filter-panel {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.filter-group label {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  min-width: 200px;
  padding: 12px 18px;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 128, 148, 0.15);
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

/* Chart Section */
.chart-section {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chart-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 15px;
}

.timeframe-buttons {
  display: flex;
  gap: 8px;
}

.timeframe-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeframe-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(0, 128, 148, 0.1);
}

.timeframe-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow-teal);
}

.chart-container {
  position: relative;
  height: 350px;
  margin-bottom: 20px;
}

.chart-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.chart-stats .stat-label {
  font-size: 0.85em;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-stats .stat-value {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--text-primary);
}

/* AI Analysis Section */
.ai-analysis-section {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ai-score-card {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 30px;
  padding: 24px;
  background: rgba(0, 128, 148, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 128, 148, 0.2);
}

.score-circle {
  position: relative;
  width: 120px;
  height: 120px;
}

.score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-size: 2em;
  font-weight: 700;
  color: var(--accent-primary);
}

.score-label {
  font-size: 0.9em;
  color: var(--text-secondary);
}

.score-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.score-details .score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.score-details .label {
  font-size: 0.9em;
  color: var(--text-secondary);
  font-weight: 500;
}

.score-details .value {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text-primary);
}

.ai-insights {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-insights h3 {
  font-size: 1.1em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.ai-insights ul {
  list-style: none;
  padding: 0;
}

.ai-insights li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ai-insights li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 1.5em;
  line-height: 1;
}

/* News Section */
.news-section {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  border-color: rgba(0, 128, 148, 0.3);
  background: rgba(0, 128, 148, 0.05);
  transform: translateX(4px);
}

.news-card h4 {
  font-size: 1em;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.4;
}

.news-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85em;
  color: var(--text-secondary);
}

/* Financials Section */
.financials-section {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.financials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.financial-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.financial-item:hover {
  border-color: rgba(0, 128, 148, 0.3);
  background: rgba(0, 128, 148, 0.05);
}

.financial-item .label {
  font-size: 0.9em;
  color: var(--text-secondary);
  font-weight: 500;
}

.financial-item .value {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .financials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .timeframe-buttons {
    flex-wrap: wrap;
  }

  .chart-container {
    height: 250px;
  }

  .ai-score-card {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Phase 4 Expansion Styles --- */

/* Sector Switcher Styles */
.sector-switcher {
  margin-bottom: 25px;
  overflow-x: auto;
  padding: 5px 0 15px 0;
}

.sector-pills {
  display: flex;
  gap: 12px;
}

.pill {
  padding: 10px 24px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
}

.pill:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: rgba(0, 128, 148, 0.05);
}

.pill.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  box-shadow: 0 8px 20px rgba(0, 128, 148, 0.3);
  transform: translateY(-2px);
}

/* Signal Grid Styles */
.signal-grid-section {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 30px;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  position: relative;
  margin-top: 10px;
}

.signal-tile {
  background: #1a1e26;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-left: 4px solid transparent;
}

.signal-tile:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(0, 128, 148, 0.4);
  background: #252a35;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Data State Colors */
.signal-tile.action-BUY {
  border-left-color: #4ade80;
}

.signal-tile.action-HOLD {
  border-left-color: #fbbf24;
}

.signal-tile.action-SELL {
  border-left-color: #f87171;
}

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

.tile-ticker {
  font-weight: 800;
  font-size: 1.25em;
  color: var(--text-primary);
}

.tile-price {
  font-family: 'Inter', monospace;
  font-weight: 600;
  color: var(--text-primary);
}

.tile-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  color: var(--text-secondary);
}

.tile-change {
  font-weight: 600;
}

.tile-change.positive {
  color: #4ade80;
}

.tile-change.negative {
  color: #f87171;
}

.tile-score {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Market Mini Stats */
.market-stats-mini {
  display: flex;
  align-items: center;
  gap: 15px;
}

#marketCount {
  font-size: 0.9em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Pulse animation for updates */
.pulse {
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: inline-block;
  opacity: 0;
}

.pulse.active {
  animation: pulse-ring 0.8s ease-out;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.loading-overlay {
  grid-column: 1 / -1;
  text-align: center;
  padding: 120px;
  color: var(--text-secondary);
  font-size: 1.1em;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}


/* Technical Indicators Styles */
.technical-indicators {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.indicator-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 10px;
}

.indicator-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
}

.indicator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.indicator-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.indicator-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 700;
}

/* RSI Bar */
.indicator-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.indicator-fill {
  height: 100%;
  background: var(--accent-primary);
  transition: width 0.5s ease, background-color 0.3s ease;
}

.indicator-zones {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

/* Moving Averages Grid */
.ma-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.ma-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ma-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.ma-value {
  font-size: 12px;
  color: var(--accent-primary);
  font-weight: 600;
}

/* MACD Details */
.macd-details {
  margin-top: 8px;
}

/* Insights Section */
.insights-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.insights-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.insights-list li {
  padding: 8px 12px;
  margin-bottom: 8px;
  background: rgba(102, 126, 234, 0.1);
  border-left: 3px solid var(--accent-primary);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-primary);
}

/* --- Sector & Sub-sector Hierarchy Styles --- */

.sector-heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  min-height: 200px;
}

.sector-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.sector-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 128, 148, 0.3);
  background: rgba(0, 128, 148, 0.05);
}

.sector-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.sector-title {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 1.1em;
}

.sector-stats-mini {
  display: flex;
  gap: 12px;
  font-size: 0.85em;
  color: var(--text-secondary);
}

.dist-bar {
  height: 8px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  display: flex;
  overflow: hidden;
  margin: 10px 0;
}

.dist-segment {
  height: 100%;
  transition: width 0.5s ease;
}

.dist-buy {
  background: #10b981;
}

.dist-hold {
  background: #fbbf24;
}

.dist-sell {
  background: #ef4444;
}

.market-legend {
  display: flex;
  gap: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
  color: var(--text-secondary);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-success {
  background: #10b981;
}

.dot-warning {
  background: #fbbf24;
}

.dot-danger {
  background: #ef4444;
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  font-style: italic;
}