/* ═══════════════════════════════════════════════════════════════
   NOXORA UI — Estilos de modales (SweetAlert2 con diseño profesional)
   Tema oscuro por defecto · overrides para html[data-theme="light"]
   ═══════════════════════════════════════════════════════════════ */

/* ── Backdrop con desenfoque sutil ── */
.nx-backdrop {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: rgba(3, 6, 15, 0.62) !important;
}

/* ── Popup principal ── */
.nx-popup {
    border-radius: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.5),
        0 2px 10px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-family: inherit !important;
    letter-spacing: -0.01em;
}
html[data-theme="light"] .nx-popup {
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow:
        0 26px 70px rgba(15, 23, 42, 0.18),
        0 2px 10px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ── Título ── */
.nx-title {
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.25 !important;
    padding-top: 1.05em !important;
    padding-bottom: 0.15em !important;
}

/* ── Contenido HTML ── */
.nx-html {
    line-height: 1.55 !important;
    font-size: 0.98rem !important;
}

/* ── Icono (éxito/error/warning/info) ── */
.nx-icon { border-radius: 50% !important; }

/* ── Botones: pill suave con gradiente de marca ── */
.nx-btn {
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 0.68em 1.6em !important;
    margin: 0.3em !important;
    letter-spacing: -0.01em !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease !important;
    cursor: pointer !important;
}
.nx-btn:focus { outline: none !important; }

.nx-btn-confirm {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35) !important;
}
.nx-btn-confirm:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.45) !important;
}
.nx-btn-confirm:active { transform: translateY(0); }

.nx-btn-deny {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.3) !important;
}
.nx-btn-deny:hover { transform: translateY(-1px); filter: brightness(1.06); }

.nx-btn-cancel {
    background: transparent !important;
    color: #a7adc2 !important;
    border: 1px solid rgba(150, 156, 180, 0.35) !important;
    box-shadow: none !important;
}
.nx-btn-cancel:hover { background: rgba(150, 156, 180, 0.12) !important; }
html[data-theme="light"] .nx-btn-cancel {
    color: #4a5268 !important;
    border-color: rgba(15, 23, 42, 0.18) !important;
}
html[data-theme="light"] .nx-btn-cancel:hover { background: rgba(15, 23, 42, 0.06) !important; }

.nx-btn-sm { padding: 0.5em 1em !important; font-size: 0.85rem !important; }

/* ── Inputs (prompts de SweetAlert2) ── */
.nx-input {
    border-radius: 12px !important;
    border: 1px solid rgba(150, 156, 180, 0.3) !important;
    background: rgba(150, 156, 180, 0.08) !important;
    color: inherit !important;
    padding: 0.75em 1em !important;
    font-size: 1rem !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.nx-input::placeholder { color: rgba(150, 156, 180, 0.7) !important; }
.nx-input:focus {
    border-color: #7066e0 !important;
    box-shadow: 0 0 0 3px rgba(112, 102, 224, 0.25) !important;
}
html[data-theme="light"] .nx-input { background: #ffffff !important; border-color: rgba(15, 23, 42, 0.18) !important; }

/* ── Mensaje de validación ── */
.nx-validation {
    border-radius: 10px !important;
    font-size: 0.85rem !important;
}

/* ── Botón cerrar (X) ── */
.nx-close {
    border-radius: 50% !important;
    font-size: 1.9em !important;
    margin-top: 0.35em !important;
    margin-right: 0.35em !important;
}
.nx-close:hover { transform: rotate(90deg); transition: transform 0.25s ease; }

/* ── Toasts ── */
.nx-popup-toast {
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="light"] .nx-popup-toast {
    border-color: rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.14) !important;
}
.nx-icon-toast { margin: 0 0.6em 0 0 !important; }

/* ── Spinner de carga ── */
.nx-popup .swal2-loader { border-color: #7066e0 rgba(0,0,0,0) #7066e0 rgba(0,0,0,0) !important; }
