/* ===================================================================
   LAMINAK — "Win98" Theme
   Classic Windows 98 — gris argent, bevel 3D, teal desktop, Arial.
   "It's now safe to turn off your computer."
   =================================================================== */

/* ── Theme Variables ── */
body.theme-win98 {
  --bg:              #008080;
  --bg-card:         #c0c0c0;
  --bg-input:        #ffffff;
  --bg-hover:        rgba(0, 0, 128, 0.10);
  --border:          #808080;
  --text:            #000000;
  --text-muted:      #444444;
  --accent:          #000080;
  --accent-hover:    #0000aa;
  --accent-dim:      rgba(0, 0, 128, 0.10);
  --user-bg:         #ffffff;
  --assistant-bg:    #d4d0c8;
  --success:         #008000;
  --warning:         #808000;
  --error:           #800000;
  --thinking-bg:     #d4d0c8;
  --thinking-border: #808080;
  --tool-bg:         #c8c4bc;
  --tool-border:     #808080;
  --bg-secondary:    #d4d0c8;
  --glass:           rgba(192, 192, 192, 0.97);
  --glass-border:    #808080;
  --font:            'Tahoma', 'Arial', sans-serif;
  --orb-idle:        radial-gradient(circle, #0000ff 0%, #000080 40%, #000040 100%);
  --orb-thinking:    radial-gradient(circle, #008080 0%, #004040 40%, #001c1c 100%);
  --orb-speaking:    radial-gradient(circle, #008000 0%, #004000 40%, #001c00 100%);
  --orb-listening:   radial-gradient(circle, #808000 0%, #404000 40%, #1c1c00 100%);
  --orb-error:       radial-gradient(circle, #ff0000 0%, #800000 40%, #220000 100%);
}

/* ── Font global ── */
body.theme-win98,
body.theme-win98 input,
body.theme-win98 textarea,
body.theme-win98 select,
body.theme-win98 button {
  font-family: 'Tahoma', 'Arial', sans-serif !important;
  font-size: 12px;
}

/* ── Background teal + motif tile discret ── */
body.theme-win98 {
  background: #008080;
}

body.theme-win98 #app-shell {
  background: #008080 !important;
}

/* ── Mixin bevel 3D helper ── */
/* raised: clair haut/gauche, sombre bas/droite */
/* sunken: inverse */

/* ── Header — barre de titre Win98 ── */
body.theme-win98 header {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  border-bottom: 2px solid #000080;
  color: #ffffff;
}

body.theme-win98 header * { color: #ffffff !important; }
body.theme-win98 .logo-text { color: #ffffff !important; font-weight: bold !important; }
body.theme-win98 .logo-accent { color: #ffff80 !important; }

/* Logo pill style fenêtre Win98 */
body.theme-win98 .header-logo {
  background: linear-gradient(90deg, #000080, #1084d0) !important;
  border: 2px outset #c0c0c0 !important;
  border-radius: 0 !important;
  padding: 2px 10px !important;
}

/* Credits badge style Win98 */
body.theme-win98 .credits-badge {
  background: #c0c0c0 !important;
  border: 2px outset #ffffff !important;
  border-radius: 0 !important;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #ffffff !important;
}
body.theme-win98 .credits-badge,
body.theme-win98 .credits-badge span { color: #000000 !important; }

/* End-node select */
body.theme-win98 #daemon-select {
  background: #c0c0c0 !important;
  border: 2px inset #808080 !important;
  border-radius: 0 !important;
  color: #000000 !important;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #ffffff !important;
}

/* Bouton trace */
body.theme-win98 .btn-icon.rp-toggle-header-btn { color: #ffffff !important; }

/* ── Nav sidebar ── */
body.theme-win98 #app-nav {
  background: #c0c0c0;
  border-right: 2px solid #808080;
  box-shadow: inset -1px 0 0 #ffffff;
}

body.theme-win98 .nav-item {
  color: #000000;
  border-radius: 0;
  font-size: 11px;
}

body.theme-win98 .nav-item-icon {
  filter: drop-shadow(0 0 1px #000) drop-shadow(1px 1px 0px #000);
}

body.theme-win98 .nav-item.active {
  background: #000080;
  color: #ffffff;
  box-shadow: inset 1px 1px 0 #000040;
}

body.theme-win98 .nav-item:hover:not(.active) {
  background: #d4d0c8;
}

/* ── Zone de messages — fenêtre "sunken" ── */
body.theme-win98 .messages {
  background: #ffffff;
  box-shadow: inset 2px 2px 0 #808080, inset -2px -2px 0 #ffffff;
}

/* ── Messages ── */
body.theme-win98 .msg.user .msg-body {
  background: #ffffc0;
  border: 1px solid #c0c0c0;
  box-shadow: 1px 1px 0 #808080, -1px -1px 0 #ffffff;
  border-radius: 0;
}

body.theme-win98 .msg.assistant .msg-body {
  background: #ffffff;
  border: 1px solid #c8c4bc;
  border-radius: 0;
}

/* ── Input ── */
body.theme-win98 #chat-input-box {
  background: #ffffff;
  border: 2px inset #808080;
  border-radius: 0;
  color: #000000;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #ffffff;
}

/* ── Bouton envoyer — style bouton Win98 ── */
body.theme-win98 #send-btn {
  background: #c0c0c0;
  color: #000000;
  border: 2px outset #ffffff;
  border-radius: 0;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #ffffff;
  font-family: 'Tahoma', Arial, sans-serif !important;
}

body.theme-win98 #send-btn:hover {
  background: #d4d0c8;
}

body.theme-win98 #send-btn:active {
  border: 2px inset #808080;
  box-shadow: inset 1px 1px 0 #808080;
}

/* ── Tous les boutons style Win98 ── */
body.theme-win98 .btn,
body.theme-win98 button:not(.nav-item):not(#send-btn) {
  border-radius: 0 !important;
  border: 2px outset #ffffff !important;
  background: #c0c0c0 !important;
  color: #000000 !important;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #ffffff !important;
}

body.theme-win98 .btn:hover,
body.theme-win98 button:not(.nav-item):not(#send-btn):hover {
  background: #d4d0c8 !important;
}

/* ── Modales / settings — style "fenêtre Win98" ── */
body.theme-win98 .settings-modal,
body.theme-win98 .modal-content {
  background: #c0c0c0 !important;
  border: 2px outset #ffffff !important;
  border-radius: 0 !important;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.5) !important;
}

/* Title bar modale */
body.theme-win98 .modal-header,
body.theme-win98 .settings-header {
  background: linear-gradient(90deg, #000080, #1084d0) !important;
  color: #ffffff !important;
  border-radius: 0 !important;
}

/* ── Scrollbar style Win98 ── */
body.theme-win98 ::-webkit-scrollbar { width: 16px; }
body.theme-win98 ::-webkit-scrollbar-track {
  background: #c0c0c0;
  border-left: 1px solid #808080;
}
body.theme-win98 ::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 2px outset #ffffff;
  border-radius: 0;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #ffffff;
}

/* ── Taskbar flavor — sidebar footer ── */
body.theme-win98 .sidebar-footer {
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  box-shadow: 0 -1px 0 #808080;
}

/* ── Selection ── */
body.theme-win98 ::selection {
  background: #000080;
  color: #ffffff;
}
