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

:root {
  --font-title: 'Cinzel', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Color Palette */
  --color-bg-dark: #0f0d0b;
  --color-bg-panel: rgba(26, 21, 18, 0.75);
  --color-primary: #d4af37; /* Metallic Gold */
  --color-primary-glow: rgba(212, 175, 55, 0.4);
  --color-accent: #c84b31; /* Rust Red for X */
  --color-accent-glow: rgba(200, 75, 49, 0.6);
  --color-emerald: #2ec4b6; /* Emerald/Teal for success/start */
  --color-emerald-glow: rgba(46, 196, 182, 0.4);
  --color-text-bright: #f4eae1;
  --color-text-muted: #a39589;
  
  --border-gold: 1px solid rgba(212, 175, 55, 0.25);
  --border-gold-focus: 1px solid rgba(212, 175, 55, 0.6);
  --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(212, 175, 55, 0.05);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(26, 21, 18, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  color: var(--color-text-bright);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header & Navigation Styling */
header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(15, 13, 11, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: 0 0 12px var(--color-primary-glow);
  text-decoration: none;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  font-size: 1.2rem;
  color: var(--color-text-bright);
  font-weight: 300;
}

nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-title);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  border: var(--border-gold);
  background: rgba(212, 175, 55, 0.05);
  text-shadow: 0 0 8px var(--color-primary-glow);
}

/* Main Container Layout */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 1.25rem auto;
  padding: 0 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Base Screens (views) */
