/* Wrapper */
.toast-wrapper {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Desktop positioning */
@media (min-width: 640px) {
  .toast-wrapper {
    left: auto;
    right: 1.5rem;
    transform: none;
  }
}

/* Card */
.toast-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 300px;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;

  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb; /* gray-200 */
}

/* Icon */
.toast-icon {
  margin-top: 0.125rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Icon states */
.toast-icon-success {
  background-color: #d1fae5; /* emerald-100 */
  color: #059669;           /* emerald-600 */
}

.toast-icon-error {
  background-color: #fee2e2; /* red-100 */
  color: #dc2626;            /* red-600 */
}

/* SVG */
.toast-svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Content */
.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827; /* gray-900 */
}

.toast-message {
  font-size: 0.875rem;
  color: #1f2937; /* gray-800 */
  line-height: 1.3;
  font-weight: 500;
}

/* Close button */
.toast-close {
  background: none;
  border: none;
  color: #6b7280; /* gray-500 */
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: #374151; /* gray-700 */
}

.toast-fade-enter-from,
.toast-fade-leave-to {
  opacity: 0;
  transform: translateY(-10px);
}

.toast-fade-enter-active {
  transition: all 0.25s ease-in;
}

.toast-fade-leave-active {
  transition: all 0.2s ease-out;
}
