/* Toast notification styling matching the Midnight Spotlight design system */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100vw - 48px);
}

.toast {
  pointer-events: auto;
  background: rgba(15, 20, 48, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
  position: relative;
  overflow: hidden;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.toast.error {
  border: 1px solid rgba(251, 113, 133, 0.3);
}

.toast.info {
  border: 1px solid rgba(244, 196, 90, 0.3);
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: #2dd4bf;
}

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

.toast.info .toast-icon {
  color: #f4c45a;
}

.toast-content {
  font-family: 'Sora', 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: #8a90c0;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(1);
}

.toast.success .toast-progress {
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.4), #2dd4bf);
}

.toast.error .toast-progress {
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.4), #fb7185);
}

.toast.info .toast-progress {
  background: linear-gradient(90deg, rgba(244, 196, 90, 0.4), #f4c45a);
}
