/* ==========================================================================
   Direct Media Hub v2 — Mission Control Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Background layers */
  --bg-base: #0a0b0e;
  --bg-surface: #12141a;
  --bg-elevated: #1a1d26;
  --bg-hover: #222630;

  /* Text hierarchy */
  --text-primary: #e8eaf0;
  --text-secondary: #8b90a0;
  --text-muted: #555a6e;

  /* Accent colors */
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;

  /* Status */
  --status-ok: var(--accent-green);
  --status-warn: var(--accent-amber);
  --status-error: var(--accent-red);
  --status-info: var(--accent-blue);

  /* Borders */
  --border-subtle: #1e2130;
  --border-default: #2a2e3e;

  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-display: 'Space Grotesk', var(--font-body);

  /* Spacing */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;

  /* Widget */
  --widget-radius: 12px;
  --widget-padding: 20px;

  /* Sidebar */
  --sidebar-width: 240px;
  --sidebar-collapsed: 64px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Scrollbar Styling
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Sidebar Navigation
   -------------------------------------------------------------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-green), #15803d);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: white;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

.sidebar-toggle {
  display: none;
  padding: var(--gap-xs);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.sidebar-toggle:hover {
  color: var(--text-primary);
}

.nav-menu {
  list-style: none;
  padding: var(--gap-md);
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  margin-bottom: var(--gap-xs);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap-md);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active .nav-link {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-green);
}

.nav-link svg {
  flex-shrink: 0;
}

.sidebar-footer {
  padding: var(--gap-md) var(--gap-lg);
  border-top: 1px solid var(--border-subtle);
}

.legacy-link {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.legacy-link:hover {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Mobile Header (hidden on desktop)
   -------------------------------------------------------------------------- */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 var(--gap-md);
  align-items: center;
  justify-content: space-between;
  z-index: 99;
}

.mobile-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Main Content Area
   -------------------------------------------------------------------------- */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-lg) var(--gap-xl);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.page-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
}

.current-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-xs) var(--gap-sm);
  background: var(--bg-elevated);
  border-radius: 20px;
}

.status-text {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Status Dot
   -------------------------------------------------------------------------- */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.status-ok {
  background: var(--status-ok);
}

.status-ok::after {
  background: var(--status-ok);
  opacity: 0.3;
}

.status-warn {
  background: var(--status-warn);
}

.status-warn::after {
  background: var(--status-warn);
  opacity: 0.3;
}

.status-error {
  background: var(--status-error);
}

.status-error::after {
  background: var(--status-error);
  opacity: 0.3;
  animation: pulse-error 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 0; }
}

@keyframes pulse-error {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.8); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Widget Grid
   -------------------------------------------------------------------------- */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap-md);
  padding: var(--gap-xl);
  flex: 1;
}

.widget-container {
  min-height: 200px;
}

.col-4 {
  grid-column: span 4;
}

.col-6 {
  grid-column: span 6;
}

.col-12 {
  grid-column: span 12;
}

/* --------------------------------------------------------------------------
   Widget Card
   -------------------------------------------------------------------------- */
.widget-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--widget-radius);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.widget-card:hover {
  border-color: var(--border-default);
}

.widget-card[data-status="warn"] {
  border-color: rgba(245, 158, 11, 0.3);
}

.widget-card[data-status="error"] {
  border-color: rgba(239, 68, 68, 0.3);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-md) var(--widget-padding);
  border-bottom: 1px solid var(--border-subtle);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.widget-refresh {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 16px;
  transition: all var(--transition-fast);
}

.widget-refresh:hover {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.widget-body {
  flex: 1;
  padding: var(--widget-padding);
}

.widget-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-sm) var(--widget-padding);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

.widget-trend {
  font-family: var(--font-mono);
  font-size: 12px;
}

.widget-updated {
  font-size: 11px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Widget Error State
   -------------------------------------------------------------------------- */
.widget-error .widget-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--gap-md);
}

.error-message {
  color: var(--text-secondary);
  font-size: 13px;
}

