/* Custom adjustments for AI Tutoring Interface */
:root {
  --primary-accent: #3b82f6;
  --solo-pre: #94a3b8;
  --solo-uni: #38bdf8;
  --solo-multi: #818cf8;
  --solo-relational: #a855f7;
  --solo-extended: #ec4899;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

html.dark body { color-scheme: dark; }
html:not(.dark) body { color-scheme: light; }

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #18181b;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Native Dialog Backdrop */
dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

/* Pulse animation for active SOLO step */
@keyframes solo-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 10px 4px rgba(59, 130, 246, 0.4);
  }
}

.solo-active {
  animation: solo-pulse 2s infinite ease-in-out;
}

/* Workspace açık tema: koyu zinc paleti açık karşılıklarına eşlenir */
html:not(.dark) .ws-theme.bg-zinc-950,
html:not(.dark) .ws-theme .bg-zinc-950,
html:not(.dark) .ws-theme .bg-zinc-950\/40,
html:not(.dark) .ws-theme .bg-zinc-950\/60,
html:not(.dark) .ws-theme .bg-zinc-950\/70,
html:not(.dark) .ws-theme .bg-zinc-950\/80 { background-color: #fafafa; }
html:not(.dark) .ws-theme .bg-zinc-900,
html:not(.dark) .ws-theme .bg-zinc-900\/40,
html:not(.dark) .ws-theme .bg-zinc-900\/60,
html:not(.dark) .ws-theme .bg-zinc-900\/80,
html:not(.dark) .ws-theme .bg-zinc-900\/90,
html:not(.dark) .ws-theme .bg-zinc-900\/95 { background-color: #ffffff; }
html:not(.dark) .ws-theme .bg-zinc-800,
html:not(.dark) .ws-theme .bg-zinc-800\/60,
html:not(.dark) .ws-theme .bg-zinc-800\/80 { background-color: #f4f4f5; }
html:not(.dark) .ws-theme .hover\:bg-zinc-800:hover { background-color: #e4e4e7; }
html:not(.dark) .ws-theme .hover\:bg-zinc-700:hover { background-color: #d4d4d8; }
html:not(.dark) .ws-theme .border-zinc-900,
html:not(.dark) .ws-theme .border-zinc-800,
html:not(.dark) .ws-theme .border-zinc-800\/80,
html:not(.dark) .ws-theme .border-zinc-700,
html:not(.dark) .ws-theme .border-zinc-700\/50 { border-color: #e4e4e7; }
html:not(.dark) .ws-theme .text-zinc-100,
html:not(.dark) .ws-theme .text-zinc-200,
html:not(.dark) .ws-theme .text-zinc-300 { color: #3f3f46; }
html:not(.dark) .ws-theme .text-zinc-400,
html:not(.dark) .ws-theme .text-zinc-500 { color: #71717a; }
html:not(.dark) .ws-theme h1.text-white,
html:not(.dark) .ws-theme h2.text-white,
html:not(.dark) .ws-theme input.text-white,
html:not(.dark) .ws-theme select.text-white,
html:not(.dark) .ws-theme .left-tab-btn.text-white,
html:not(.dark) .ws-theme .tab-btn.text-white,
html:not(.dark) .ws-theme .hover\:text-white:hover { color: #18181b; }
html:not(.dark) .ws-theme .bg-gradient-to-r,
html:not(.dark) .ws-theme .bg-purple-600,
html:not(.dark) .ws-theme .bg-blue-600,
html:not(.dark) .ws-theme .bg-blue-500 { color: #ffffff; }
html:not(.dark) .ws-theme .text-purple-300,
html:not(.dark) .ws-theme .text-purple-200 { color: #7e22ce; }
html:not(.dark) .ws-theme .text-blue-300,
html:not(.dark) .ws-theme .text-blue-200 { color: #1d4ed8; }
html:not(.dark) .ws-theme .text-rose-400,
html:not(.dark) .ws-theme .text-rose-300 { color: #e11d48; }
html:not(.dark) .ws-theme .text-emerald-400 { color: #059669; }
html:not(.dark) .ws-theme .bg-purple-950\/30,
html:not(.dark) .ws-theme .bg-purple-950\/50,
html:not(.dark) .ws-theme .bg-purple-900\/60 { background-color: #f3e8ff; }
html:not(.dark) .ws-theme .bg-blue-950\/30,
html:not(.dark) .ws-theme .bg-blue-950\/50 { background-color: #dbeafe; }
html:not(.dark) .ws-theme .bg-rose-950\/40 { background-color: #ffe4e6; }
html:not(.dark) .ws-theme .bg-emerald-950\/60 { background-color: #d1fae5; }
html:not(.dark) .ws-theme .border-purple-800\/40,
html:not(.dark) .ws-theme .border-purple-800\/50,
html:not(.dark) .ws-theme .border-purple-700\/50 { border-color: #d8b4fe; }
html:not(.dark) .ws-theme .border-blue-800\/40,
html:not(.dark) .ws-theme .border-blue-800\/50 { border-color: #93c5fd; }
html:not(.dark) .ws-theme .border-rose-800\/40 { border-color: #fda4af; }
html:not(.dark) .ws-theme .border-emerald-800\/40 { border-color: #6ee7b7; }
html:not(.dark) .ws-theme .text-zinc-600 { color: #a1a1aa; }
html:not(.dark) ::-webkit-scrollbar-track { background: #f4f4f5; }
html:not(.dark) ::-webkit-scrollbar-thumb { background: #d4d4d8; }
