/**
 * Toast Notification Styles
 * Extracted from base.html for better organization
 *
 * Usage: Flash messages and dynamic notifications
 * Classes: .toast-container, .toast, .toast--{success|danger|warning|info}
 */

/* Toast Container - Fixed positioning for visibility */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  width: 100%;
  pointer-events: none;
}

/* Individual Toast Styling */
.toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  margin-bottom: 12px;
  overflow: hidden;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: auto;
  border-left: 4px solid #e5e7eb;
  max-width: 100%;
  position: relative;
}

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

/* Toast Content */
.toast__content {
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.toast__message {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  font-weight: 500;
  flex: 1;
  word-wrap: break-word;
}

.toast__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #6b7280;
}

/* Success Toast */
.toast--success {
  border-left-color: #10b981;
}

.toast--success .toast__icon {
  color: #10b981;
}

/* Error/Danger Toast */
.toast--danger,
.toast--error {
  border-left-color: #ef4444;
}

.toast--danger .toast__icon,
.toast--error .toast__icon {
  color: #ef4444;
}

/* Warning Toast */
.toast--warning {
  border-left-color: #f59e0b;
}

.toast--warning .toast__icon {
  color: #f59e0b;
}

/* Info Toast */
.toast--info {
  border-left-color: #3b82f6;
}

.toast--info .toast__icon {
  color: #3b82f6;
}

/* Progress Bar */
.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  width: 100%;
  transition: width linear;
}

.toast--success .toast__progress {
  background: #10b981;
}

.toast--danger .toast__progress,
.toast--error .toast__progress {
  background: #ef4444;
}

.toast--warning .toast__progress {
  background: #f59e0b;
}

.toast--info .toast__progress {
  background: #3b82f6;
}

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

  .toast__content {
    padding: 14px 16px;
  }

  .toast__message {
    font-size: 13px;
  }
}
