/**
 * Theme Toggle Fixes
 * Clean, minimal button design matching original style
 */

/* Desktop and mobile button base styles */
.theme-toggle-btn,
#theme-toggle,
#theme-toggle-mobile,
button#theme-toggle,
button#theme-toggle-mobile {
  all: unset !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: 2px solid var(--color-border) !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  margin-left: 1rem !important;
  position: relative !important;
  z-index: 999999 !important;
  pointer-events: auto !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
}

.theme-toggle-btn:hover,
#theme-toggle:hover,
#theme-toggle-mobile:hover {
  background: rgba(34, 197, 94, 0.1) !important;
  border-color: #22c55e !important;
  transform: rotate(180deg) !important;
}

.theme-toggle-btn svg,
#theme-toggle svg,
#theme-toggle-mobile svg {
  width: 20px !important;
  height: 20px !important;
  color: var(--color-text-primary) !important;
  pointer-events: none !important;
  flex-shrink: 0 !important;
  transition: opacity 0.2s ease !important;
}

/* Mobile-specific adjustments - make it look like other nav items */
@media (max-width: 768px) {
  #theme-toggle-mobile,
  button#theme-toggle-mobile {
    width: 40px !important;
    height: 40px !important;
    margin: 0 0 0.5rem 0 !important;
    align-self: center !important;
  }
  
  /* Make the parent <li> centered */
  .modern-mobile-nav-list > li:has(#theme-toggle-mobile) {
    display: flex !important;
    justify-content: center !important;
    padding: 0.5rem 0 !important;
  }
}

/* Hide text spans if any accidentally remain */
.theme-toggle-btn span,
#theme-toggle span,
#theme-toggle-mobile span {
  display: none !important;
}

