/* ============================================================================
DECLARACIÓN DE PROPIEDAD INTELECTUAL Y DERECHOS DE AUTOR REGISTRADOS
============================================================================

PROPIETARIO ÚNICO, DESARROLLADOR, DISEÑADOR Y PROGRAMADOR EXCLUSIVO:
----------------------------------------------------------------------------
Ing. Roel Arturo Copetillo Portela
COPR810501rm1

HISTORIAL DE REGISTRO DE DESARROLLO (FECHA DE INICIO):
----------------------------------------------------------------------------
- Inicio oficial de diseño y desarrollo: 14 de Mayo de 2026

DECLARACIÓN DE DERECHOS LEGALES:
----------------------------------------------------------------------------
Tanto esta versión de prueba (trial/beta) como cualquier versión posterior,
estable, modificada, compilada, autoejecutable o derivada del código de esta 
aplicación, pertenecen al 100% en exclusiva y de manera vitalicia a su único
dueño y desarrollador Roel Arturo Copetillo Portela. Queda prohibida la copia, 
distribución, alteración o venta no autorizada sin el consentimiento expreso
por escrito del autor.

Todos los Derechos Reservados © 2026.
============================================================================ */

/* ═══════════════════════════════
   Xerberoz CUSTOM MODALS & OVERRIDES
   ═══════════════════════════════ */

/* ── OVERRIDES GLOBALES ── */
/* Aumentar ancho de la barra de progreso (solicitud del usuario) */
.progress-bar-track {
    height: 24px !important; /* Estética mejorada */
    border-radius: 999px !important;
    background: rgba(0, 245, 255, 0.1) !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}
.progress-bar-fill {
    border-radius: 999px !important;
    box-shadow: 0 0 15px var(--cyan) !important;
}
/* Centrar el texto en los botones pill (.btn-primary, etc.) que ya existen */
.custom-modal-buttons .btn-primary, .custom-modal-buttons .btn-ghost, .custom-modal-buttons .btn-ghost-green, .custom-modal-buttons .btn-ghost-aqua, .custom-modal-buttons .btn-ghost-amber, .custom-modal-buttons .btn-danger, .custom-modal-buttons .btn-ghost-red {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 28px !important; /* Ajuste para que se vea más como píldora */
}

/* ── CUSTOM MODAL (ALERTS & CONFIRMS) ── */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 2, 14, 0.85);
    backdrop-filter: blur(12px);
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.custom-modal-overlay.show {
    opacity: 1;
}

.custom-modal-box {
    background: linear-gradient(135deg, rgba(27, 14, 54, 0.95) 0%, rgba(15, 7, 32, 0.95) 100%);
    border-radius: 16px;
    padding: 30px 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(134, 68, 255, 0.3);
    position: relative;
    overflow: hidden;
}
.custom-modal-overlay.show .custom-modal-box {
    transform: translateY(0) scale(1);
}

/* Tipos de Modal y sus resplandores (Glow) */
.custom-modal-box.success {
    border-color: #00ff88;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2), inset 0 0 20px rgba(0, 255, 136, 0.1);
}
.custom-modal-box.warning {
    border-color: #ffaa00;
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.2), inset 0 0 20px rgba(255, 170, 0, 0.1);
}
.custom-modal-box.error {
    border-color: #ff0055;
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.2), inset 0 0 20px rgba(255, 0, 85, 0.1);
}
.custom-modal-box.info {
    border-color: #00f0ff;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(0, 240, 255, 0.1);
}

/* Icono Superior */
.custom-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: popIcon 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.1s;
    opacity: 0;
    transform: scale(0.5);
}
@keyframes popIcon {
    to { opacity: 1; transform: scale(1); }
}

/* Texto del Modal */
.custom-modal-message {
    color: #e6e1fc;
    font-size: 1.1rem;
    font-family: var(--font-main, sans-serif);
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Contenedor de Botones */
.custom-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

/*
 * Estándar binario / alertas (siempre, con !important vs tema Obsidian):
 * · NOK / CANCELAR → .btn-ghost-red
 * · OK  / ACEPTAR  → .btn-ghost-green
 * · Legado .btn-primary dentro de .custom-modal-buttons → mismo verde
 */
.custom-modal-buttons .btn-ghost-red,
.custom-modal-buttons .btn-ghost-green,
.custom-modal-buttons .btn-primary {
    min-width: 130px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 24px !important;
    padding: 10px 24px !important;
    font-family: var(--font-mono, monospace) !important;
    font-size: .82rem !important;
    font-weight: 800 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}

.custom-modal-buttons .btn-ghost-red {
    background: rgba(255, 0, 85, 0.05) !important;
    border: 1px solid rgba(255, 0, 85, 0.4) !important;
    color: #ff8a8a !important;
}
.custom-modal-buttons .btn-ghost-red:hover {
    transform: translateY(-3px) scale(1.03) !important;
    border-color: #ff0055 !important;
    color: #ffffff !important;
    background: rgba(255, 0, 85, 0.18) !important;
    box-shadow: 0 8px 24px rgba(255, 0, 85, 0.3), 0 0 15px rgba(255, 0, 85, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

.custom-modal-buttons .btn-ghost-green,
.custom-modal-buttons .btn-primary {
    background: rgba(0, 255, 136, 0.05) !important;
    border: 1px solid rgba(0, 255, 136, 0.4) !important;
    color: #69f0ae !important;
}
.custom-modal-buttons .btn-ghost-green:hover,
.custom-modal-buttons .btn-primary:hover {
    transform: translateY(-3px) scale(1.03) !important;
    border-color: #00ff88 !important;
    color: #ffffff !important;
    background: rgba(0, 255, 136, 0.18) !important;
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3), 0 0 15px rgba(0, 255, 136, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

/* Estilos de botones dentro del modal para que sean píldoras perfectas */
.custom-modal-buttons button {
    min-width: 130px;
}

/* Inputs de prompt/confirm en páginas sin login.css (EFI) */
.custom-modal-box .xrz-input-field,
#xerberozPromptInput.xrz-input-field {
    width: 100%;
    height: 46px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0 14px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.custom-modal-box .xrz-input-field:focus,
#xerberozPromptInput.xrz-input-field:focus {
    border-color: #00e5ff;
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}
