/* Archivo: local/smartmenu_enrollment/styles.css */

/* Estilos para elementos de menú deshabilitados - específicamente para Smart Menus */
.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.disabled-menu-item,
.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.locked-menu-item {
    position: relative;
    cursor: not-allowed !important;
    pointer-events: auto; /* Permitir eventos para mostrar tooltips */
}

/* Estilos específicos para cada categoría - LEVEL 1 */
.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.categoria-2.disabled-menu-item,
.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.categoria-2.locked-menu-item {
    background-image: url('/images/menu/LEVEL-1-OFF.png') !important;
    color: #7f8c8d !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(149,165,166,0.2) !important;
}

/* Estilos específicos para cada categoría - LEVEL 2 */
.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.categoria-3.disabled-menu-item,
.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.categoria-3.locked-menu-item {
    background-image: url('/images/menu/LEVEL-2-OFF.png') !important;
    color: #7f8c8d !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 8px rgba(149,165,166,0.2) !important;
}

/* Efecto de hover para elementos deshabilitados */
.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.disabled-menu-item:hover,
.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.locked-menu-item:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(149,165,166,0.3) !important;
}

/* Overlay para indicar estado deshabilitado */
.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.disabled-menu-item::before,
.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.locked-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: grayscale(50%);
    z-index: 1;
    pointer-events: none;
}

/* Icono de candado para elementos bloqueados (opcional) */
.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.locked-menu-item::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 14px;
    opacity: 0.7;
}

/* Estados de carga */
.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.enrollment-loading {
    opacity: 0.6;
    position: relative;
}

.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.enrollment-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

/* Animación de carga */
@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Tooltip personalizado para elementos deshabilitados */
.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.disabled-menu-item[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 8px;
    background: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

/* Flecha del tooltip */
.theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.disabled-menu-item[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
    z-index: 999;
}

/* Responsividad */
@media (max-width: 768px) {
    .theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.locked-menu-item::after {
        right: 5px;
        font-size: 12px;
    }
    
    .theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.enrollment-loading::after {
        right: 5px;
        width: 14px;
        height: 14px;
    }
}

/* Variante para tema oscuro */
@media (prefers-color-scheme: dark) {
    .theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.disabled-menu-item,
    .theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.locked-menu-item {
        color: #95a5a6 !important;
    }
    
    .theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.disabled-menu-item::before,
    .theme-boost-union-smartmenu .dropdown-item.boost-union-smartmenuitem.locked-menu-item::before {
        background: rgba(0, 0, 0, 0.2);
    }
}