/* ==========================================================================
   Header Component
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 10, 15, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.header-left h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-alerts {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  vertical-align: middle;
}

.header-alert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  padding: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-alert-badge:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}

.header-alert-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.header-alert-label {
  font-family: 'Outfit', sans-serif;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  line-height: 1;
}

/* Tab Switcher navigation */
.app-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 0.25rem;
  border-radius: 30px;
}

.tab-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.tab-btn.active {
  background: var(--color-accent);
  color: #f3f4f6;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 159, 10, 0.25);
}

.tab-icon {
  width: 16px;
  height: 16px;
}

/* Header Right - Clocks HUD */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.clocks {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

.clocks:hover {
  opacity: 0.8;
}

.clock-date {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.clock-times {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clock-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.clock-val {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.5px;
  white-space: nowrap;
}


.clock-divider {
  width: 1px;
  height: 20px;
  background: var(--glass-border);
}

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

.controls-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.last-refreshed {
  position: fixed;
  bottom: 1rem;
  right: 1.25rem;
  z-index: 999;
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* App version stamp — sits directly above the last-refreshed stamp */
.app-version {
  position: fixed;
  bottom: 2.2rem;
  right: 1.25rem;
  z-index: 999;
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0.35;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.refresh-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border-hover);
}

.refresh-icon.spinning {
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes wx-strike-fade {
  0%   { opacity: 1; transform: scale(1.4); }
  30%  { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.4); }
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.app-main {
  padding: 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
}

.tab-panel {
  display: none;
  width: 100%;
}

.tab-panel.active {
  display: block;
}

.tab-panel.flex-panel {
  display: flex;
  height: calc(100vh - 140px);
}

