@charset "UTF-8";

/* ==========================================================================
   PANEL PRINCIPAL CONFIGURADO (Tema: Fragmentos y Vasijas - Tamaño Unificado)
   ========================================================================== */
.glass-panel-local.shards-vessels-theme {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%; /* Ahora ocupa el 100% exacto, igual que las máscaras */
    
    /* Fondo translúcido sutil basado en F5F5F0 y degradado oscuro */
    background: linear-gradient(135deg, rgba(245, 245, 240, 0.08) 0%, rgba(15, 15, 15, 0.82) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    /* Outline de contraste fino con el color solicitado */
    border: 2px solid rgba(245, 245, 240, 0.35);  
    border-radius: 12px; 
    box-shadow: 0 0 25px rgba(245, 245, 240, 0.12), 
                inset 0 0 15px rgba(245, 245, 240, 0.05);
    
    padding: 20px;
    box-sizing: border-box;
    z-index: 50; 
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Evita desbordamientos */
}
.shards-theme{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ahora ocupa el 100% exacto, igual que las máscaras */
    
    /* Fondo translúcido sutil basado en F5F5F0 y degradado oscuro */
    background: linear-gradient(135deg, rgba(245, 245, 240, 0.08) 0%, rgba(15, 15, 15, 0.82) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    /* Outline de contraste fino con el color solicitado */
    border: 2px solid rgba(245, 245, 240, 0.35);  
    border-radius: 12px; 
    box-shadow: 0 0 25px rgba(245, 245, 240, 0.12), 
                inset 0 0 15px rgba(245, 245, 240, 0.05);
    
    padding: 20px;
    box-sizing: border-box;
    z-index: 50; 
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Evita desbordamientos */


}


.glass-panel-local.hidden {
    display: none !important;
}

/* ==========================================================================
   ANIMACIONES DE APERTURA Y CIERRE (Estilo Vertical)
   ========================================================================== */
.animate-scale-in {
    animation: scale-in-ver-top 0.35s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
.animate-scale-out {
    animation: scale-out-ver-top 0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@keyframes scale-in-ver-top {
    0% { transform: scaleY(0); opacity: 0; }
    100% { transform: scaleY(1); opacity: 1; }
}

@keyframes scale-out-ver-top {
    0% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0); opacity: 0; }
}

/* ==========================================================================
   ENCABEZADO Y COMPONENTES
   ========================================================================== */
.glass-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.shards-vessels-theme .panel-title {
    font-family: 'Cinzel', serif;
    color: #F5F5F0;
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(245, 245, 240, 0.35);
}
.shards-theme .panel-title{
    font-family: 'Cinzel', serif;
    color: #F5F5F0;
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(245, 245, 240, 0.35);
}
.shards-theme .panel-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(245, 245, 240, 0.5), transparent);
    margin: 10px 0;
}

.shards-vessels-theme .panel-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(245, 245, 240, 0.5), transparent);
    margin: 10px 0;
}

/* ─── BOTÓN DE MINIMIZAR ESTILIZADO ─── */
#minimize-panel-btn,
#minimize-dream-btn,
#minimize-mask-btn,
#minimize-vessel-btn {
    background: rgba(245, 245, 240, 0.05);
    border: 1px solid rgba(245, 245, 240, 0.25);
    border-radius: 4px;
    color: rgba(245, 245, 240, 0.7);
    font-size: 12px;
    padding: 2px 12px;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.2s ease;
}

#minimize-panel-btn:hover,
#minimize-dream-btn:hover,
#minimize-mask-btn:hover,
#minimize-vessel-btn:hover {
    background: rgba(245, 245, 240, 0.2);
    color: #FFFFFF;
    box-shadow: 0 0 8px rgba(245, 245, 240, 0.4);
    transform: scale(1.05);
}

/* ==========================================================================
   SECCIÓN CHECKLIST CON SCROLLBAR LIMPIO
   ========================================================================== */
.checklist-container,
.panel-inner-list.checklist-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
    padding-right: 5px;
}

/* Barra de scroll invisible pero funcional */
.checklist-container::-webkit-scrollbar,
.panel-inner-list.checklist-container::-webkit-scrollbar {
    width: 4px;
}
.checklist-container::-webkit-scrollbar-thumb,
.panel-inner-list.checklist-container::-webkit-scrollbar-thumb {
    background: rgba(245, 245, 240, 0.2);
    border-radius: 4px;
}

.checklist-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* importante */
    padding: 5px 2px;
    cursor: pointer;
    border-bottom: 1px solid rgba(245, 245, 240, 0.04);
    user-select: none;
    gap: 10px;
}

/* El texto base del checklist */
.task-text {
    color: rgba(245, 245, 240, 0.85);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    position: relative;
    transition: color 0.3s ease;

    flex: 1;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    padding-right: 10px;
}

/* Línea del tachado animado */
.task-text::after {
    content: "";
    position: absolute;
    left: 0;
    top: 55%;
    width: 0%;
    height: 1.5px;
    background-color: rgba(245, 245, 240, 0.4); 
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Checkbox personalizado */
.task-checkbox,
.mask-shard-task,
.vessel-fragment-task {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(245, 245, 240, 0.4);
    border-radius: 3px;
    background: rgba(15, 15, 15, 0.6);
    cursor: pointer;
    position: relative; 
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.task-checkbox:hover,
.mask-shard-task:hover,
.vessel-fragment-task:hover {
    border-color: rgba(245, 245, 240, 0.8);
    box-shadow: 0 0 5px rgba(245, 245, 240, 0.2);
}

.task-checkbox:checked,
.mask-shard-task:checked,
.vessel-fragment-task:checked {
    background: rgba(30, 10, 10, 0.8); 
    border-color: rgba(245, 245, 240, 0.8);
    box-shadow: 0 0 8px rgba(245, 245, 240, 0.3);
}

/* Pseudo-elemento: La X gigante */
.task-checkbox:checked::before,
.mask-shard-task:checked::before,
.vessel-fragment-task:checked::before {
    content: "✕";
    position: absolute;
    color: #ff4a4a; 
    font-size: 22px; 
    font-weight: 900;
    top: 50%;
    left: 50%;
    text-shadow: 0 0 6px rgba(255, 74, 74, 0.8), 0 0 2px #000;
    animation: pop-x 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Cambios de estado al marcar el Checkbox */
.task-checkbox:checked ~ .task-text,
.mask-shard-task:checked ~ .task-text,
.vessel-fragment-task:checked ~ .task-text {
    color: rgba(245, 245, 240, 0.35); 
}

.task-checkbox:checked ~ .task-text::after,
.mask-shard-task:checked ~ .task-text::after,
.vessel-fragment-task:checked ~ .task-text::after {
    width: 100%; 
}

@keyframes pop-x {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* ==========================================================================
   REPARACIÓN EXCLUSIVA PARA EL PANEL DE VASIJAS (ELIMINADO RECORTE FORZADO)
   ========================================================================== */
#vessel-panel {
    overflow: hidden; 
}

/* ==========================================================================
   AJUSTE DE POSICIÓN — POPUP CONFIRMACIÓN SHADE LORD
   ========================================================================== */
.glass-panel-local:has(#yes-btn),
.glass-panel-local:has(.interactive-item),
#shade-lord-popup,
#popup-confirmacion {
    transform: none !important;
    margin-top: -30px !important;
    padding-top: 28px !important; 
    transition: margin-top 0.2s ease, opacity 0.2s ease;
}

.glass-panel-local:has(#yes-btn) .icono-giro,
.glass-panel-local:has(#yes-btn) svg {
    margin-top: 5px !important;
    transform: none !important;
}
