/* Floating theme switcher (top-right) */
.theme-switcher {
  position: fixed;
  top: calc(var(--navbar-offset) + 8px);
  right: 12px;
  z-index: 20000;
}

@media (max-width: 750px) {
  .theme-switcher {
    display: none;
  }
}
.theme-toggle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  margin-top: 10px;
  background: var(--bg-dark) !important;
  border: 3px solid var(--accent-blue);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 16px rgba(99, 102, 241, 0.4),
    0 0 0 1px rgba(99, 102, 241, 0.1);
  color: #ffffff;
  font-size: 1.4rem;
}
.theme-toggle-button:hover {
  background: var(--primary-blue-hover);
  border-color: var(--accent-blue);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow:
    0 6px 24px rgba(99, 102, 241, 0.5),
    0 0 0 2px rgba(99, 102, 241, 0.2);
}
.theme-toggle-button:active {
  transform: scale(0.95);
}
.theme-toggle-button:focus {
  outline: none;
  box-shadow:
    0 4px 16px rgba(99, 102, 241, 0.4),
    0 0 0 1px rgba(99, 102, 241, 0.1);
}
.theme-icon {
  display: inline-block;
  line-height: 1;
}
/* Hide sun icon by default (dark theme shows moon) */
.theme-icon.fa-sun {
  display: none;
}
/* In light theme, hide moon and show sun */
body.theme-light .theme-icon.fa-moon {
  display: none;
}
body.theme-light .theme-icon.fa-sun {
  display: inline-block;
}