.retry-btn {
  padding: var(--gap-sm) var(--gap-md);
  background: var(--bg-hover);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.retry-btn:hover {
  background: var(--border-default);
}

/* --------------------------------------------------------------------------
   Skeleton Loader
   -------------------------------------------------------------------------- */
.widget-skeleton {
  height: 100%;
  padding: var(--widget-padding);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--widget-radius);
}

.skeleton-header {
  height: 20px;
  width: 60%;
  background: var(--bg-elevated);
  border-radius: 4px;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-body {
  flex: 1;
  background: var(--bg-elevated);
  border-radius: 8px;
  animation: shimmer 1.5s ease-in-out infinite;
  animation-delay: 0.1s;
}

.skeleton-footer {
  height: 16px;
  width: 40%;
  background: var(--bg-elevated);
  border-radius: 4px;
  animation: shimmer 1.5s ease-in-out infinite;
  animation-delay: 0.2s;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.widget-container.loading .widget-card {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Metrics Display
   -------------------------------------------------------------------------- */
.metric {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-value.large {
  font-size: 48px;
}

.metric-value.small {
  font-size: 24px;
}

.metric-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-row {
  display: flex;
  gap: var(--gap-lg);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

/* --------------------------------------------------------------------------
   Trend Indicators
   -------------------------------------------------------------------------- */
.trend-up {
  color: var(--accent-green);
}

.trend-down {
  color: var(--accent-red);
}

.trend-flat {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Charts & Sparklines
   -------------------------------------------------------------------------- */
.sparkline-container {
  height: 60px;
  margin-top: var(--gap-md);
}

.chart-container {
  position: relative;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Progress Bars & Gauges
   -------------------------------------------------------------------------- */
.progress-bar {
  height: 6px;
  background: var(--bg-hover);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width var(--transition-normal);
}

.progress-fill.ok { background: var(--accent-green); }
.progress-fill.warn { background: var(--accent-amber); }
.progress-fill.error { background: var(--accent-red); }

/* Circular Gauge */
.gauge {
  position: relative;
  width: 100px;
  height: 100px;
}

.gauge-circle {
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: var(--bg-hover);
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke: var(--accent-green);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset var(--transition-normal);
}

.gauge-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Mini Calendar (for Casa widget)
   -------------------------------------------------------------------------- */
.mini-calendar {
  display: flex;
  gap: 2px;
  margin-top: var(--gap-md);
}

.calendar-day {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: var(--bg-hover);
  position: relative;
}

.calendar-day.booked {
  background: var(--accent-green);
}

.calendar-day.available {
  background: var(--bg-hover);
}

.calendar-day.gap {
  background: var(--accent-amber);
}

.calendar-day[title]::before {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.calendar-day:hover[title]::before {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Alert List
   -------------------------------------------------------------------------- */
.alert-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
}

.alert-item {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-sm);
  background: var(--bg-elevated);
  border-radius: 6px;
  font-size: 12px;
}

.alert-item.warn {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
}

.alert-item.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
}

/* --------------------------------------------------------------------------
   System Health Bar
   -------------------------------------------------------------------------- */
.health-bar {
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
  flex-wrap: wrap;
}

.health-item {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

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

.health-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
}

.health-bars {
  display: flex;
  gap: var(--gap-md);
}

.health-metric {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  min-width: 80px;
}

.health-metric-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.health-metric-bar {
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  overflow: hidden;
}

.health-metric-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent-green);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.main-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  padding: var(--gap-md);
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

.footer-dot {
  color: var(--border-default);
}

/* --------------------------------------------------------------------------
   Inspector Widget (Agent I1)
   -------------------------------------------------------------------------- */
.inspector-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.inspector-scores {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.inspector-score-row {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.inspector-score-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 70px;
  flex-shrink: 0;
}

.inspector-score-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-base);
  border-radius: 4px;
  overflow: hidden;
}

.inspector-score-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.inspector-score-fill.score-ok {
  background: var(--accent-green);
}

.inspector-score-fill.score-warning {
  background: var(--accent-amber);
}

.inspector-score-fill.score-critical {
  background: var(--accent-red);
}

.inspector-score-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  width: 65px;
  text-align: right;
  flex-shrink: 0;
}

.inspector-alerts-section {
  background: var(--bg-base);
  border-radius: 8px;
  padding: var(--gap-sm);
}

.inspector-alerts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-sm);
}

.inspector-alerts-header .section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inspector-alerts-summary {
  display: flex;
  gap: var(--gap-xs);
}

.alert-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-elevated);
}

