/* ========================
   NOWDII TOAST — Notificaciones
   ======================== */

/* Contenedor */
#nowdii-toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: 92%;
  max-width: 400px;
}

/* Toast individual */
.ntoast {
  pointer-events: auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 14px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.ntoast.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.ntoast.out {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
}

/* Icono */
.ntoast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tipos */
.ntoast-success .ntoast-icon {
  background: rgba(46,204,113,0.15);
  color: #2ecc71;
}
.ntoast-success { border-color: rgba(46,204,113,0.2); }

.ntoast-error .ntoast-icon {
  background: rgba(231,76,60,0.15);
  color: #e74c3c;
}
.ntoast-error { border-color: rgba(231,76,60,0.2); }

.ntoast-warning .ntoast-icon {
  background: rgba(243,156,18,0.15);
  color: #f39c12;
}
.ntoast-warning { border-color: rgba(243,156,18,0.2); }

.ntoast-info .ntoast-icon {
  background: rgba(255,230,0,0.12);
  color: #FFE600;
}
.ntoast-info { border-color: rgba(255,230,0,0.15); }

/* Mensaje */
.ntoast-msg {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: white;
  line-height: 1.4;
}

/* Botón cerrar */
.ntoast-close {
  background: none;
  border: none;
  color: #555;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.ntoast-close:hover { color: #999; }

/* Barra de progreso */
.ntoast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.05);
}
.ntoast-progress-bar {
  height: 100%;
  width: 100%;
  border-radius: 0 0 14px 14px;
}
.ntoast-success .ntoast-progress-bar { background: #2ecc71; }
.ntoast-error .ntoast-progress-bar { background: #e74c3c; }
.ntoast-warning .ntoast-progress-bar { background: #f39c12; }
.ntoast-info .ntoast-progress-bar { background: #FFE600; }

/* ========================
   CONFIRM MODAL
   ======================== */

.nconfirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.nconfirm-overlay.active {
  background: rgba(0,0,0,0.7);
}

.nconfirm-box {
  background: #181818;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 28px 24px 22px;
  max-width: 340px;
  width: 88%;
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.nconfirm-overlay.active .nconfirm-box {
  transform: scale(1);
  opacity: 1;
}

.nconfirm-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.nconfirm-danger { color: #e74c3c; }
.nconfirm-warning { color: #f39c12; }
.nconfirm-info { color: #FFE600; }

.nconfirm-msg {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 20px;
}

.nconfirm-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.nconfirm-cancel,
.nconfirm-ok {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.nconfirm-cancel {
  background: #2a2a2a;
  color: white;
}
.nconfirm-ok {
  background: #e74c3c;
  color: white;
}
.nconfirm-cancel:hover,
.nconfirm-ok:hover {
  opacity: 0.85;
}
