/* Day / Night theme toggle button — always loaded (works on both themes).
   The dark glass theme itself lives in theme-night.css, scoped to
   html.theme-night. This file only styles the persistent toggle control. */

.theme-toggle-btn {
  position: fixed;
  top: 10px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #1B2A4A;
  box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.35);
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.theme-toggle-btn:hover { transform: translateY(-1px) scale(1.04); }
.theme-toggle-btn:active { transform: scale(0.96); }
.theme-toggle-btn svg { width: 18px; height: 18px; display: block; }

/* Night look — glowing teal glass */
html.theme-night .theme-toggle-btn {
  background: rgba(15, 28, 38, 0.72);
  border: 1px solid rgba(94, 234, 212, 0.45);
  color: #5eead4;
  box-shadow: 0 0 22px -6px rgba(45, 212, 191, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
html.theme-night .theme-toggle-btn:hover {
  box-shadow: 0 0 30px -4px rgba(45, 212, 191, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Reserve the top-right corner so the always-present toggle never overlaps a
   page's action buttons. Desktop only (mobile has its own nav layout). */
@media (min-width: 901px) {
  .main-content { padding-right: 52px; }
}

@media (max-width: 640px) {
  .theme-toggle-btn { top: 8px; right: 10px; width: 34px; height: 34px; }
}