.view-screen {
  display: none;
  animation: fadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.view-screen.active {
  display: block;
}

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

/* Glassmorphism Card Style */
.premium-card {
  background: var(--color-bg-panel);
  backdrop-filter: blur(12px);
  border: var(--border-gold);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.title-decor {
  font-family: var(--font-title);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: var(--color-primary);
  text-shadow: 0 0 15px var(--color-primary-glow);
  letter-spacing: 2px;
}

.subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* Screen 0: Splash view for unassigned devices */
.splash-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.splash-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: 0 0 25px var(--color-primary-glow), 0 0 60px var(--color-primary-glow);
  letter-spacing: 4px;
}

/* Screen 1: Registration View */
.register-container {
  max-width: 550px;
  margin: 4rem auto;
}

.form-group {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-group label {
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--color-primary);
}

.input-glow {
  background: rgba(15, 13, 11, 0.6);
  border: var(--border-gold);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  color: var(--color-text-bright);
  font-family: var(--font-body);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.input-glow:focus {
  outline: none;
  border: var(--border-gold-focus);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #aa8410 100%);
  border: none;
  color: #0f0d0b;
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #ebd169 0%, #c49a1d 100%);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Screen 2: Map Game View */
.game-layout {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
}

.map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* The actual 10x10 Grid over map */
.map-outer-frame {
  border: 4px double var(--color-primary);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(20, 17, 15, 0.9);
  box-shadow: var(--shadow-premium);
  max-width: 520px;
  width: 100%;
}

.grid-labels-cols {
  display: grid;
  grid-template-columns: 35px repeat(10, 1fr);
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.grid-body-container {
  display: flex;
}

.grid-labels-rows {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 35px;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
  padding-right: 0.5rem;
}

.grid-map-board {
  flex: 1;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  background-image: url('assets/treasure_map.png');
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 4px;
  position: relative;
}

/* Wash out grid map slightly for contrast */
.grid-map-board::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 13, 11, 0.45); /* transparency layer */
  z-index: 1;
  pointer-events: none;
}

.grid-cell {
  border: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.grid-cell:hover {
  background-color: rgba(212, 175, 55, 0.15);
}

/* Glowing X mark */
.grid-cell.has-treasure::before {
  content: 'X';
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--color-accent);
  text-shadow: 0 0 15px var(--color-accent-glow), 0 0 30px var(--color-accent-glow);
  z-index: 3;
  animation: pulseX 1.5s infinite ease-in-out;
}

/* Custom background for treasure cells */
.grid-cell.has-treasure {
  background-color: rgba(200, 75, 49, 0.15);
}

/* Collection-order badge on top of the X mark */
.grid-cell.has-treasure::after {
  content: attr(data-order);
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0f0d0b;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 0.8rem;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  z-index: 5;
}

@keyframes pulseX {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.15); filter: brightness(1.3); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* Info & Controls Panel */
.panel-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.team-select-container {
  border-bottom: var(--border-gold);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}

.team-select-container label {
  display: block;
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.team-select-counter {
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0;
}

.team-select-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.team-select-row .input-glow {
  flex: 1;
  min-width: 0;
}

.team-select-row .btn-secondary {
  width: auto;
  padding: 0 0.9rem;
}

.team-select-container .input-glow {
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
}

.team-select-container .btn-primary {
  padding: 0.7rem;
  font-size: 1rem;
}

.team-header {
  border-bottom: var(--border-gold);
  padding-bottom: 1rem;
}

.team-header h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--color-primary);
}

.team-header p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

/* Big Digital Timer */
.timer-container {
  background: rgba(10, 8, 7, 0.85);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
}

.timer-label {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.timer-digits {
  font-family: monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  letter-spacing: 1px;
}

.timer-container-celebrate {
  border-color: var(--color-emerald);
  box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 0 20px rgba(46, 196, 182, 0.3);
}

.timer-digits-big {
  font-size: 3.6rem;
  color: var(--color-emerald);
  text-shadow: 0 0 20px rgba(46, 196, 182, 0.6);
}

.order-notice-complete {
  background: rgba(46, 196, 182, 0.12);
  border-color: rgba(46, 196, 182, 0.4);
  color: var(--color-emerald);
  animation: none;
}

/* Highlight box */
.order-notice {
  background: rgba(200, 75, 49, 0.1);
  border: 1px solid rgba(200, 75, 49, 0.3);
  border-radius: 8px;
  padding: 0.6rem;
  text-align: center;
  color: #ff6b6b;
  font-weight: bold;
  letter-spacing: 1.5px;
  font-size: 1rem;
  animation: pulseNotice 2s infinite ease-in-out;
}

@keyframes pulseNotice {
  0% { opacity: 0.8; box-shadow: 0 0 0px rgba(200, 75, 49, 0); }
  50% { opacity: 1; box-shadow: 0 0 15px rgba(200, 75, 49, 0.2); }
  100% { opacity: 0.8; box-shadow: 0 0 0px rgba(200, 75, 49, 0); }
}

/* Coordinates info box */
.coords-display {
  background: rgba(15, 13, 11, 0.5);
  border: var(--border-gold);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.coord-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.coord-row span.label {
  color: var(--color-text-muted);
}

.coord-row span.value {
  font-family: var(--font-title);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 1px;
}

/* Action Buttons for map page */
.action-buttons-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-game-action {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 1rem 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-start {
  background: linear-gradient(135deg, var(--color-emerald) 0%, #1d8277 100%);
  border: none;
  color: #0f0d0b;
  box-shadow: 0 4px 15px rgba(46, 196, 182, 0.25);
}

.btn-start:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 196, 182, 0.45);
}

.btn-end {
  background: linear-gradient(135deg, var(--color-accent) 0%, #902f1a 100%);
  border: none;
  color: var(--color-text-bright);
  box-shadow: 0 4px 15px rgba(200, 75, 49, 0.25);
}

.btn-end:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 75, 49, 0.45);
}

.btn-pause {
  background: linear-gradient(135deg, #e0a53c 0%, #a3701c 100%);
  border: none;
  color: #0f0d0b;
  box-shadow: 0 4px 15px rgba(224, 165, 60, 0.25);
}

.btn-pause:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(224, 165, 60, 0.45);
}

.btn-game-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-reset-session {
  background: rgba(15, 13, 11, 0.6);
  border: var(--border-gold);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding: 0.8rem;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.btn-reset-session:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(212, 175, 55, 0.05);
}

/* Screen 3: Leaderboard View */
.leaderboard-container {
  max-width: 900px;
  margin: 0 auto;
}

.leaderboard-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: var(--border-gold);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table th {
  background: rgba(15, 13, 11, 0.95);
  font-family: var(--font-title);
  color: var(--color-primary);
  padding: 1.2rem;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  font-size: 1rem;
  letter-spacing: 1px;
}

.leaderboard-table td {
  padding: 1.2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  font-size: 1.05rem;
  background: rgba(26, 21, 18, 0.4);
}

.leaderboard-table tr:last-child td {
  border-bottom: none;
}

.leaderboard-table tr:hover td {
  background: rgba(212, 175, 55, 0.06);
}

/* Rank Badge Styles */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
}

.rank-1 {
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  color: #0f0d0b;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.rank-2 {
  background: linear-gradient(135deg, #c0c0c0 0%, #708090 100%);
  color: #0f0d0b;
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}

.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
  color: #0f0d0b;
  box-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

.rank-other {
  border: 1px solid var(--color-text-muted);
  color: var(--color-text-muted);
}

.status-tag {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-completed {
  background: rgba(46, 196, 182, 0.15);
  color: var(--color-emerald);
  border: 1px solid rgba(46, 196, 182, 0.3);
}

.status-progress {
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-primary);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.status-registered {
  background: rgba(163, 149, 137, 0.15);
  color: var(--color-text-muted);
  border: 1px solid rgba(163, 149, 137, 0.3);
}

.status-paused {
  background: rgba(224, 165, 60, 0.15);
  color: #e0a53c;
  border: 1px solid rgba(224, 165, 60, 0.3);
}

/* Screen 4: Admin Panel View */
.admin-container {
  max-width: 1100px;
  margin: 0 auto;
}

.admin-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

@media (max-width: 600px) {
  .admin-header-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.admin-search {
  flex: 1;
}

.admin-buttons {
  display: flex;
  gap: 1rem;
}

.btn-secondary {
  background: rgba(15, 13, 11, 0.8);
  border: var(--border-gold);
  color: var(--color-primary);
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.btn-danger {
  background: linear-gradient(135deg, #c84b31 0%, #902f1a 100%);
  border: none;
  color: var(--color-text-bright);
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  box-shadow: 0 0 15px rgba(200, 75, 49, 0.4);
  background: linear-gradient(135deg, #e05e43 0%, #a83d25 100%);
}

/* Action button icons in grid */
.btn-table-action {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-primary);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 0.5rem;
}

.btn-table-action:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--color-primary);
}

.btn-table-delete {
  border-color: rgba(200, 75, 49, 0.3);
  color: #ff6b6b;
}

.btn-table-delete:hover {
  background: rgba(200, 75, 49, 0.15);
  border-color: var(--color-accent);
}

/* Modal Overlay Styling */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 8, 7, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: rgba(26, 21, 18, 0.95);
  border: var(--border-gold-focus);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 2.5rem;
  box-shadow: 0 10px 50px rgba(0,0,0,0.8);
  animation: modalSlide 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(-30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  font-family: var(--font-title);
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.8rem;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.modal-buttons button {
  padding: 0.8rem 1.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-buttons .btn-confirm {
  background: linear-gradient(135deg, var(--color-primary) 0%, #aa8410 100%);
  color: #0f0d0b;
  border: none;
}

.modal-buttons .btn-confirm:hover {
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.modal-buttons .btn-cancel {
  background: transparent;
  border: 1px solid var(--color-text-muted);
  color: var(--color-text-muted);
}

.modal-buttons .btn-cancel:hover {
  color: var(--color-text-bright);
  border-color: var(--color-text-bright);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none; /* let clicks fall through to whatever is underneath */
}

.toast {
  background: rgba(20, 18, 16, 0.75);
  border: var(--border-gold);
  border-left: 4px solid var(--color-primary);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  min-width: 280px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  animation: toastIn 0.3s ease forwards;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-bright);
  pointer-events: none; /* clicks pass through to whatever button sits underneath the toast */
}

.toast.error {
  border-left-color: var(--color-accent);
}

.toast.success {
  border-left-color: var(--color-emerald);
}

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

.toast-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: 1rem;
  pointer-events: auto; /* the close (x) button itself still needs to be clickable */
}

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