/* Global Theme Switcher CSS */
:root {
  --background: #ffffff;
  --foreground: #0d0d0d;
  --theme-accent: #4338ca;
  --transition-speed: 0.6s;
  --bg: var(--background);
  --text: var(--foreground);
  --ink: var(--foreground);
  --rule: var(--theme-accent);
}
html[data-theme="dark"] {
  --background: #111111;
  --foreground: #f5f5f5;
  --theme-accent: #ccff00;
  --bg: var(--background);
  --text: var(--foreground);
  --ink: var(--foreground);
  --rule: var(--theme-accent);
}
html[data-theme="luxury"] {
  --background: #05050a;
  --foreground: #e0e0ff;
  --theme-accent: #ff0055;
  --bg: var(--background);
  --text: var(--foreground);
  --ink: var(--foreground);
  --rule: var(--theme-accent);
}

body {
  background-color: var(--background) !important;
  color: var(--foreground) !important;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.theme-switcher-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 9999;
}

.theme-btn {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}

.theme-btn.active {
  border-color: rgba(128, 128, 128, 0.5);
  transform: scale(1.15);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.theme-btn:not(.active):hover {
  transform: scale(1.1);
}

.theme-bg-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.theme-accent-preview {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  transform: translate(15%, 15%);
  z-index: 2;
  pointer-events: none;
}
