/* ============================================
   THE LINE SPOTIFY OVERLAY - GOLD EDITION
   Matching TheLine_Pagina Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Core Colors - Gold/Dark Red Theme (from TheLine_Pagina) */
  --bg-black: #0a0a0a;
  --bg-dark: #0f0f0f;
  --bg-card: rgba(20, 20, 20, 0.8);
  --bg-input: rgba(30, 30, 30, 0.6);
  
  /* Gold/Red Primary (TheLine brand) */
  --gold-primary: #CC1414;
  --gold-bright: #E81C1C;
  --gold-dark: #8B0000;
  --gold-glow: rgba(180, 10, 10, 0.30);
  
  /* Text Colors */
  --text-white: #FFFFFF;
  --text-light: #E0E0E0;
  --text-muted: #A0A0A0;
  --text-dark: #666666;
  
  /* Accents */
  --red-glow: rgba(180, 10, 10, 0.20);
  --border-gold: rgba(139, 0, 0, 0.55);
  
  /* Typography */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-base: 0.4s ease;
  
  /* Radius */
  --radius: 12px;
  --radius-sm: 8px;
  
  /* Legacy green for Spotify accent */
  --spotify-green: #1DB954;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body.setup-body {
  font-family: var(--font-body);
  font-weight: 400;
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url('/bg.png') center / cover no-repeat fixed;
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  line-height: 1.6;
}

.setup-container {
  width: 100%;
  max-width: 640px;
}

.setup-header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.logo-icon i {
  font-size: 28px;
  color: white;
}

.logo h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-white);
}

.logo h1 span {
  color: var(--gold-primary);
}

.subtitle {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

.premium-note {
  margin-top: 16px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.08);
}

.premium-note i {
  font-size: 16px;
  color: #ffd700;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
  font-family: var(--font-body);
}

.alert-error {
  background: rgba(204, 20, 20, 0.1);
  border: 1px solid rgba(204, 20, 20, 0.3);
  color: #ff6b6b;
}

.alert-success {
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(29, 185, 84, 0.3);
  color: #6cdb9c;
}

.setup-steps, .setup-guide {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.setup-steps {
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  backdrop-filter: blur(10px);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.step-card:hover {
  border-color: rgba(180, 10, 10, 0.5);
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.15);
}

.step-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: white;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.step-card a {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.step-card a:hover {
  color: var(--text-white);
  text-decoration: underline;
}

/* ========= SETUP GUIDE ========= */

.guide-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  user-select: none;
}

.guide-header:hover {
  border-color: var(--gold-primary);
  background: rgba(20, 20, 20, 0.9);
}

.guide-header i:first-child {
  color: var(--gold-primary);
  font-size: 18px;
}

.guide-header span {
  flex: 1;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: 0.3px;
}

.guide-arrow {
  color: var(--text-muted);
  font-size: 14px;
  transition: transform 0.3s ease;
}

.guide-arrow.open {
  transform: rotate(180deg);
}

.guide-content {
  max-height: 0;
  overflow: hidden;
  flex-direction: column;
  gap: 16px;
  padding: 0 4px;
  transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.3s ease;
  opacity: 0;
}

.guide-content.open {
  max-height: 800px;
  padding: 4px;
  opacity: 1;
}

.guide-step {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  align-items: flex-start;
  transform: translateX(-8px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.guide-content.open .guide-step {
  transform: translateX(0);
  opacity: 1;
}

.guide-content.open .guide-step:nth-child(1) { transition-delay: 0.05s; }
.guide-content.open .guide-step:nth-child(2) { transition-delay: 0.10s; }
.guide-content.open .guide-step:nth-child(3) { transition-delay: 0.15s; }
.guide-content.open .guide-step:nth-child(4) { transition-delay: 0.20s; }
.guide-content.open .guide-step:nth-child(5) { transition-delay: 0.25s; }

.guide-step-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
}

.guide-step-body h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.guide-step-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.guide-step-body p:last-child {
  margin-bottom: 0;
}

.guide-step-body a {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 500;
}

.guide-step-body a:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.guide-code {
  display: block;
  background: var(--bg-dark);
  border: 1px solid var(--border-gold);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--spotify-green);
  word-break: break-all;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  margin: 8px 0;
}

.step-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-gold);
}

.step-detail p {
  margin-bottom: 8px;
  color: var(--text-light);
}

code {
  display: block;
  background: var(--bg-dark);
  border: 1px solid var(--border-gold);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--spotify-green);
  word-break: break-all;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.auth-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form .form-group {
  animation: fadeUp 0.5s ease both;
}

.auth-form .form-group:nth-child(1) { animation-delay: 0.1s; }
.auth-form .form-group:nth-child(2) { animation-delay: 0.2s; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  background: var(--bg-input);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-white);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group input::placeholder {
  color: var(--text-dark);
}

.btn {
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-spotify {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: white;
  box-shadow: 0 4px 20px var(--gold-glow);
  animation: glowPulse 3s ease-in-out infinite;
}

.btn-spotify:hover {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--gold-glow);
  animation: none;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 20px var(--gold-glow); }
  50% { box-shadow: 0 4px 30px var(--gold-glow), 0 0 40px rgba(139, 0, 0, 0.2); }
}

.btn-spotify i {
  font-size: 18px;
}

.btn-copy {
  background: var(--bg-input);
  color: var(--text-light);
  border: 1px solid var(--border-gold);
  padding: 12px 18px;
  font-size: 13px;
}

.btn-copy:hover {
  background: var(--border-gold);
  color: var(--text-white);
}

