/* Flash messages - Fizzy-inspired fixed position pill */
.flash-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flash {
  transition: all 0.3s ease-in-out;
}

.flash__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7em 1.4em;
  border-radius: 4em;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Notice/Success - Green */
.flash--notice .flash__inner,
.flash--success .flash__inner {
  background-color: #065f46;
  color: white;
}

.flash--notice .flash__dismiss,
.flash--success .flash__dismiss {
  color: #a7f3d0;
}
.flash--notice .flash__dismiss:hover,
.flash--success .flash__dismiss:hover {
  color: white;
}

/* Alert/Error - Red */
.flash--alert .flash__inner,
.flash--error .flash__inner {
  background-color: #991b1b;
  color: white;
}

.flash--alert .flash__dismiss,
.flash--error .flash__dismiss {
  color: #fecaca;
}
.flash--alert .flash__dismiss:hover,
.flash--error .flash__dismiss:hover {
  color: white;
}

/* Warning - Amber */
.flash--warning .flash__inner {
  background-color: #92400e;
  color: white;
}

.flash--warning .flash__dismiss {
  color: #fde68a;
}
.flash--warning .flash__dismiss:hover {
  color: white;
}

/* Info - Blue */
.flash--info .flash__inner {
  background-color: #1e40af;
  color: white;
}

.flash--info .flash__dismiss {
  color: #bfdbfe;
}
.flash--info .flash__dismiss:hover {
  color: white;
}

.flash__dismiss {
  flex-shrink: 0;
  padding: 0.25rem;
  border-radius: 9999px;
  transition: color 0.2s;
}
.flash__dismiss:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}
