/* Dynamic color scheme based on runway active ends */
.atis-letter-box.rwy-07 {
  background: radial-gradient(circle at center, #2e4c80, #1b2e54);
  border: 1px solid #4a74b8;
}

.atis-letter-box.rwy-25 {
  background: radial-gradient(circle at center, #806020, #4d3a12);
  border: 1px solid #b38d3b;
}

.atis-letter-box.rwy-other {
  background: radial-gradient(circle at center, #2e2f30, #151617);
  border: 1px solid var(--glass-border-hover);
}

.atis-letter-box .letter-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.atis-letter-box .letter-val {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.atis-meta-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.meta-label {
  color: var(--text-muted);
}

.meta-val {
  font-weight: 500;
}

.meta-val.highlight {
  color: var(--color-accent);
}

.atis-decoded-indicators {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
  min-width: 95px;
}

.atis-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 0 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  height: 1.8rem;
  box-sizing: border-box;
  font-size: 0.75rem;
  font-weight: 600;
}

.atis-badge .highlight {
  color: #facc15 !important;
}

.d-ind {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  border-radius: 0;
  min-width: 0;
  overflow: hidden;
}

.d-ind.clickable {
  transition: all 0.2s ease;
}

.d-ind.clickable:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border-hover);
}

.d-ind.clickable.active {
  background: var(--color-accent-dim) !important;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 10px var(--color-accent-dim);
  z-index: 2;
}

.atis-decoded-indicators .d-ind:not(:first-child) {
  border-top: none;
}

.atis-decoded-indicators .d-ind:first-child {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.atis-decoded-indicators .d-ind:last-child {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.d-ind .d-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.d-ind .d-val {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.15rem;
  line-height: 1.15;
  white-space: pre-line;
  word-break: break-all;
  overflow-wrap: break-word;
}

.d-ind .d-val.alert {
  color: var(--color-ifr);
}

.atis-notes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.atis-note-bubble {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2.5px solid var(--text-dim);
  padding: 0.4rem 0.75rem;
  border-radius: 0 4px 4px 0;
}

.atis-note-bubble.warning {
  border-left-color: var(--color-ifr);
  background: rgba(245, 158, 11, 0.05);
}

/* Collapsible Raw Sections */
.raw-expandable {
  margin-top: 0.5rem;
}

.expand-toggle-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.expand-toggle-btn:hover {
  color: var(--text-main);
}

.toggle-arrow {
  font-size: 0.65rem;
}

.raw-text-block {
  background: #020304;
  border: 1px solid var(--glass-border);
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  margin-top: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
}

