/* =============================================================================
   THEME SOS — Cyberpunk Natif
   Adapté depuis RUST_SOS_2026v0.1/src/styles/theme-sos.css
   ============================================================================= */

:root {
  /* Couleurs principales */
  --surface: #0a0a0f;
  --surface-alt: #1a1a2e;
  --surface-elevated: rgba(255, 255, 255, 0.05);

  /* Texte */
  --text-primary: #ffffff;
  --text-muted: #666666;
  --text-subtle: #cccccc;

  /* Bordures */
  --ui-border: rgba(255, 255, 255, 0.12);
  --ui-border-strong: rgba(255, 255, 255, 0.25);

  /* Accents */
  --accent: #0066cc;
  --accent-hover: #0055aa;
  --accent-violet: #8B5CF6;
  --accent-cyan: #22D3EE;
  --accent-rose: #ec4899;

  /* États */
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;

  /* Gradients */
  --gradient-interface: linear-gradient(135deg, rgba(103, 232, 249, 0.24), rgba(167, 139, 250, 0.18), rgba(255, 255, 255, 0.07));
  --gradient-texte: linear-gradient(90deg, #ffffff 0%, #67e8f9 50%, #a78bfa 100%);
  --gradient-topbar: linear-gradient(135deg, rgba(7, 10, 19, 0.88), rgba(18, 26, 49, 0.76), rgba(49, 36, 95, 0.36));

  /* Glass */
  --glass-background: rgba(255, 255, 255, 0.05);
  --glass-background-dark: rgba(0, 0, 0, 0.3);

  /* Ombres */
  --ombre-legere: 0 2px 8px rgba(0, 0, 0, 0.1);
  --ombre-moyenne: 0 4px 16px rgba(0, 0, 0, 0.2);
  --ombre-forte: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);

  /* Border radius */
  --global-border-radius: 12px;

  /* Transitions */
  --transition-rapide: 0.15s ease;
  --transition-normale: 0.25s ease;
  --transition-lente: 0.4s ease;

  /* Z-index */
  --z-index-widgets: 100;
  --z-index-cartes-flottantes: 150;
  --z-index-modales: 200;
  --z-index-notifications: 300;
  --z-index-menu: 400;
  --z-index-topbar: 500;
  --z-index-topbar-dropdown: 550;

  /* Sections — codes couleur (couleur + fond translucide + glow) */
  --section-obs: #f59e0b;
  --section-obs-bg: rgba(245, 158, 11, 0.22);
  --section-obs-glow: rgba(245, 158, 11, 0.33);
  --section-widgets: #eab308;
  --section-widgets-bg: rgba(234, 179, 8, 0.22);
  --section-widgets-glow: rgba(234, 179, 8, 0.33);
  --section-medias: #22c55e;
  --section-medias-bg: rgba(34, 197, 94, 0.22);
  --section-medias-glow: rgba(34, 197, 94, 0.35);
  --section-cadres: #a78bfa;
  --section-cadres-bg: rgba(167, 139, 250, 0.22);
  --section-cadres-glow: rgba(167, 139, 250, 0.33);
  --section-transitions: #06b6d4;
  --section-transitions-bg: rgba(6, 182, 212, 0.22);
  --section-transitions-glow: rgba(6, 182, 212, 0.33);
  --section-streaming: #ef4444;
  --section-streaming-bg: rgba(239, 68, 68, 0.22);
  --section-streaming-glow: rgba(239, 68, 68, 0.35);
  --section-chat: #a855f7;
  --section-chat-bg: rgba(168, 85, 247, 0.22);
  --section-chat-glow: rgba(168, 85, 247, 0.33);
  --section-attente: #3b82f6;
  --section-attente-bg: rgba(59, 130, 246, 0.22);
  --section-attente-glow: rgba(59, 130, 246, 0.33);
  --section-musique: #84cc16;
  --section-musique-bg: rgba(132, 204, 22, 0.22);
  --section-musique-glow: rgba(132, 204, 22, 0.33);
  --section-communaute: #f59e0b;
  --section-communaute-bg: rgba(245, 158, 11, 0.22);
  --section-communaute-glow: rgba(245, 158, 11, 0.33);
  --section-pad: #8B5CF6;
  --section-pad-bg: rgba(139, 92, 246, 0.22);
  --section-pad-glow: rgba(139, 92, 246, 0.33);
  --section-planning: #f59e0b;
  --section-planning-bg: rgba(245, 158, 11, 0.22);
  --section-planning-glow: rgba(245, 158, 11, 0.33);
  --section-presentation: #d946ef;
  --section-presentation-bg: rgba(217, 70, 239, 0.22);
  --section-presentation-glow: rgba(217, 70, 239, 0.33);
  --section-camera: #06b6d4;
  --section-camera-bg: rgba(6, 182, 212, 0.22);
  --section-camera-glow: rgba(6, 182, 212, 0.33);
  --section-just-chatting: #06b6d4;
  --section-just-chatting-bg: rgba(6, 182, 212, 0.22);
  --section-just-chatting-glow: rgba(6, 182, 212, 0.33);
  --section-objectifs: #10b981;
  --section-objectifs-bg: rgba(16, 185, 129, 0.22);
  --section-objectifs-glow: rgba(16, 185, 129, 0.33);
  --section-raccourcis: #6366f1;
  --section-raccourcis-bg: rgba(99, 102, 241, 0.22);
  --section-raccourcis-glow: rgba(99, 102, 241, 0.33);
  --section-stats: #14b8a6;
  --section-stats-bg: rgba(20, 184, 166, 0.22);
  --section-stats-glow: rgba(20, 184, 166, 0.33);

  /* Scanlines CRT (cartes flottantes) — feature flag + intensité */
  --scanlines-actives: 1;
  --scanlines-opacite: 0.18;

  /* Police */
  --police-principale: system-ui, -apple-system, sans-serif;
  --police-monospace: 'Consolas', 'Monaco', monospace;

  /* Tailles UI */
  --dashboard-ui-font-size: 12px;
  --dashboard-ui-font-size-small: 10px;

  /* Contour noir (effet stroke via text-shadow) */
  --texte-contour-noir:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
    -2px  0   0 #000,
     2px  0   0 #000,
     0   -2px 0 #000,
     0    2px 0 #000;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--police-principale);
  background: var(--surface);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

#app {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
}

/* Background gradient cyberpunk */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(103, 232, 249, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #050713, #0d1424 48%, #070a13);
  z-index: -1;
}

/* Scrollbar discrète */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(103, 232, 249, 0.35);
}

/* Inputs number : masquer spinners natifs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Checkboxes stylisées thème SOS */
input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
input[type="checkbox"]:hover {
  border-color: rgba(103, 232, 249, 0.6);
}
input[type="checkbox"]:checked {
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.3), rgba(167, 139, 250, 0.3));
  border-color: rgba(103, 232, 249, 0.7);
  box-shadow: 0 0 6px rgba(103, 232, 249, 0.3);
}
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #67e8f9;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 2px rgba(103, 232, 249, 0.5));
}
