/* Modern Toast Notification System */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  background: white;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #10B981;
  max-width: 400px;
  min-width: 320px;
  pointer-events: auto;
  transform: translateX(120%);
  transition: all 0.4s ease-out;
  opacity: 0;
}

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

.toast.success {
  border-left-color: #10B981;
}

.toast.error {
  border-left-color: #EF4444;
}

.toast.info {
  border-left-color: #3B82F6;
}

.toast-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.toast-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.toast.success .toast-icon {
  background: #D1FAE5;
  color: #10B981;
}

.toast.error .toast-icon {
  background: #FEE2E2;
  color: #EF4444;
}

.toast.info .toast-icon {
  background: #DBEAFE;
  color: #3B82F6;
}

.toast-title {
  font-weight: 600;
  font-size: 16px;
  color: #111827;
  margin: 0;
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.toast-close:hover {
  background: #F3F4F6;
  color: #6B7280;
}

.toast-message {
  color: #6B7280;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  white-space: pre-line;
}

.toast-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.toast-button {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.toast-button.primary {
  background: #3B82F6;
  color: white;
}

.toast-button.primary:hover {
  background: #2563EB;
}

.toast-button.secondary {
  background: #F3F4F6;
  color: #6B7280;
}

.toast-button.secondary:hover {
  background: #E5E7EB;
  color: #4B5563;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .toast {
    min-width: auto;
    max-width: none;
    margin-bottom: 12px;
  }
}

/* Progress bar for auto-dismiss */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(16, 185, 129, 0.3);
  border-radius: 0 0 12px 12px;
  transition: width linear;
}

.toast.success .toast-progress {
  background: rgba(16, 185, 129, 0.3);
}

.toast.error .toast-progress {
  background: rgba(239, 68, 68, 0.3);
}

.toast.info .toast-progress {
  background: rgba(59, 130, 246, 0.3);
}
