/* Theme Toggle Component Styles */

.theme-toggle {
  position: relative !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  border-radius: 0.5rem !important;
  background-color: rgba(139, 92, 246, 0.05) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 300ms ease-in-out !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  z-index: 10 !important;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  background-color: var(--hover-bg);
  transform: scale(1.05);
}

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

.theme-toggle:focus {
  outline: none;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Theme Icons */
.theme-icon {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
}

.theme-icon.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(180deg) scale(0.5);
  pointer-events: none;
}

.theme-icon.visible {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* Sun Icon (Light Mode) */
.sun-icon {
  color: #f59e0b !important;
  stroke: currentColor !important;
}

/* Moon Icon (Dark Mode) */
.moon-icon {
  color: #8b5cf6 !important;
  stroke: currentColor !important;
}

/* System Icon (System Preference) */
.system-icon {
  color: #6366f1;
  stroke: currentColor;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .theme-toggle {
    width: 44px;
    height: 44px;
  }
}
