/* public/css/theme.css */
:root {
  --bg-page: #07090e;
  --bg-card: #121620;
  --bg-surface: #161b26;
  --bg-input: #1b202d;
  --bg-pill-track: #0d1017;
  --bg-btn-secondary: #141822;
  --bg-btn-secondary-hover: #1b2130;
  --bg-status: #121620;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-input: rgba(255, 255, 255, 0.1);
  --border-focus: #2563eb;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-placeholder: #6b7280;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-link: #3b82f6;
  --accent-green: #22c55e;
  --accent-key: #10b981;
  --top-bar-grad: linear-gradient(90deg, #1d4ed8 0%, #06b6d4 55%, #10b981 100%);
  --icon-box-bg: #17223b;
  --icon-box-border: rgba(59, 130, 246, 0.25);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.65);
}

/* Normal / White Theme */
html.light-theme {
  --bg-page: #f4f6fa;
  --bg-card: #ffffff;
  --bg-surface: #ffffff;
  --bg-input: #f8fafc;
  --bg-pill-track: #eef2f6;
  --bg-btn-secondary: #ffffff;
  --bg-btn-secondary-hover: #f8fafc;
  --bg-status: #ffffff;
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-input: #cbd5e1;
  --border-focus: #2563eb;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-placeholder: #94a3b8;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-link: #2563eb;
  --accent-green: #16a34a;
  --accent-key: #059669;
  --top-bar-grad: linear-gradient(90deg, #2563eb 0%, #0ea5e9 55%, #10b981 100%);
  --icon-box-bg: #eff6ff;
  --icon-box-border: rgba(37, 99, 235, 0.2);
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.08);
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-status);
  color: #eab308;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

html.light-theme .theme-toggle-btn {
  color: #334155;
}

.theme-toggle-btn:hover {
  background-color: var(--bg-btn-secondary-hover);
  border-color: var(--border-input);
}

.theme-toggle-btn:active {
  transform: scale(0.96);
}