/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 320px;
  max-width: 420px;
  padding: 18px 24px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 5px solid;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.toast.success {
  border-left-color: #047857;
  background: #ffffff;
  color: #1f2937;
}

.toast.success .toast-icon {
  color: var(--accent);
  background: rgba(16, 185, 129, 0.1);
}

.toast.success .toast-message {
  color: #1f2937;
}

.toast.error {
  border-left-color: #db2777;
  background: #ffffff;
  color: #1f2937;
}

.toast.error .toast-icon {
  color: var(--pink);
  background: rgba(236, 72, 153, 0.1);
}

.toast.error .toast-message {
  color: #1f2937;
}

.toast.info {
  border-left-color: #b45309;
  background: #ffffff;
  color: #1f2937;
}

.toast.info .toast-icon {
  color: var(--yellow);
  background: rgba(234, 179, 8, 0.1);
}

.toast.info .toast-message {
  color: #1f2937;
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toast.success .toast-icon {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.toast.error .toast-icon {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.toast.info .toast-icon {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.toast-message {
  flex: 1;
  font-size: 15px;
  color: #1f2937;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.toast-close {
  background: rgba(156, 163, 175, 0.1);
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  background: rgba(156, 163, 175, 0.2);
  color: #374151;
  transform: rotate(90deg);
}

@keyframes slideIn {
  from {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
}

.toast.hiding {
  animation: slideOut 0.3s ease-out forwards;
}

@media (max-width: 768px) {
  .toast-container {
    right: 10px;
    left: 10px;
    top: 10px;
  }
  
  .toast {
    min-width: auto;
    max-width: none;
  }
}
