/* Floating Theme Toggle */
#theme-toggle-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
}

#theme-toggle-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #3b82f6;
  /* Blue-500 */
  color: white;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
}

#theme-toggle-main:hover {
  transform: scale(1.1);
  background-color: #2563eb;
}

.theme-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #3b82f6;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px) scale(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

#theme-toggle-container.open .theme-option {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.theme-option.dark {
  background-color: #000000;
  border-color: #333;
}

.theme-option.light {
  background-color: #ffffff;
  border-color: #ccc;
}

.theme-option.beige {
  background-color: #F5F5DC;
  border-color: #d2b48c;
}

/* === THEME OVERRIDES === */

/* WHITE THEME */
body.theme-light {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

body.theme-light .bg-black {
  background-color: #ffffff !important;
}

body.theme-light .text-white {
  color: #0f172a !important;
}

body.theme-light .text-gray-300 {
  color: #475569 !important;
}

body.theme-light .text-gray-400 {
  color: #64748b !important;
}

body.theme-light .border-slate-800 {
  border-color: #e2e8f0 !important;
}

body.theme-light .bg-slate-900 {
  background-color: #f8fafc !important;
}

body.theme-light .bg-slate-900\/50 {
  background-color: rgba(248, 250, 252, 0.8) !important;
}

body.theme-light header.scrolled {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-bottom-color: #e2e8f0;
}

body.theme-light .logo a {
  color: #0f172a !important;
}

body.theme-light .menu-toggle span {
  background: #0f172a !important;
}

/* BEIGE THEME */
body.theme-beige {
  background-color: #d0d09e !important;
  color: #431407 !important;
  /* Dark brown/sepia tone */
}

body.theme-beige .bg-black {
  background-color: #F5F5DC !important;
}

body.theme-beige .text-white {
  color: #431407 !important;
}

body.theme-beige .text-gray-300 {
  color: #5d4037 !important;
}

body.theme-beige .text-gray-400 {
  color: #795548 !important;
}

body.theme-beige .border-slate-800 {
  border-color: #d7ccc8 !important;
}

body.theme-beige .bg-slate-900 {
  background-color: #f0eadd !important;
}

/* Slightly darker beige */
body.theme-beige .bg-slate-900\/50 {
  background-color: rgba(240, 234, 221, 0.8) !important;
}

body.theme-beige header.scrolled {
  background-color: rgba(245, 245, 220, 0.95) !important;
  border-bottom-color: #d7ccc8;
}

body.theme-beige .logo a {
  color: #431407 !important;
}

body.theme-beige .menu-toggle span {
  background: #431407 !important;
}