/* Classic Admin Panel Theme (Light Mode + Dark Sidebar) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-page: #f4f6f9;
  --bg-sidebar: #2a2f3a;
  --bg-sidebar-dark: #22262f;
  --border-light: #e5e7eb;
  --accent-primary: #3699b8;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f4f6f9;
  color: #334155;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbars for Light Mode */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Dark Terminal Log Scrollbar */
#terminal-log-container::-webkit-scrollbar-track,
#main-terminal-container::-webkit-scrollbar-track {
  background: #1e293b;
}
#terminal-log-container::-webkit-scrollbar-thumb,
#main-terminal-container::-webkit-scrollbar-thumb {
  background: #475569;
}

/* Sidebar Navigation Active Indicator */
.sidebar-item-active {
  background-color: #1f242d;
  color: #ffffff;
  border-left: 3px solid #38bdf8;
}

.sidebar-item {
  border-left: 3px solid transparent;
  color: #9ca3af;
}
.sidebar-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #f3f4f6;
}

/* ========================================================= */
/* DARK THEME OVERRIDES                                      */
/* ========================================================= */
html.dark-theme,
body.dark-theme {
  background-color: #11161d !important;
  color: #e2e8f0 !important;
}

.dark-theme .bg-\[\#f4f6f9\],
.dark-theme .bg-\[\#f8f9fa\],
.dark-theme .bg-\[\#f5f7f9\],
.dark-theme .bg-\[\#f8fafc\],
.dark-theme .bg-\[\#f9fafb\],
.dark-theme .bg-\[\#f0f7fa\],
.dark-theme .bg-gray-50,
.dark-theme .bg-gray-100,
.dark-theme .bg-slate-50,
.dark-theme .bg-slate-100 {
  background-color: #161c24 !important;
}

.dark-theme .bg-gray-200 {
  background-color: #242e3b !important;
}

.dark-theme .bg-white {
  background-color: #1c242e !important;
}

.dark-theme header {
  background-color: #182029 !important;
  border-color: #2b3544 !important;
}

.dark-theme .border-gray-200,
.dark-theme .border-gray-100,
.dark-theme .border-gray-300,
.dark-theme .divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
  border-color: #2b3544 !important;
}

.dark-theme .text-gray-900,
.dark-theme .text-gray-800,
.dark-theme .text-slate-700 {
  color: #f1f5f9 !important;
}

.dark-theme .text-gray-700,
.dark-theme .text-gray-600 {
  color: #cbd5e1 !important;
}

.dark-theme .text-gray-500,
.dark-theme .text-gray-400 {
  color: #94a3b8 !important;
}

.dark-theme input,
.dark-theme select,
.dark-theme textarea {
  background-color: #121820 !important;
  color: #f1f5f9 !important;
  border-color: #3b495e !important;
}

.dark-theme input::placeholder,
.dark-theme textarea::placeholder {
  color: #64748b !important;
}

.dark-theme input[type="checkbox"] {
  accent-color: #3699b8;
}

.dark-theme tr.hover\:bg-\[\#f0f7fa\]:hover,
.dark-theme tbody tr:hover {
  background-color: #232d3b !important;
}

.dark-theme .hover\:bg-gray-50:hover,
.dark-theme .hover\:bg-gray-100:hover {
  background-color: #273242 !important;
}

.dark-theme .bg-emerald-50 {
  background-color: rgba(16, 185, 129, 0.14) !important;
}
.dark-theme .bg-amber-50 {
  background-color: rgba(245, 158, 11, 0.14) !important;
}
.dark-theme .bg-red-50 {
  background-color: rgba(239, 68, 68, 0.14) !important;
}
.dark-theme .bg-sky-50,
.dark-theme .bg-sky-100,
.dark-theme .bg-blue-50 {
  background-color: rgba(56, 189, 248, 0.14) !important;
}

.dark-theme .border-sky-200,
.dark-theme .border-blue-200 {
  border-color: rgba(56, 189, 248, 0.35) !important;
}
.dark-theme .border-emerald-200 {
  border-color: rgba(16, 185, 129, 0.35) !important;
}
.dark-theme .border-amber-200 {
  border-color: rgba(245, 158, 11, 0.35) !important;
}
.dark-theme .border-red-200,
.dark-theme .border-red-300 {
  border-color: rgba(239, 68, 68, 0.4) !important;
}
.dark-theme .border-slate-200 {
  border-color: #334155 !important;
}

.dark-theme .text-sky-800,
.dark-theme .text-sky-700,
.dark-theme .text-blue-700 {
  color: #7dd3fc !important;
}
.dark-theme .text-amber-900,
.dark-theme .text-amber-800 {
  color: #fcd34d !important;
}
.dark-theme .text-emerald-700 {
  color: #6ee7b7 !important;
}
.dark-theme .text-red-700,
.dark-theme .text-red-600 {
  color: #fca5a5 !important;
}

.dark-theme select option {
  background-color: #1c242e;
  color: #f1f5f9;
}

.dark-theme ::-webkit-scrollbar-track {
  background: #161c24;
}
.dark-theme ::-webkit-scrollbar-thumb {
  background: #334155;
}
