/* ============================================================================
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® — Estilos del Selector Nube de Archivos (Fase 3)
   Modal Glassmorphism con Soporte de Enrutamiento y Multiselección
   ═══════════════════════════════════════════════════════════════════════════ */

/* Overlay del Modal de Nube */
.xrz-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Tarjeta del Selector */
.xrz-picker-card {
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    background: #0f172a;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 229, 255, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pickerModalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pickerModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Cabecera del Modal */
.xrz-picker-header {
    padding: 20px 24px;
    background: rgba(30, 41, 59, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xrz-picker-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.xrz-picker-title {
    color: #f8fafc;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.xrz-picker-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.xrz-picker-close:hover {
    color: #ff3366;
}

/* Buscador y Filtro */
.xrz-picker-toolbar {
    padding: 14px 24px;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
    align-items: center;
}

.xrz-picker-search {
    flex: 1;
    height: 38px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 14px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.xrz-picker-search:focus {
    border-color: #00e5ff;
}

/* Contenido / Lista de Archivos */
.xrz-picker-body {
    flex: 1;
    padding: 16px 24px;
    overflow-y: auto;
    min-height: 240px;
    max-height: 420px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xrz-file-item {
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.xrz-file-item:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.4);
    transform: translateX(4px);
}

.xrz-file-item.selected {
    background: rgba(0, 229, 255, 0.18);
    border-color: #00e5ff;
}

/* Checkbox multi-select (Importar EFI Línea) — tema oscuro */
.xrz-file-checkbox {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 1.5px solid rgba(0, 229, 255, 0.55);
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.95);
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.xrz-file-checkbox:hover {
    border-color: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

.xrz-file-checkbox:checked {
    background: rgba(0, 229, 255, 0.22);
    border-color: #00e5ff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

.xrz-file-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #67e8f9;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.xrz-file-checkbox:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.35);
}

.xrz-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.xrz-file-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.xrz-file-icon.xbrz { background: rgba(0, 229, 255, 0.2); color: #00e5ff; border: 1px solid rgba(0,229,255,0.4); }
.xrz-file-icon.efie { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168,85,247,0.4); }
.xrz-file-icon.efil { background: rgba(255, 107, 53, 0.2); color: #ff8a4c; border: 1px solid rgba(255, 107, 53, 0.45); }

.xrz-file-details {
    display: flex;
    flex-direction: column;
}

.xrz-file-name {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 500;
}

.xrz-file-meta {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}

/* Guardado - Input de Nombre */
.xrz-save-input-group {
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Estilos propios del picker (EFI no carga login.css) */
.xrz-picker-card .xrz-input-label {
    color: #00e5ff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.xrz-picker-card .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;
}

.xrz-picker-card .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);
}

.xrz-picker-card .xrz-input-field::placeholder {
    color: #64748b;
}

/* Pie del Modal con Botones */
.xrz-picker-footer {
    padding: 16px 24px;
    background: rgba(30, 41, 59, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.xrz-picker-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.xrz-picker-footer-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.xrz-btn-cancel {
    background: rgba(255, 51, 51, 0.12);
    border: 1px solid rgba(255, 51, 51, 0.55);
    color: #ff8a8a;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.18);
}

.xrz-btn-cancel:hover {
    background: rgba(255, 51, 51, 0.28);
    border-color: #ff3333;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(255, 51, 51, 0.5);
}

.xrz-btn-rename {
    background: rgba(0, 229, 255, 0.10);
    border: 1px solid rgba(0, 229, 255, 0.50);
    color: #67e8f9;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.xrz-btn-rename:hover {
    background: rgba(0, 229, 255, 0.22);
    border-color: #00e5ff;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.45);
}

/* Mismo estándar que cancel, en verde (modales Azure: Abrir/Crear/Guardar) */
.xrz-btn-action {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.55);
    color: #69f0ae;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.18);
}

.xrz-btn-action:hover {
    background: rgba(0, 230, 118, 0.28);
    border-color: #00e676;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.5);
}
