

.theme-toggle-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  padding: 0;
  color: var(--color-primary);
  overflow: hidden;
}

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

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


.theme-icon-dark,
.theme-icon-light {
  position: absolute;
  font-size: var(--font-size-lg);
  transition: opacity var(--duration-base) var(--ease-in-out),
              transform var(--duration-base) var(--ease-in-out);
}


[data-theme="dark"] .theme-icon-dark {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="dark"] .theme-icon-light {
  opacity: 0;
  transform: rotate(180deg);
}


[data-theme="light"] .theme-icon-dark {
  opacity: 0;
  transform: rotate(-180deg);
}

[data-theme="light"] .theme-icon-light {
  opacity: 1;
  transform: rotate(0deg);
}


.theme-icon-dark {
  opacity: 1;
}

.theme-icon-light {
  opacity: 0;
}


:root {
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
}




[data-theme="dark"] body,
body {
  background: var(--gradient-dark);
  min-height: 100vh;
}


[data-theme="light"] body {
  background: var(--color-bg);
  min-height: 100vh;
}




[data-theme="light"] body,
[data-theme="light"] * {
  color: var(--color-text-primary);
}


[data-theme="dark"] body,
[data-theme="dark"] *,
body,
body * {
  color: var(--color-text-primary);
}




[data-theme="light"] .navbar .navbar-brand span {
  color: var(--color-logo-text) !important;
}


[data-theme="dark"] .navbar .navbar-brand span,
.navbar .navbar-brand span {
  color: var(--color-logo-text) !important;
}


.no-transition,
.no-transition *,
[data-no-transition],
[data-no-transition] * {
  transition: none !important;
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}




@media (min-width: 320px) {
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }
}


@media (min-width: 375px) {
  .theme-toggle-btn {
    width: 38px;
    height: 38px;
  }
}


@media (min-width: 412px) {
  .theme-toggle-btn {
    width: 40px;
    height: 40px;
  }
}


@media (min-width: 768px) {
  .theme-toggle-btn {
    width: 40px;
    height: 40px;
  }
}


@media (min-width: 1920px) {
  .theme-toggle-btn {
    width: 48px;
    height: 48px;
  }
}


@media (min-width: 2560px) {
  .theme-toggle-btn {
    width: 56px;
    height: 56px;
  }
  .theme-icon-dark,
  .theme-icon-light {
    font-size: var(--font-size-3xl);
  }
}
