/* ===== POP ANIMATIONS & TOAST NOTIFICATIONS ===== */

/* --- Pop-in keyframe --- */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideDownFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

/* --- Pop-in class for cards / modals --- */
.pop-in {
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* --- Toast container --- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 40px);
}

/* --- Toast item --- */
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 500;
  pointer-events: auto;
  will-change: transform, opacity;
}

.toast-enter {
  opacity: 0;
  transform: translateY(12px) scale(0.95);
}

.toast-visible {
  animation: slideUpFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast-exit {
  animation: slideDownFadeOut 0.25s ease forwards;
}

/* --- Toast types --- */
.toast-success {
  background: var(--success-light);
  color: #166534;
  border-left: 4px solid var(--success);
}

.toast-error {
  background: var(--danger-light);
  color: #991b1b;
  border-left: 4px solid var(--danger);
}

.toast-warning {
  background: var(--warning-light);
  color: #92400e;
  border-left: 4px solid var(--warning);
}

.toast-info {
  background: #dbeafe;
  color: #1e40af;
  border-left: 4px solid #3b82f6;
}

/* --- Toast inner elements --- */
.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 0 2px;
  flex-shrink: 0;
}

.toast-close:hover {
  opacity: 1;
}

/* --- Verify page extras --- */
.verify-info {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.verify-footer {
  margin-top: 20px;
  text-align: center;
}

.verify-footer p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

/* --- Responsive adjustments --- */
@media (max-width: 480px) {
  .toast-container {
    top: 12px;
    right: 12px;
    width: calc(100% - 24px);
  }
}
