/* Supertrend Indicators - Cohesive connected bar design */
.supertrend-indicators {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.indicator-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.indicator-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(71, 156, 240, 1); /* Accent blue */
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.indicators-bar {
  display: flex;
  background: rgba(71, 85, 105, 0.25);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative; /* Helps with child absolute positioning if needed */
}

.indicators-bar.single {
  padding: 0; /* Removes any default padding */
}

.indicator-segment {
  flex: 1;
  padding: 0.4rem 0.3rem;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  box-sizing: border-box;
  background-clip: padding-box; /* Prevents gradient bleed */
  background: rgba(71, 85, 105, 0.3); /* Default background for loading/unclassified state */
}

/* Vertical separator between segments - only in multi-segment bars */
.indicators-bar:not(.single) .indicator-segment:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(148, 163, 184, 0.3);
}

/* Rounded corners for multi-segment bar */
.indicators-bar:not(.single) .indicator-segment:first-child {
  border-top-left-radius: 0.75rem;
  border-bottom-left-radius: 0.75rem;
}

.indicators-bar:not(.single) .indicator-segment:last-child {
  border-top-right-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

/* Full rounded corners for single-segment bar */
.indicators-bar.single .indicator-segment {
  border-radius: 0.75rem;
  width: 100%;
  height: 100%;
}

.segment-label {
  font-size: 0.65rem;
  color: rgba(248, 250, 252, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.segment-value {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Color states - Bullish / Bearish / Signal */
.indicator-segment.bullish {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(34, 197, 94, 0.3));
  color: #22c55e;
}

.indicator-segment.bearish {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(239, 68, 68, 0.3));
  color: #ef4444;
}

.indicator-segment.signal.buy {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.5), rgba(34, 197, 94, 0.4));
  color: #22c55e;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.indicator-segment.signal.sell {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.5), rgba(239, 68, 68, 0.4));
  color: #ef4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.indicator-segment.signal {
  color: rgba(248, 250, 252, 0.8);
  background: rgba(71, 85, 105, 0.5);
}

.info-section {
  text-align: center;
  margin-top: var(--space-md);
}

.info-icon {
  font-size: 1rem;
  color: var(--color-accent);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(71, 156, 240, 0.1);
  border: 1px solid rgba(71, 156, 240, 0.2);
}

.info-icon:hover {
  color: var(--color-accent);
  background: rgba(71, 156, 240, 0.15);
  border-color: rgba(71, 156, 240, 0.3);
  transform: scale(1.05);
}

/* Status and data displays */
#price {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

#status, #updated, #chart-status, #chart-updated {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin: var(--space-xs) 0;
}

/* AI Insight styling */
#insight-text {
  font-size: 0.85rem;
  font-weight: 600;
  margin: var(--space-xs) auto var(--space-xs);
  max-width: 36ch;
  line-height: 1.4;
}

#insight-news {
  margin-top: var(--space-sm);
}

.news-story {
  background: rgba(71, 85, 105, 0.2);
  border-radius: clamp(0.25rem, 0.5vw, 0.375rem);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.1);
  margin-bottom: 2px;
}

.news-title {
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0;
}

#insight-meta {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
}

/* Solana Monitor styling */
#solana-status {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}



#solana-alerts {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.solana-flip {
  background: rgba(71, 85, 105, 0.2);
  border-radius: clamp(0.25rem, 0.5vw, 0.375rem);
  padding: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.1);
  margin-bottom: var(--space-xs);
}

.solana-controls {
  margin-top: var(--space-md);
  text-align: center;
}

.solana-controls button {
  background: var(--color-accent);
  color: var(--color-bg-primary);
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.solana-controls button:hover {
  background: rgba(71, 156, 240, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(71, 156, 240, 0.3);
}

#ath, #change {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

/* ATH color styling */
.price-detail #ath {
  color: rgba(248, 250, 252, 0.7);
  font-size: 1.05rem;
}

.price-detail #ath.ath-positive {
  color: rgba(34, 197, 94, 0.9);
}

.price-detail #ath.ath-negative {
  color: rgba(239, 68, 68, 0.9);
}

.price-detail #change {
  font-size: 1.05rem;
}