.alert-badge.critical {
  color: var(--accent-red);
}

.alert-badge.warning {
  color: var(--accent-amber);
}

.alert-badge.info {
  color: var(--accent-blue);
}

.inspector-alerts-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 150px;
  overflow-y: auto;
}

.inspector-alert-item {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  padding: 6px 8px;
  background: var(--bg-surface);
  border-radius: 6px;
  font-size: 12px;
}

.inspector-alert-item.critical {
  border-left: 2px solid var(--accent-red);
}

.inspector-alert-item.warning {
  border-left: 2px solid var(--accent-amber);
}

.inspector-alert-item.info {
  border-left: 2px solid var(--accent-blue);
}

.inspector-alert-item .alert-icon {
  font-size: 10px;
  flex-shrink: 0;
}

.inspector-alert-item .alert-title {
  flex: 1;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inspector-alert-item .alert-time {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.no-alerts {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: var(--gap-sm);
}

.inspector-scan-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: var(--gap-xs);
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Cost Tracker Widget (I1-COST)
   -------------------------------------------------------------------------- */
.cost-tracker-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.cost-overview {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--gap-md);
  align-items: center;
}

.cost-overall {
  display: flex;
  justify-content: center;
}

.overall-gauge {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-primary) calc(var(--pct) * 1%),
    var(--surface-tertiary) calc(var(--pct) * 1%)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.overall-gauge::before {
  content: '';
  position: absolute;
  width: 54px;
  height: 54px;
  background: var(--surface-secondary);
  border-radius: 50%;
}

.overall-value {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 1;
}

.overall-label {
  position: relative;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  z-index: 1;
}

.cost-chart-container {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.chart-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cost-chart {
  width: 100%;
  height: 60px;
}

.cost-chart .chart-dot {
  fill: var(--accent-primary);
  opacity: 0.8;
}

.cost-chart .chart-dot:hover {
  r: 5;
  opacity: 1;
}

.cost-chart .chart-label {
  font-size: 9px;
  fill: var(--text-muted);
  text-anchor: middle;
}

.cost-chart .chart-label:last-of-type {
  text-anchor: end;
}

.cost-chart .chart-label:first-of-type {
  text-anchor: start;
}

.chart-today {
  font-size: 11px;
  color: var(--accent-primary);
  text-align: right;
}

.chart-empty {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
}

.cost-section {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.cost-section .section-header {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--gap-xs);
}

.cost-row {
  display: grid;
  grid-template-columns: 70px 1fr 60px;
  gap: var(--gap-sm);
  align-items: center;
}

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

.cost-bar-container {
  height: 8px;
  background: var(--surface-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.cost-bar {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.cost-bar.cf {
  background: #f97316;
}

.cost-value {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  font-family: var(--font-mono);
}

.cost-alerts {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  padding-top: var(--gap-sm);
  border-top: 1px solid var(--border-subtle);
}

.cost-alert {
  font-size: 12px;
  color: var(--status-warn);
  padding: var(--gap-xs);
  background: rgba(234, 179, 8, 0.1);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   GitHub Timeline Widget
   -------------------------------------------------------------------------- */
.gh-timeline-widget {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.gh-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--gap-sm) var(--gap-md);
  background: var(--bg-base);
  border-radius: 8px;
}

.gh-branch {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  font-size: 12px;
  color: var(--text-secondary);
}

.gh-branch-icon {
  color: var(--accent-green);
}

.gh-branch-name {
  color: var(--accent-green);
  font-weight: 600;
}

.gh-current-version {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
}

.gh-timeline {
  display: flex;
  flex-direction: column;
}

.gh-commit {
  position: relative;
  padding: var(--gap-sm) 0 var(--gap-sm) 28px;
}

.gh-commit-dot {
  position: absolute;
  left: 0;
  top: 14px;
  width: 10px;
  height: 10px;
  background: var(--bg-hover);
  border: 2px solid var(--border-default);
  border-radius: 50%;
  z-index: 2;
}

.gh-commit-dot.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.gh-commit-line {
  position: absolute;
  left: 4px;
  top: 24px;
  bottom: -8px;
  width: 2px;
  background: var(--border-subtle);
}

.gh-commit:last-child .gh-commit-line {
  display: none;
}

.gh-commit-content {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--gap-sm);
  transition: border-color var(--transition-fast);
}

.gh-commit:hover .gh-commit-content {
  border-color: var(--border-default);
}

.gh-commit.current .gh-commit-content {
  border-color: rgba(34, 197, 94, 0.3);
}

.gh-commit-header {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  margin-bottom: 4px;
}

.gh-commit-version {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.gh-commit-time {
  font-size: 11px;
  color: var(--text-muted);
}

.gh-badge-current {
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-green);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.gh-commit-message {
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: var(--gap-xs);
  line-height: 1.4;
}

.gh-commit-meta {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  margin-bottom: var(--gap-xs);
}

.gh-device {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.gh-device-icon {
  font-size: 12px;
}

.gh-stats {
  font-size: 11px;
  font-family: var(--font-mono);
}

.gh-additions {
  color: var(--accent-green);
}

.gh-deletions {
  color: var(--accent-red);
  margin-left: 4px;
}

.gh-commit-actions {
  display: flex;
  gap: var(--gap-xs);
}

.gh-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.gh-btn-diff {
  background: var(--bg-hover);
  color: var(--accent-blue);
  border: 1px solid var(--border-default);
}

.gh-btn-diff:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
}

.gh-more {
  text-align: center;
  padding-top: var(--gap-sm);
}

.gh-show-more {
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
}

.gh-show-more:hover {
  color: var(--text-primary);
}

/* GitHub Modal */
.gh-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: var(--gap-lg);
}

.gh-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.gh-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: var(--bg-hover);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
  z-index: 10;
  transition: all var(--transition-fast);
}

.gh-modal-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.gh-modal-body {
  padding: var(--gap-lg);
  overflow-y: auto;
}

.gh-modal-error {
  text-align: center;
  padding: var(--gap-xl);
}

.gh-modal-error .error-icon {
  font-size: 2.5em;
  color: var(--accent-amber);
  margin-bottom: var(--gap-md);
  display: block;
}

.gh-modal-error p {
  color: var(--text-secondary);
  margin-bottom: var(--gap-md);
}

/* Diff Styles */
.gh-diff-header {
  margin-bottom: var(--gap-md);
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--border-subtle);
}

.gh-diff-header h4 {
  color: var(--text-primary);
  margin-bottom: var(--gap-xs);
  font-size: 14px;
}

.gh-diff-stats {
  font-size: 12px;
  color: var(--text-secondary);
}

.gh-diff-files {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.gh-diff-file {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.gh-diff-file-header {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap-md);
  background: var(--bg-elevated);
  font-size: 12px;
}

.gh-diff-status {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.gh-status-modified {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.gh-status-added {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-green);
}

.gh-status-removed {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.gh-diff-filename {
  flex: 1;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-diff-file-stats {
  font-family: var(--font-mono);
  font-size: 11px;
  flex-shrink: 0;
}

.gh-diff-patch {
  margin: 0;
  padding: var(--gap-md);
  background: var(--bg-base);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  overflow-x: auto;
  color: var(--text-secondary);
  white-space: pre;
}

/* All Commits Modal */
.gh-all-commits h3 {
  color: var(--text-primary);
  margin-bottom: var(--gap-md);
}

.gh-commits-list {
  max-height: 60vh;
  overflow-y: auto;
}

/* --------------------------------------------------------------------------
   Pipeline Status Widget
   -------------------------------------------------------------------------- */
.pl-widget {
  padding: 0;
}

.pl-tasks {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.pl-task {
  background: var(--bg-base);
  border-radius: 8px;
  padding: var(--gap-md);
}

.pl-task-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--gap-sm);
}

.pl-pipeline {
  display: flex;
  align-items: center;
}

.pl-stage {
  display: flex;
  align-items: center;
  flex: 1;
}

.pl-stage-box {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: var(--gap-sm);
  text-align: center;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all var(--transition-fast);
}

.pl-stage.complete .pl-stage-box {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

.pl-stage.active .pl-stage-box {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.pl-stage.ready .pl-stage-box {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.2);
  animation: pl-pulse 2s infinite;
}

@keyframes pl-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 8px 2px rgba(34, 197, 94, 0.2); }
}

.pl-stage-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pl-stage.complete .pl-stage-label { color: var(--accent-green); }
.pl-stage.active .pl-stage-label { color: var(--accent-blue); }
.pl-stage.ready .pl-stage-label { color: var(--accent-green); }

.pl-check {
  font-size: 14px;
  color: var(--accent-green);
  margin-top: 2px;
}

.pl-progress {
  height: 3px;
  background: var(--bg-base);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.pl-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  border-radius: 2px;
  transition: width 0.3s;
}

.pl-stage.ready .pl-progress-bar {
  background: linear-gradient(90deg, var(--accent-green), #15803d);
}

.pl-percent {
  font-size: 10px;
  color: var(--accent-blue);
  margin-top: 2px;
  font-weight: 600;
}

.pl-arrow {
  color: var(--text-muted);
  padding: 0 6px;
  font-size: 12px;
}

.pl-alert {
  margin-top: var(--gap-sm);
  padding: 6px 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 6px;
  color: var(--accent-green);
  font-size: 11px;
}

.pl-empty {
  padding: var(--gap-xl);
  text-align: center;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .pl-pipeline {
    flex-wrap: wrap;
    gap: var(--gap-xs);
  }

  .pl-stage {
    flex: 0 0 calc(50% - 4px);
  }

  .pl-arrow {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive: Tablet (< 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
  }

  .mobile-header {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding-top: 56px;
  }

  .header-bar {
    position: relative;
    top: auto;
  }

  .widget-grid {
    grid-template-columns: repeat(6, 1fr);
    padding: var(--gap-md);
  }

  .col-4 {
    grid-column: span 3;
  }

  .col-6 {
    grid-column: span 6;
  }

  .col-12 {
    grid-column: span 6;
  }
}

/* --------------------------------------------------------------------------
   Responsive: Mobile (< 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .widget-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-sm);
  }

  .col-4,
  .col-6,
  .col-12 {
    grid-column: span 1;
  }

  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-sm);
    padding: var(--gap-md);
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-value {
    font-size: 24px;
  }

  .metric-value.large {
    font-size: 32px;
  }

  .health-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-md);
  }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .sidebar,
  .mobile-header,
  .widget-refresh,
  .sidebar-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .main-content {
    margin-left: 0;
  }

  .widget-card {
    background: white;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  .status-dot::after {
    display: none;
  }

  .widget-footer {
    background: #f5f5f5;
  }

  * {
    animation: none !important;
  }
}

/* ==========================================================================
   Dashboard Components: Stats Row, Focus Banner, Alerts Panel
   ========================================================================== */

/* --------------------------------------------------------------------------
   Stats Row Component
   -------------------------------------------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--widget-radius);
  padding: var(--gap-md);
  text-align: center;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--widget-radius) var(--widget-radius) 0 0;
}

.stat-card.cyan::before { background: linear-gradient(90deg, #4ecdc4, transparent); }
.stat-card.green::before { background: linear-gradient(90deg, var(--accent-green), transparent); }
.stat-card.yellow::before { background: linear-gradient(90deg, var(--accent-amber), transparent); }
.stat-card.purple::before { background: linear-gradient(90deg, var(--accent-purple), transparent); }
.stat-card.blue::before { background: linear-gradient(90deg, var(--accent-blue), transparent); }
.stat-card.orange::before { background: linear-gradient(90deg, #ff9f43, transparent); }

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--gap-xs);
}

.stat-value.cyan { color: #4ecdc4; }
.stat-value.green { color: var(--accent-green); }
.stat-value.yellow { color: var(--accent-amber); }
.stat-value.purple { color: var(--accent-purple); }
.stat-value.blue { color: var(--accent-blue); }
.stat-value.orange { color: #ff9f43; }

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-trend {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  margin-top: var(--gap-xs);
}

.stat-trend.up { color: var(--accent-green); }
.stat-trend.down { color: var(--accent-red); }

@media (max-width: 1200px) {
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Focus Banner Component
   -------------------------------------------------------------------------- */
.focus-banner {
  background: linear-gradient(135deg, #1a2530 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--widget-radius);
  padding: var(--gap-lg);
  margin-bottom: var(--gap-lg);
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
}

.focus-banner.empty {
  justify-content: center;
  color: var(--text-muted);
  padding: var(--gap-md);
}

.focus-content {
  flex: 1;
}

.focus-label {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 0.7rem;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: var(--gap-xs);
}

.focus-icon {
  font-size: 1rem;
}

.focus-task {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--gap-xs);
}

.focus-reason {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.focus-progress {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  min-width: 120px;
}

.focus-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-base);
  border-radius: 3px;
  overflow: hidden;
}

.focus-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), #4ade80);
  border-radius: 3px;
  transition: width var(--transition-normal);
}

.focus-progress-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: right;
}

.focus-actions {
  display: flex;
  gap: var(--gap-sm);
}

.focus-btn {
  padding: var(--gap-sm) var(--gap-md);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.focus-btn.primary {
  background: var(--accent-green);
  color: white;
}

.focus-btn.primary:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.focus-btn.secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.focus-btn.secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .focus-banner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--gap-md);
  }

  .focus-progress {
    width: 100%;
  }

  .focus-actions {
    justify-content: flex-end;
  }
}