.hidden { display: none !important; }

.spinner {
  text-align: center;
  padding: 32px 0;
}

.spinner-icon {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-gold);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

.spinner p {
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-display);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.url-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  animation: fadeUp 0.5s ease both;
}

.url-box label {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.url-field {
  display: flex;
  gap: 12px;
}

.url-field input {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--spotify-green);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  outline: none;
}

.url-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.preview-box {
  margin-bottom: 20px;
}

.preview-box h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-iframe {
  width: 100%;
  max-width: 500px;
  height: 80px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  background: var(--bg-dark);
  display: block;
}

.time-display {
  margin-top: 12px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}

.time-display span {
  color: var(--gold-bright);
}

#currentTime {
  color: var(--text-white);
}

.reset-link {
  text-align: center;
  margin-top: 12px;
  margin-bottom: 24px;
}

.reset-link a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  font-family: var(--font-display);
  transition: color var(--transition-fast);
}

.reset-link a:hover {
  color: var(--gold-bright);
}

.footer {
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer span {
  color: var(--gold-primary);
}

/* ========= OVERLAY WIDGET ========= */

.overlay-widget {
  position: relative;
  width: 500px;
  height: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  will-change: transform;
  transform: translateZ(0);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border: 2px solid var(--border-gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.overlay-widget.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
}

.overlay-logo {
  position: absolute;
  top: 8px;
  right: 12px;
  height: 22px;
  width: auto;
  opacity: 0.9;
  z-index: 3;
  pointer-events: none;
}

.overlay-url {
  position: absolute;
  top: 11px;
  right: 42px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-white);
  opacity: 0.8;
  letter-spacing: 0.3px;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}

.album-art-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.3);
  opacity: 0.6;
  transition: background-image 0.5s ease;
  z-index: 0;
}

.overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.8) 100%);
  z-index: 1;
}

.overlay-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.overlay-content.changing {
  opacity: 0.3;
}

.album-art {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}

.album-art.pulse {
  animation: albumPulse 0.8s ease;
}

@keyframes albumPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.album-art img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-gold);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.album-art-shadow {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.track-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  height: 100%;
  padding: 2px 0;
}

.track-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

.track-artist {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: color 0.3s ease;
}

.progress-container {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar {
  width: 75%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-bright));
  border-radius: 4px;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--gold-glow);
}

.progress-time {
  display: flex;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-body);
}

/* ========= SOUND WAVES ========= */

.sound-waves {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 5;
  pointer-events: none;
}

.wave-bar {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold-primary);
  box-shadow: 0 0 6px var(--gold-glow);
  transform: scaleY(0.3);
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.sound-waves.playing .wave-bar {
  animation: waveBounce 0.5s ease-in-out infinite alternate;
  opacity: 1;
}

.sound-waves.playing .wave-bar:nth-child(1) { animation-duration: 0.45s; animation-delay: -0.1s; }
.sound-waves.playing .wave-bar:nth-child(2) { animation-duration: 0.55s; animation-delay: -0.2s; height: 6px; }
.sound-waves.playing .wave-bar:nth-child(3) { animation-duration: 0.40s; animation-delay: -0.05s; height: 3px; }
.sound-waves.playing .wave-bar:nth-child(4) { animation-duration: 0.60s; animation-delay: -0.3s; height: 5px; }
.sound-waves.playing .wave-bar:nth-child(5) { animation-duration: 0.48s; animation-delay: -0.15s; height: 4px; }
.sound-waves.playing .wave-bar:nth-child(6) { animation-duration: 0.52s; animation-delay: -0.25s; height: 7px; }

@keyframes waveBounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(2.5); }
}

.sound-waves.paused .wave-bar {
  animation-play-state: paused;
  opacity: 0.5;
}

.sound-waves.stopped .wave-bar {
  animation: none;
  transform: scaleY(0.3);
  opacity: 0.2;
}

.paused-indicator {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 3;
}

.paused-content {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-display);
  background: rgba(204, 20, 20, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
}

.paused-content i {
  font-size: 12px;
}

.paused-indicator.hidden {
  display: none;
}

.overlay-error {
  background: rgba(204, 20, 20, 0.15);
  border: 1px solid rgba(204, 20, 20, 0.3);
  color: #ff6b6b;
  padding: 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
  font-family: var(--font-body);
}

/* ========= NOTIFICATIONS / TOASTS ========= */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.3s ease;
  max-width: 350px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-light);
}

.toast.error {
  border-color: rgba(204, 20, 20, 0.5);
  background: rgba(204, 20, 20, 0.1);
}

.toast.success {
  border-color: rgba(29, 185, 84, 0.5);
  background: rgba(29, 185, 84, 0.1);
}

.toast.warning {
  border-color: rgba(255, 165, 0, 0.5);
  background: rgba(255, 165, 0, 0.1);
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast.error .toast-icon {
  color: #ff6b6b;
}

.toast.success .toast-icon {
  color: #6cdb9c;
}

.toast.warning .toast-icon {
  color: #ffa500;
}

.toast-content {
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.toast-close:hover {
  color: var(--text-white);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.toast.hiding {
  animation: slideOut 0.3s ease forwards;
}

/* ========= SCROLLBAR ========= */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-black);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
  border: 1px solid rgba(180, 10, 10, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--bg-black);
}

/* Remove browser default validation styles */
input:invalid {
  box-shadow: none;
}

input:-moz-ui-invalid {
  box-shadow: none;
}

/* Spotify Icon Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.logo-icon {
  animation: pulse 3s ease-in-out infinite;
}
