.toast-base {
  width: 100%;
  padding: 1rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;

  background: linear-gradient(
    135deg,
    oklch(0.90 0.08 250 / 0.4),
    oklch(0.85 0.07 250 / 0.45)
  );
  border: 1px solid oklch(0.95 0.04 250);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  box-shadow:
    0 8px 24px rgb(0 0 0 / 0.02),
    inset 0 0 0 1px oklch(1 0.01 250 / 0.05);

  color: oklch(0.35 0.05 250 / 0.8);
  transition: all 0.3s ease;
  background-clip: padding-box;

  position: relative; 
}
.toast-default {
  background: linear-gradient(
    135deg,
    hsl(220 25% 95%),
    hsl(220 22% 90%)
  );
  border: 1px solid hsl(220 20% 78%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  color: hsl(220 18% 18%);
}

.toast-success {
  background: linear-gradient(
    135deg,
    hsl(142 65% 90%),
    hsl(142 60% 82%)
  );
  border: 1px solid hsl(142 50% 70%);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.25);
  color: hsl(142 55% 18%);
}

.toast-error {
  background: linear-gradient(
    135deg,
    hsl(0 75% 90%),
    hsl(0 70% 82%)
  );
  border: 1px solid hsl(0 60% 70%);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.25);
  color: hsl(0 60% 22%);
}

.toast-warning {
  background: linear-gradient(
    135deg,
    hsl(45 100% 90%),
    hsl(45 95% 82%)
  );
  border: 1px solid hsl(45 85% 68%);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.25);
  color: hsl(35 75% 20%);
}

.toast-info {
  background: linear-gradient(
    135deg,
    hsl(210 75% 90%),
    hsl(210 70% 82%)
  );
  border: 1px solid hsl(210 60% 68%);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.25);
  color: hsl(210 60% 22%);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(2rem) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(2rem) scale(0.8);
  }
}

.toast-base[data-state="open"] {
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-base[data-state="closed"] {
  animation: toast-out 0.2s ease-in forwards;
}

.toast-close-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close-button:hover {
  background-color: rgba(255 255 255 / 0.15);
}

.toast-close-button svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}
