/**
 * NotIA — Diálogos modales (confirmación, aviso, prompt).
 * Sustituye alert(), confirm() y prompt() nativos del navegador.
 */

.notia-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: notia-dialog-fade-in 0.2s ease;
}

.notia-dialog-overlay[hidden] {
  display: none !important;
}

.notia-dialog-card {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
  animation: notia-dialog-slide-in 0.25s ease;
}

.notia-dialog-card__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.notia-dialog-card__icon--default {
  background: rgba(2, 136, 209, 0.12);
  color: #0288d1;
}

.notia-dialog-card__icon--danger {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.notia-dialog-card__icon--warning {
  background: rgba(255, 193, 7, 0.2);
  color: #b8860b;
}

.notia-dialog-card__icon--success {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
}

.notia-dialog-card__icon--info {
  background: rgba(2, 136, 209, 0.12);
  color: #0288d1;
}

/* Evita scroll del fondo mientras el diálogo está abierto */
body.notia-dialog-open {
  overflow: hidden;
}

.notia-dialog-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #1a237e;
}

.notia-dialog-card__message {
  font-size: 0.95rem;
  color: #495057;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.notia-dialog-card__input {
  text-align: left;
  margin-bottom: 1rem;
}

.notia-dialog-card__input label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #37474f;
}

.notia-dialog-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.notia-dialog-card__actions .btn {
  min-width: 7rem;
}

@keyframes notia-dialog-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes notia-dialog-slide-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
