/* ============================================
   TOAST / SNACKBAR SYSTEM
   ============================================ */

/* Base toast container */
#undoSnackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 48px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  background: var(--surface-glass);
  border: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

#undoSnackbar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Toast type variants */
.toast-info {
  border-left: 3px solid var(--accent);
}

.toast-success {
  border-left: 3px solid #10B981;
}

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

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

/* Undo button inside toast */
.toast-undo-btn {
  margin-left: 8px;
  padding: 6px 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s ease;
}

.toast-undo-btn:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.toast-undo-btn:active {
  transform: scale(0.98);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  #undoSnackbar {
    bottom: 16px;
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(100px);
    border-radius: 40px;
    padding: 10px 16px;
    font-size: 13px;
    max-width: calc(100% - 32px);
  }
  
  #undoSnackbar.visible {
    transform: translateX(0) translateY(0);
  }
}

