:root {
  --theme-bg: #0f172a;
  --theme-text: #e2e8f0;
  --theme-panel: rgba(15, 23, 42, 0.88);
  --theme-border: rgba(0, 212, 255, 0.2);
}

html[data-theme="light"] {
  --theme-bg: #f3f6fb;
  --theme-text: #0f172a;
  --theme-panel: rgba(255, 255, 255, 0.95);
  --theme-border: rgba(15, 23, 42, 0.14);
}

body {
  background: var(--theme-bg) !important;
  color: var(--theme-text) !important;
}

html[data-theme="light"] body .gradient-hero,
html[data-theme="light"] body .gradient-bg {
  background: linear-gradient(135deg, #f8fbff 0%, #f3f7fc 50%, #edf2f8 100%) !important;
}

html[data-theme="light"] body header,
html[data-theme="light"] body .sidebar,
html[data-theme="light"] body .breadcrumb,
html[data-theme="light"] body .cyber-border {
  background: var(--theme-panel) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  color: #0f172a !important;
}

html[data-theme="light"] body [class*="bg-slate-900"] { background-color: #ffffff !important; }
html[data-theme="light"] body [class*="bg-slate-800"] { background-color: #f8fafc !important; }
html[data-theme="light"] body [class*="bg-slate-700"] { background-color: #eef2f7 !important; }
html[data-theme="light"] body [class*="border-slate-700"],
html[data-theme="light"] body [class*="border-slate-800"] { border-color: #cbd5e1 !important; }

html[data-theme="light"] body [class*="text-white"],
html[data-theme="light"] body [class*="text-slate-100"],
html[data-theme="light"] body [class*="text-slate-200"],
html[data-theme="light"] body [class*="text-slate-300"] { color: #334155 !important; }
html[data-theme="light"] body [class*="text-slate-400"] { color: #475569 !important; }
html[data-theme="light"] body [class*="text-slate-500"] { color: #64748b !important; }

html[data-theme="light"] body [class*="text-black"] { color: #0f172a !important; }

html[data-theme="light"] body .data-table th {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

html[data-theme="light"] body .data-table td {
  color: #0f172a !important;
}

html[data-theme="light"] body input,
html[data-theme="light"] body textarea,
html[data-theme="light"] body select {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] body input::placeholder,
html[data-theme="light"] body textarea::placeholder {
  color: #64748b !important;
}

html[data-theme="light"] body .sidebar-item.active {
  background: rgba(14, 116, 144, 0.14) !important;
  color: #0369a1 !important;
  border-left-color: #0284c7 !important;
}

html[data-theme="light"] body .sidebar-item:hover,
html[data-theme="light"] body .sidebar-menu-toggle:hover,
html[data-theme="light"] body .data-table tr:hover {
  background: rgba(14, 116, 144, 0.08) !important;
}

.dashboard-theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}

.dashboard-theme-toggle.in-header {
  position: static;
  right: auto;
  bottom: auto;
  margin-right: 8px;
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: none;
}

html[data-theme="light"] .dashboard-theme-toggle {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
}
