/* ============================================
   LAYOUT SELECTOR - Dropdown para cambiar layouts
   ============================================ */

.layout-selector {
    position: relative;
    display: inline-block;
    z-index: 10000 !important; /* Por encima de todo */
}

.layout-selector-btn {
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 10001 !important;
}

.layout-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    z-index: 99999 !important; /* Muy por encima de todo */
    overflow: visible;
}

.layout-dropdown.show {
    display: block !important;
}

.layout-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.layout-option:last-child {
    border-bottom: none;
}

.layout-option:hover {
    background: #f9fafb;
}

.layout-option.active {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
}

.layout-icon {
    font-size: 24px;
    line-height: 1;
}

.layout-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.layout-info strong {
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
}

.layout-info small {
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
}

/* Badge de atajo de teclado */
.layout-kbd {
    position: absolute;
    right: 16px;
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.layout-option:hover .layout-kbd {
    background: #e2e8f0;
    color: #475569;
}

.layout-option.active .layout-kbd {
    background: #dbeafe;
    color: #3b82f6;
    border-color: #bfdbfe;
}

/* Animación de entrada */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.layout-dropdown.show {
    animation: dropdownFadeIn 0.2s ease-out;
}
