/* Theme Toggle Button */

.theme-toggle-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4);
  transition: all 0.3s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.6);
}

.theme-toggle-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.theme-toggle-btn i {
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover i {
  transform: rotate(20deg);
}

/* Light theme adjustments */
body.light-theme .theme-toggle-btn {
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  box-shadow: 0 8px 24px rgba(10, 74, 255, 0.3);
}

body.light-theme .theme-toggle-btn:hover {
  box-shadow: 0 12px 32px rgba(10, 74, 255, 0.5);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .theme-toggle-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
    bottom: 20px;
    right: 20px;
  }
}

/* Theme info tooltip */
.theme-toggle-btn::before {
  content: attr(title);
  position: absolute;
  right: 100%;
  margin-right: 12px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.theme-toggle-btn:hover::before {
  opacity: 1;
}

body.light-theme .theme-toggle-btn::before {
  background: rgba(26, 31, 58, 0.9);
}

/* Animation on theme change */
@keyframes themeChange {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}

.theme-toggle-btn.animating {
  animation: themeChange 0.6s ease;
}
