/* ================================================================
   THEME TOGGLE — Light/Dark mode toggle button styles
   ================================================================ */

/* Toggle button base */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--sidebar-line, rgba(39,76,119,0.08));
  background: var(--sidebar-surface, #e7ecef);
  color: var(--sidebar-ink, #274c77);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover {
  background: rgba(91, 141, 239, 0.12);
  border-color: var(--sidebar-blue, #6096ba);
  color: var(--sidebar-blue, #6096ba);
  transform: translateY(-1px);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--sidebar-blue, #6096ba);
  outline-offset: 2px;
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Topbar toggle — slightly smaller */
.site-topbar .theme-toggle,
.topbar-right .theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

/* Auth nav toggle */
.top-nav .nav-actions .theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

/* Admin topbar toggle */
.topbar-actions .theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

/* Sidebar footer toggle */
.sidebar-theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-theme-toggle .theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

/* Form field focus highlight animation */
@keyframes fieldPulse {
  0% { box-shadow: 0 0 0 0 rgba(96, 150, 186, 0.7); border-color: #6096ba; outline: 2px solid #6096ba; }
  50% { box-shadow: 0 0 0 8px rgba(96, 150, 186, 0.35); border-color: #6096ba; outline: 2px solid #6096ba; }
  100% { box-shadow: 0 0 0 0 rgba(42, 109, 244, 0); }
}

.field-highlight {
  animation: fieldPulse 1.6s ease-in-out !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .theme-toggle {
    transition: none;
  }
  .theme-toggle:hover {
    transform: none;
  }
  .field-highlight {
    animation: none !important;
  }
}

/* ================================================================
   GRADIENT BUTTON — Animated gradient button with hover effects
   ================================================================ */

@property --pos-x {
  syntax: '<percentage>';
  initial-value: 11.14%;
  inherits: false;
}

@property --pos-y {
  syntax: '<percentage>';
  initial-value: 140%;
  inherits: false;
}

@property --spread-x {
  syntax: '<percentage>';
  initial-value: 150%;
  inherits: false;
}

@property --spread-y {
  syntax: '<percentage>';
  initial-value: 180.06%;
  inherits: false;
}

@property --color-1 {
  syntax: '<color>';
  initial-value: #6096ba;
  inherits: false;
}

@property --color-2 {
  syntax: '<color>';
  initial-value: #274c77;
  inherits: false;
}

@property --color-3 {
  syntax: '<color>';
  initial-value: #3b82f6;
  inherits: false;
}

@property --color-4 {
  syntax: '<color>';
  initial-value: #60a5fa;
  inherits: false;
}

@property --color-5 {
  syntax: '<color>';
  initial-value: #93c5fd;
  inherits: false;
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 20deg;
  inherits: true;
}

@property --border-color-1 {
  syntax: '<color>';
  initial-value: hsla(340, 75%, 60%, 0.2);
  inherits: true;
}

@property --border-color-2 {
  syntax: '<color>';
  initial-value: hsla(340, 75%, 40%, 0.75);
  inherits: true;
}

@property --stop-1 {
  syntax: '<percentage>';
  initial-value: 37.35%;
  inherits: false;
}

@property --stop-2 {
  syntax: '<percentage>';
  initial-value: 61.36%;
  inherits: false;
}

@property --stop-3 {
  syntax: '<percentage>';
  initial-value: 78.42%;
  inherits: false;
}

@property --stop-4 {
  syntax: '<percentage>';
  initial-value: 89.52%;
  inherits: false;
}

@property --stop-5 {
  syntax: '<percentage>';
  initial-value: 100%;
  inherits: false;
}

.gradient-button {
  position: relative;
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  min-width: 132px;
  padding: 16px 36px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 800;
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
  text-decoration: none !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #6096ba 0%, #274c77 100%);
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(96, 150, 186, 0.4);
}

.gradient-button:hover {
  background: linear-gradient(135deg, #274c77 0%, #1a3a52 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(96, 150, 186, 0.5);
}

.gradient-button:visited {
  color: #ffffff !important;
}

.gradient-button-variant {
  --color-1: #000022;
  --color-2: #1f3f6d;
  --color-3: #469396;
  --color-4: #f1ffa5;
  --border-angle: 200deg;
  --border-color-1: hsla(320, 75%, 90%, 0.6);
  --border-color-2: hsla(320, 50%, 90%, 0.15);
}

.gradient-button-variant:hover {
  --pos-x: 0%;
  --pos-y: 95.51%;
  --spread-x: 110.24%;
  --spread-y: 110.2%;
  --color-1: #000020;
  --color-2: #f1ffa5;
  --color-3: #469396;
  --color-4: #1f3f6d;
  --color-5: #000;
  --stop-1: 0%;
  --stop-2: 10%;
  --stop-3: 35.44%;
  --stop-4: 71.34%;
  --stop-5: 90.76%;
  --border-angle: 210deg;
  --border-color-1: hsla(320, 75%, 90%, 0.2);
  --border-color-2: hsla(320, 50%, 90%, 0.75);
}