/* --------------------------------------------------------------------------
   Alerts Panel Component
   -------------------------------------------------------------------------- */
.alerts-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--widget-radius);
  margin-bottom: var(--gap-lg);
  overflow: hidden;
}

.alerts-panel.empty {
  padding: var(--gap-md);
}

.alerts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-sm) var(--gap-md);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.alerts-title {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.alerts-count {
  background: var(--accent-amber);
  color: black;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.alerts-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: var(--gap-sm);
}

.alerts-list {
  max-height: 200px;
  overflow-y: auto;
}

.alert-item {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap-md);
  border-left: 3px solid transparent;
  transition: background var(--transition-fast);
}

.alert-item:not(:last-child) {
  border-bottom: 1px solid var(--border-subtle);
}

.alert-item:hover {
  background: var(--bg-elevated);
}

.alert-item.error { border-left-color: var(--accent-red); }
.alert-item.warning { border-left-color: var(--accent-amber); }
.alert-item.info { border-left-color: var(--accent-blue); }

.alert-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.alert-item.error .alert-icon { color: var(--accent-red); }
.alert-item.warning .alert-icon { color: var(--accent-amber); }
.alert-item.info .alert-icon { color: var(--accent-blue); }

.alert-content {
  flex: 1;
  min-width: 0;
}

