/* Dashboard-only compatibility layer for the app's dark-first utilities.
   Public and authentication routes do not render .workspace-shell. */
.workspace-shell[data-theme='light'] {
  color-scheme: light;
  --color-keekoders-primary: #f4f7fb;
  --color-keekoders-secondary: #ffffff;
  --color-keekoders-accent: #0891b2;
  --color-keekoders-text: #0f172a;
  --color-keekoders-muted: #64748b;
  --kk-surface-alt: #f8fafc;
  --kk-border: #e2e8f0;
  --kk-border-strong: #cbd5e1;
  --kk-text-secondary: #475569;
  --kk-text-muted: #64748b;
  --kk-scroll-track: #f1f5f9;
  --kk-scroll-thumb: #cbd5e1;
}

.workspace-shell[data-theme='light'] .text-white { color: var(--color-keekoders-text) !important; }
.workspace-shell[data-theme='light'] .bg-indigo-500.text-white,
.workspace-shell[data-theme='light'] .bg-indigo-600.text-white,
.workspace-shell[data-theme='light'] .bg-red-500.text-white,
.workspace-shell[data-theme='light'] .bg-red-600.text-white,
.workspace-shell[data-theme='light'] .bg-green-500.text-white,
.workspace-shell[data-theme='light'] .bg-teal-500.text-white { color: #ffffff !important; }
.workspace-shell[data-theme='light'] [class*='text-white/80'] { color: var(--kk-text-secondary) !important; }
.workspace-shell[data-theme='light'] [class*='text-white/50'],
.workspace-shell[data-theme='light'] [class*='text-white/40'] { color: var(--kk-text-muted) !important; }
.workspace-shell[data-theme='light'] [class*='text-white/30'],
.workspace-shell[data-theme='light'] [class*='text-white/20'],
.workspace-shell[data-theme='light'] [class*='text-white/10'] { color: #94a3b8 !important; }
.workspace-shell[data-theme='light'] [class*='hover:text-white']:hover { color: var(--color-keekoders-text) !important; }

/* The leading-space selector intentionally avoids making a hover utility a
   permanent background colour. */
.workspace-shell[data-theme='light'] [class^='bg-white/'],
.workspace-shell[data-theme='light'] [class*=' bg-white/'] { background-color: var(--kk-surface-alt); }
.workspace-shell[data-theme='light'] [class*='border-white/'] { border-color: var(--kk-border); }
.workspace-shell[data-theme='light'] [class*='divide-white/'] > :not([hidden]) ~ :not([hidden]) { border-color: var(--kk-border); }

.workspace-shell[data-theme='light'] .workspace-sidebar,
.workspace-shell[data-theme='light'] .workspace-header {
  background-color: #ffffff !important;
  border-color: var(--kk-border) !important;
}
.workspace-shell[data-theme='light'] .workspace-header { box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02); }
.workspace-shell[data-theme='light'] .workspace-theme-toggle {
  border: 1px solid var(--kk-border-strong);
  background-color: #ffffff;
  color: var(--kk-text-secondary);
}
.workspace-shell[data-theme='light'] .workspace-theme-toggle:hover {
  background-color: var(--kk-surface-alt);
  color: var(--color-keekoders-text);
}
.workspace-shell[data-theme='light'] .workspace-sidebar .text-indigo-300\/70 { color: #4f46e5; }
.workspace-shell[data-theme='light'] .workspace-sidebar .bg-indigo-500\/10 { background-color: #eef2ff; }

.workspace-shell[data-theme='light'] button.bg-keekoders-accent,
.workspace-shell[data-theme='light'] a.bg-keekoders-accent,
.workspace-shell[data-theme='light'] .bg-keekoders-accent.text-keekoders-primary { color: #082f49; }
.workspace-shell[data-theme='light'] .glass-card {
  background-color: #ffffff;
  border-color: var(--kk-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.workspace-shell[data-theme='light'] input,
.workspace-shell[data-theme='light'] select,
.workspace-shell[data-theme='light'] textarea {
  background-color: #ffffff;
  border-color: var(--kk-border-strong);
  color: var(--color-keekoders-text) !important;
}
.workspace-shell[data-theme='light'] input::placeholder,
.workspace-shell[data-theme='light'] textarea::placeholder { color: #64748b; }
.workspace-shell[data-theme='light'] select option { background: #ffffff; color: #0f172a; }

.workspace-shell[data-theme='light'] table { color: var(--kk-text-secondary); }
.workspace-shell[data-theme='light'] table thead,
.workspace-shell[data-theme='light'] table thead tr { background-color: var(--kk-surface-alt) !important; }
.workspace-shell[data-theme='light'] table th { color: var(--kk-text-secondary); font-weight: 600; }
.workspace-shell[data-theme='light'] table td,
.workspace-shell[data-theme='light'] table tr { border-color: #edf2f7; }
.workspace-shell[data-theme='light'] table tbody tr:not(.bg-emerald-500):not(.bg-red-500):hover { background-color: #f8fafc; }

.workspace-shell[data-theme='light'] .border-slate-400\/30.bg-slate-400\/10 { border-color: #cbd5e1; background-color: #f1f5f9; color: #334155; }
.workspace-shell[data-theme='light'] .border-emerald-400\/50.bg-emerald-500\/20 { border-color: #86efac; background-color: #dcfce7; color: #166534; }
.workspace-shell[data-theme='light'] .border-red-400\/55.bg-red-500\/20 { border-color: #fca5a5; background-color: #fee2e2; color: #991b1b; }
.workspace-shell[data-theme='light'] tr.bg-emerald-500\/\[0\.11\] { background-color: #f0fdf4; box-shadow: inset 4px 0 0 #22c55e; }
.workspace-shell[data-theme='light'] tr.bg-red-500\/\[0\.13\] { background-color: #fff1f2; box-shadow: inset 4px 0 0 #ef4444; }

.workspace-shell[data-theme='light'] .text-blue-400 { color: #2563eb; }
.workspace-shell[data-theme='light'] .text-emerald-400 { color: #059669; }
.workspace-shell[data-theme='light'] .text-red-400 { color: #dc2626; }
.workspace-shell[data-theme='light'] .hover\:text-blue-300:hover { color: #1d4ed8; }
.workspace-shell[data-theme='light'] .hover\:text-emerald-300:hover { color: #047857; }
.workspace-shell[data-theme='light'] .hover\:text-red-300:hover { color: #b91c1c; }

.workspace-shell[data-theme='light'] .bg-black\/80 { background-color: rgba(15, 23, 42, 0.55); }
.workspace-shell[data-theme='light'] .bg-red-500\/10,
.workspace-shell[data-theme='light'] .bg-red-500\/5 { background-color: rgba(220, 38, 38, 0.10); }
.workspace-shell[data-theme='light'] .bg-green-500\/10,
.workspace-shell[data-theme='light'] .bg-green-500\/5 { background-color: rgba(22, 163, 74, 0.10); }
.workspace-shell[data-theme='light'] .bg-yellow-500\/10 { background-color: rgba(202, 138, 4, 0.12); }

.workspace-shell[data-theme='light'],
.workspace-shell[data-theme='light'] * { scrollbar-color: var(--kk-scroll-thumb) var(--kk-scroll-track); }
.workspace-shell[data-theme='light'] ::-webkit-scrollbar-track { background: var(--kk-scroll-track); }
.workspace-shell[data-theme='light'] ::-webkit-scrollbar-thumb { background: var(--kk-scroll-thumb); border: 3px solid var(--kk-scroll-track); border-radius: 999px; }
.workspace-shell[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.workspace-shell[data-theme='light'],
.workspace-shell[data-theme='light'] * {
  transition-property: background-color, border-color, color;
  transition-duration: 180ms;
  transition-timing-function: ease;
}
@media (prefers-reduced-motion: reduce) {
  .workspace-shell[data-theme='light'],
  .workspace-shell[data-theme='light'] * { transition-duration: 0ms; }
}
