/* === Dialog / Confirm modal === */

.app-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.app-dialog-backdrop.open {
  display: flex;
}

.app-dialog {
  background: #020617;
  color: #e5e7eb;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 20px 22px;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(148, 163, 184, 0.25);
}

.app-dialog-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.app-dialog-message {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #cbd5f5;
}

.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Basic button styles (if you already have btn-primary / btn-secondary, remove these) */
.app-dialog-actions .btn-primary,
.app-dialog-actions .btn-secondary {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
}

.app-dialog-actions .btn-primary {
  background: #4f46e5;
  color: white;
}

.app-dialog-actions .btn-primary:hover {
  background: #4338ca;
}

.app-dialog-actions .btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.app-dialog-actions .btn-secondary:hover {
  background: rgba(30, 41, 59, 0.95);
}

/* === Toasts === */

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
   z-index: 999999; /* always above everything */
}

.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  background: #020617;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.75),
    0 0 0 1px rgba(15, 23, 42, 0.5);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  cursor: pointer;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.7);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.8);
}

.toast-info {
  border-color: rgba(59, 130, 246, 0.8);
}

.app-dialog-input-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #cbd5f5;
}

.app-dialog-input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #0f172a;
  color: #e5e7eb;
  font-size: 14px;
}

.app-dialog-input:focus {
  outline: 2px solid #4f46e5;
  border-color: #4f46e5;
}