.alert-message {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.alert-action {
  font-size: 0.75rem;
  color: var(--accent-blue);
  margin-top: 2px;
  display: inline-block;
}

.alert-action:hover {
  text-decoration: underline;
}

.alert-dismiss {
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 0 4px;
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.alert-item:hover .alert-dismiss {
  opacity: 1;
}

.alert-dismiss:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Dashboard Header Section (contains Stats + Focus + Alerts)
   -------------------------------------------------------------------------- */
.dashboard-header {
  margin-bottom: var(--gap-lg);
}

.dashboard-header-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
}

@media (max-width: 1100px) {
  .dashboard-header-row {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Auth Gate Component
   -------------------------------------------------------------------------- */
.auth-gate {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.auth-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--widget-radius);
  padding: 48px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.auth-logo {
  margin-bottom: 24px;
}

.auth-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-green), #15803d);
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: white;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 2px;
  transition: border-color var(--transition-fast);
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent-green);
}

.auth-input.error {
  border-color: var(--accent-red);
}

.auth-input::placeholder {
  color: var(--text-muted);
  letter-spacing: normal;
}

.auth-button {
  background: var(--accent-green);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.auth-button:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.auth-button:active {
  transform: translateY(0);
}

.auth-error {
  color: var(--accent-red);
  font-size: 0.85rem;
  margin-top: 16px;
}

.auth-form.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
}

.auth-logout {
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.auth-logout:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
