#theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  margin-left: 0.75rem;
  padding: 0;
  border: 1px solid rgba(77, 87, 105, 0.2);
  border-radius: 50%;
  color: #344054;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.25rem 0.8rem rgba(11, 19, 42, 0.12);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.4rem 1rem rgba(11, 19, 42, 0.18);
}

#theme-toggle:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

#theme-toggle[aria-pressed="true"] {
  color: #ffd166;
  background: #202a38;
  border-color: #46536a;
}

#theme-toggle i {
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

#theme-toggle[aria-pressed="true"] i {
  transform: rotate(-20deg);
}

@media (max-width: 991.98px) {
  #theme-toggle {
    margin: 0.5rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #theme-toggle,
  #theme-toggle i {
    transition: none;
  }
}

[data-theme="dark"] .error-msg {
  color: #ffe4e6;
  background-color: #3b1519;
  border: 1px solid #74333a;
}

[data-theme="dark"] .error-msg h1,
[data-theme="dark"] .error-msg h2,
[data-theme="dark"] .error-msg h3,
[data-theme="dark"] .error-msg h4,
[data-theme="dark"] .error-msg h5,
[data-theme="dark"] .error-msg h6,
[data-theme="dark"] .error-msg .fw-medium,
[data-theme="dark"] .error-msg p,
[data-theme="dark"] .error-msg strong,
[data-theme="dark"] .error-msg a {
  color: #ffe4e6 !important;
}

[data-theme="dark"] .info-msg {
 color: #d7edff;
 background-color: #142c3d;
 border: 1px solid #315a78;
}

[data-theme="dark"] .success-msg {
 color: #d9f5df;
 background-color: #173323;
 border: 1px solid #356747;
}

[data-theme="dark"] .warning-msg {
 color: #ffedc2;
 background-color: #3a2c15;
 border: 1px solid #79602c;
}

[data-theme="dark"] .info-msg h1,
[data-theme="dark"] .info-msg h2,
[data-theme="dark"] .info-msg h3,
[data-theme="dark"] .info-msg h4,
[data-theme="dark"] .info-msg h5,
[data-theme="dark"] .info-msg h6,
[data-theme="dark"] .info-msg .fw-medium,
[data-theme="dark"] .info-msg p,
[data-theme="dark"] .info-msg strong,
[data-theme="dark"] .info-msg a,
[data-theme="dark"] .success-msg h1,
[data-theme="dark"] .success-msg h2,
[data-theme="dark"] .success-msg h3,
[data-theme="dark"] .success-msg h4,
[data-theme="dark"] .success-msg h5,
[data-theme="dark"] .success-msg h6,
[data-theme="dark"] .success-msg .fw-medium,
[data-theme="dark"] .success-msg p,
[data-theme="dark"] .success-msg strong,
[data-theme="dark"] .success-msg a,
[data-theme="dark"] .warning-msg h1,
[data-theme="dark"] .warning-msg h2,
[data-theme="dark"] .warning-msg h3,
[data-theme="dark"] .warning-msg h4,
[data-theme="dark"] .warning-msg h5,
[data-theme="dark"] .warning-msg h6,
[data-theme="dark"] .warning-msg .fw-medium,
[data-theme="dark"] .warning-msg p,
[data-theme="dark"] .warning-msg strong,
[data-theme="dark"] .warning-msg a {
 color: inherit !important;
}

[data-theme="dark"] .christmas-msg {
 background-blend-mode: multiply;
}
