/* Toast Notification System */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  min-width: 320px;
  max-width: 480px;
  padding: 16px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.toast.toast-exit {
  animation: toastSlideOut 0.2s ease-in forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-top: 1px;
}

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

.toast-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1815;
  margin-bottom: 4px;
  line-height: 1.4;
}

.toast-message {
  font-size: 13px;
  color: #6e645a;
  line-height: 1.5;
  word-wrap: break-word;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #6e645a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
  margin-top: 1px;
}

.toast-close:hover {
  background: #f5f3f0;
  color: #1a1815;
}

/* Toast Types */
.toast.toast-success {
  border-left: 3px solid #2e7d32;
}

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

.toast.toast-error {
  border-left: 3px solid #c93434;
}

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

.toast.toast-warning {
  border-left: 3px solid #f57c00;
}

.toast.toast-warning .toast-icon {
  color: #f57c00;
}

.toast.toast-info {
  border-left: 3px solid #1976d2;
}

.toast.toast-info .toast-icon {
  color: #1976d2;
}

/* Animations */
@keyframes toastSlideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Progress Bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  transform-origin: left;
}

.toast.toast-success .toast-progress {
  background: #2e7d32;
}

.toast.toast-error .toast-progress {
  background: #c93434;
}

.toast.toast-warning .toast-progress {
  background: #f57c00;
}

.toast.toast-info .toast-progress {
  background: #1976d2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}
