/* Enhanced Toast Notification System */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.toast {
  position: relative;
  min-width: 320px;
  max-width: 400px;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateX(100%) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  overflow: hidden;
}

.toast::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 12px 12px 0 0;
}

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

.toast.hide {
  transform: translateX(100%) scale(0.95);
  opacity: 0;
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.toast-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.toast-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, currentColor, transparent);
  opacity: 0.1;
  border-radius: 50%;
}

.toast-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  z-index: 1;
}

.toast-text {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.toast-description {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.4;
}

.toast-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.toast-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

.toast-close svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* Toast Types */
.toast.success {
  border-left: 4px solid #10b981;
}

.toast.success .toast-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.toast.success .toast-title {
  color: #059669;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.error .toast-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.toast.error .toast-title {
  color: #dc2626;
}

.toast.info {
  border-left: 4px solid var(--primary);
}

.toast.info .toast-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
}

.toast.info .toast-title {
  color: var(--primary);
}

.toast.warning {
  border-left: 4px solid #f59e0b;
}

.toast.warning .toast-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.toast.warning .toast-title {
  color: #d97706;
}

/* Dark Theme Toast */
.dark .toast {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.dark .toast::before {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.dark .toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dark .toast .toast-description {
  color: rgba(255, 255, 255, 0.8);
}

/* Progress Bar for Auto-dismiss */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 0 0 12px 12px;
  transform-origin: left;
  animation: toastProgress 5s linear forwards;
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

