/* 공용 테마 — test 허브 + 하위 프로젝트 */

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface-hover: #222633;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f2f8;
  --text-muted: #9aa3b8;
  --accent: #6c8cff;
  --accent-hover: #5576f0;
  --accent-soft: rgba(108, 140, 255, 0.18);
  --accent-soft-hover: rgba(108, 140, 255, 0.15);
  --accent-border: rgba(108, 140, 255, 0.35);
  --accent-text: #a8bcff;
  --done: #5cb87a;
  --danger: #e05c6a;
  --danger-bg: rgba(224, 92, 106, 0.15);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --card-overlay: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.4) 45%,
    rgba(0, 0, 0, 0.12) 100%
  );
  --empty-border: rgba(255, 255, 255, 0.15);
  --toggle-bg: rgba(26, 29, 39, 0.92);
  --toggle-border: rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f8;
  --surface: #ffffff;
  --surface-hover: #eef0f6;
  --border: rgba(0, 0, 0, 0.1);
  --text: #1a1d27;
  --text-muted: #5c6478;
  --accent: #4a6cf7;
  --accent-hover: #3a5ce6;
  --accent-soft: rgba(74, 108, 247, 0.12);
  --accent-soft-hover: rgba(74, 108, 247, 0.1);
  --accent-border: rgba(74, 108, 247, 0.35);
  --accent-text: #4a6cf7;
  --done: #2d9a5a;
  --danger: #d94452;
  --danger-bg: rgba(217, 68, 82, 0.12);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  --card-overlay: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
  --empty-border: rgba(0, 0, 0, 0.12);
  --toggle-bg: rgba(255, 255, 255, 0.92);
  --toggle-border: rgba(0, 0, 0, 0.1);
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  background: var(--toggle-bg);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.theme-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}
