/* ===================================================================
   LAMINAK — "MS-DOS" Theme
   Phosphor green on black. CRT terminal vibes. C:\> _
   =================================================================== */

/* ── Theme Variables ── */
body.theme-msdos {
  --bg:              #000000;
  --bg-card:         #001800;
  --bg-input:        #001200;
  --bg-hover:        rgba(0, 255, 0, 0.07);
  --border:          rgba(0, 200, 0, 0.30);
  --text:            #00cc00;
  --text-muted:      #007700;
  --accent:          #00ff00;
  --accent-hover:    #33ff33;
  --accent-dim:      rgba(0, 255, 0, 0.10);
  --user-bg:         rgba(0, 255, 0, 0.06);
  --assistant-bg:    #000e00;
  --success:         #00ff00;
  --warning:         #ffff00;
  --error:           #ff4444;
  --thinking-bg:     rgba(0, 30, 0, 0.8);
  --thinking-border: rgba(0, 200, 0, 0.20);
  --tool-bg:         rgba(0, 20, 0, 0.7);
  --tool-border:     rgba(0, 180, 0, 0.20);
  --bg-secondary:    #001000;
  --glass:           rgba(0, 12, 0, 0.95);
  --glass-border:    rgba(0, 200, 0, 0.25);
  --font:            'JetBrains Mono', 'Courier New', monospace;
  --orb-idle:        radial-gradient(circle, #00ff00 0%, #007700 40%, #002200 100%);
  --orb-thinking:    radial-gradient(circle, #00ff88 0%, #007744 40%, #001c00 100%);
  --orb-speaking:    radial-gradient(circle, #88ff00 0%, #447700 40%, #1c2200 100%);
  --orb-listening:   radial-gradient(circle, #ffff00 0%, #777700 40%, #1c1c00 100%);
  --orb-error:       radial-gradient(circle, #ff4444 0%, #882222 40%, #220000 100%);
}

/* ── Font global ── */
body.theme-msdos,
body.theme-msdos input,
body.theme-msdos textarea,
body.theme-msdos select,
body.theme-msdos button {
  font-family: 'JetBrains Mono', 'Courier New', monospace !important;
}

/* ── CRT scanlines + phosphor glow sur tout le body ── */
body.theme-msdos {
  background: #000000;
}

body.theme-msdos::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
}

/* ── Phosphor glow ambiance dans .messages ── */
body.theme-msdos .messages {
  background-color: #000000;
  background-image: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0, 80, 0, 0.18) 0%, transparent 70%);
  background-attachment: fixed;
}

/* ── Header ── */
body.theme-msdos header {
  background: #000000;
  border-bottom: 1px solid #00aa00;
}

body.theme-msdos .logo-text { color: #00ff00 !important; }
body.theme-msdos .logo-accent { color: #00ff00 !important; }
body.theme-msdos .logo-icon {
  background: transparent;
  color: #00ff00;
  border: 1px solid #00aa00;
  border-radius: 2px;
}

/* ── Cursor clignotant sur le logo ── */
body.theme-msdos .logo-text::after {
  content: '_';
  animation: dos-blink 1s step-end infinite;
  color: #00ff00;
}

@keyframes dos-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Nav sidebar ── */
body.theme-msdos #app-nav {
  background: #000000;
  border-right: 1px solid #003800;
}

body.theme-msdos .nav-item { color: #007700; border-radius: 0; }
body.theme-msdos .nav-item.active { background: #00aa00; color: #000000; }
body.theme-msdos .nav-item:hover  { background: rgba(0, 255, 0, 0.08); color: #00ff00; }

/* ── Messages ── */
body.theme-msdos .msg.user .msg-body {
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid rgba(0, 200, 0, 0.20);
  border-radius: 2px;
}

body.theme-msdos .msg.assistant .msg-body {
  background: transparent;
  border: none;
}

/* Préfixe style prompt DOS */
body.theme-msdos .msg.user .msg-body::before {
  content: 'C:\\> ';
  color: #00ff00;
  font-weight: bold;
}

body.theme-msdos .msg.assistant .msg-body::before {
  content: '> ';
  color: #007700;
}

/* ── Input ── */
body.theme-msdos #chat-input-box {
  background: #000800;
  border: 1px solid #00aa00;
  border-radius: 0;
  color: #00ff00;
  caret-color: #00ff00;
}

body.theme-msdos #chat-input-box::placeholder { color: #005500; }

/* ── Bouton envoyer ── */
body.theme-msdos #send-btn {
  background: #00aa00;
  color: #000000;
  border-radius: 0;
  font-family: 'JetBrains Mono', monospace !important;
}

body.theme-msdos #send-btn:hover { background: #00ff00; }

/* ── Cards / panels ── */
body.theme-msdos .bg-card,
body.theme-msdos .settings-modal,
body.theme-msdos .modal-content {
  border-radius: 0 !important;
  border-color: #00aa00 !important;
}

/* ── Scrollbar ── */
body.theme-msdos ::-webkit-scrollbar-track { background: #000000; }
body.theme-msdos ::-webkit-scrollbar-thumb { background: #005500; border-radius: 0; }
body.theme-msdos ::-webkit-scrollbar-thumb:hover { background: #00aa00; }

/* ── Credits badge ── */
body.theme-msdos .credits-badge {
  background: transparent !important;
  border: 1px solid #00aa00 !important;
  border-radius: 0 !important;
  color: #00cc00 !important;
}
body.theme-msdos .credits-badge span { color: #00cc00 !important; }

/* ── Selection ── */
body.theme-msdos ::selection {
  background: #00aa00;
  color: #000000;
}
