/**
 * public/css/widgetsbellivan-public.css
 * Styles for widgetsBellivan Nike-Style Offcanvas Mobile Menu
 */

/* Deshabilitar scroll en el cuerpo cuando el menú está abierto */
body.widgetsbellivan-no-scroll {
    overflow: hidden !important;
}

/* Ocultar barra de desplazamiento */
.widgetsbellivan-hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.widgetsbellivan-hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Contenedor del Botón Toggle del Widget */
.widgetsbellivan-toggle-container {
    display: inline-block;
}

.widgetsbellivan-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.widgetsbellivan-menu-toggle:focus {
    outline: none;
}

.widgetsbellivan-menu-toggle svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor;
    display: block;
}

.widgetsbellivan-menu-toggle i {
    font-size: 24px !important;
    display: inline-block;
    line-height: 1;
}

/* Backdrop Oscuro (Fondo overlay) */
.widgetsbellivan-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--widgetsbellivan-backdrop-bg, rgba(0, 0, 0, 0.6));
    z-index: 999990;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    pointer-events: none;
}

.widgetsbellivan-menu-backdrop.widgetsbellivan-active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Contenedor Offcanvas Principal */
.widgetsbellivan-offcanvas-menu {
    position: fixed;
    top: 0;
    height: 100%;
    width: 100%;
    max-width: var(--widgetsbellivan-panel-width, 380px);
    background: var(--widgetsbellivan-bg, #111111);
    color: var(--widgetsbellivan-text-color, #ffffff);
    z-index: 999999;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    font-family: var(--widgetsbellivan-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

/* Posición Izquierda/Derecha */
.widgetsbellivan-offcanvas-menu.position-right {
    right: 0;
    transform: translateX(100%);
}

.widgetsbellivan-offcanvas-menu.position-left {
    left: 0;
    transform: translateX(-100%);
}

.widgetsbellivan-offcanvas-menu.widgetsbellivan-active {
    transform: translateX(0) !important;
}

/* Wrapper principal para mantener todos los paneles */
.widgetsbellivan-nav-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Paneles del Menú (Efecto Drill-down Slide) */
.widgetsbellivan-nav-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--widgetsbellivan-bg, #111111);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Clases de Posicionamiento para Animaciones */
.widgetsbellivan-nav-panel.translate-x-0 {
    transform: translateX(0);
}

.widgetsbellivan-nav-panel.translate-x-full {
    transform: translateX(100%);
}

.widgetsbellivan-nav-panel.-translate-x-full {
    transform: translateX(-100%);
}

/* Encabezados de Paneles (Back/Close Buttons) */
.widgetsbellivan-panel-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--widgetsbellivan-divider-color, rgba(255, 255, 255, 0.08));
    flex-shrink: 0;
}

.widgetsbellivan-panel-header.justify-end {
    justify-content: flex-end;
}

.widgetsbellivan-panel-header.justify-between {
    justify-content: space-between;
}

/* Botones de Control (Back/Close) */
.widgetsbellivan-btn-back {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--widgetsbellivan-text-color, #ffffff);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px 6px 0;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.widgetsbellivan-btn-back svg {
    width: 16px !important;
    height: 16px !important;
    margin-right: 6px;
    transition: transform 0.25s ease;
    display: inline-block;
}

.widgetsbellivan-btn-back:hover svg {
    transform: translateX(-3px);
}

.widgetsbellivan-btn-close-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--widgetsbellivan-text-color, #ffffff);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.widgetsbellivan-btn-close-menu svg,
.widgetsbellivan-btn-close-menu i {
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
    display: block;
    line-height: 1;
}

.widgetsbellivan-btn-close-menu:hover {
    background-color: var(--widgetsbellivan-divider-color, rgba(255, 255, 255, 0.08));
    transform: rotate(90deg);
}

/* Cuerpo de los Paneles (Scrollable) */
.widgetsbellivan-panel-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

.widgetsbellivan-panel-title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
    margin-top: 10px;
    color: var(--widgetsbellivan-title-color, var(--widgetsbellivan-text-color, #ffffff));
}

/* Listas de Menú */
.widgetsbellivan-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widgetsbellivan-menu-list li {
    margin-bottom: 8px;
    border-bottom: 1px solid var(--widgetsbellivan-item-divider-color, transparent);
    padding-bottom: var(--widgetsbellivan-item-padding-bottom, 0px);
}

.widgetsbellivan-menu-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* Enlaces y Botones de Menú */
.widgetsbellivan-menu-item-link,
.widgetsbellivan-menu-item-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    background-color: var(--widgetsbellivan-menu-item-bg, transparent);
    border: none;
    padding: var(--widgetsbellivan-menu-item-padding, 10px 14px);
    margin: 0;
    color: var(--widgetsbellivan-menu-color, var(--widgetsbellivan-text-color, #ffffff));
    font-size: var(--widgetsbellivan-menu-font-size, 24px);
    font-weight: var(--widgetsbellivan-menu-font-weight, 500);
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    transition: color 0.25s ease, background-color 0.25s ease, padding-left 0.25s ease, border-radius 0.25s ease;
    border-radius: var(--widgetsbellivan-menu-item-border-radius, 6px);
}

.widgetsbellivan-submenu-list .widgetsbellivan-menu-item-link,
.widgetsbellivan-submenu-list .widgetsbellivan-menu-item-trigger {
    font-size: var(--widgetsbellivan-submenu-font-size, 18px);
    font-weight: var(--widgetsbellivan-submenu-font-weight, 500);
}

.widgetsbellivan-menu-item-link:hover,
.widgetsbellivan-menu-item-trigger:hover {
    color: var(--widgetsbellivan-accent-color, #707072);
    background-color: var(--widgetsbellivan-menu-item-bg-hover, rgba(255, 255, 255, 0.05));
}

/* Estado Activo */
.widgetsbellivan-menu-item-link.widgetsbellivan-menu-item-active,
.widgetsbellivan-menu-item-trigger.widgetsbellivan-menu-item-active {
    color: var(--widgetsbellivan-menu-item-active-color, #ffffff) !important;
    background-color: var(--widgetsbellivan-menu-item-bg-active, rgba(255, 255, 255, 0.1)) !important;
}

/* Flecha de Navegación */
.widgetsbellivan-menu-item-trigger svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    color: var(--widgetsbellivan-arrow-color, rgba(255, 255, 255, 0.4));
    transition: color 0.25s ease, transform 0.25s ease;
}

/* Alineación de Iconos e Indicadores */
.widgetsbellivan-menu-item-trigger.icon-pos-left {
    flex-direction: row-reverse !important;
    justify-content: space-between !important;
}
.widgetsbellivan-menu-item-trigger.icon-pos-left svg {
    margin-left: 0 !important;
    margin-right: 15px !important;
    transform: rotate(180deg);
}
.widgetsbellivan-menu-item-trigger.icon-pos-left:hover svg {
    transform: translateX(-3px) rotate(180deg);
}

.widgetsbellivan-menu-item-trigger.icon-pos-center {
    justify-content: center !important;
    gap: 10px;
}
.widgetsbellivan-menu-item-trigger.icon-pos-center svg {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.widgetsbellivan-menu-item-trigger.icon-pos-center:hover svg {
    transform: translateX(3px);
}

.widgetsbellivan-menu-item-trigger.icon-pos-right {
    flex-direction: row !important;
    justify-content: space-between !important;
}
.widgetsbellivan-menu-item-trigger.icon-pos-right svg {
    margin-left: 15px !important;
    margin-right: 0 !important;
}
.widgetsbellivan-menu-item-trigger.icon-pos-right:hover svg {
    transform: translateX(3px);
}

/* Alineación automática de texto según la posición del icono */
.widgetsbellivan-offcanvas-menu.icon-pos-center-menu .widgetsbellivan-menu-item-link {
    justify-content: center !important;
    text-align: center !important;
}
.widgetsbellivan-offcanvas-menu.icon-pos-left-menu .widgetsbellivan-menu-item-link {
    justify-content: flex-start !important;
    text-align: left !important;
}
.widgetsbellivan-offcanvas-menu.icon-pos-right-menu .widgetsbellivan-menu-item-link {
    justify-content: flex-start !important;
    text-align: left !important;
}

/* Sección de Footer de Redes Sociales */
.widgetsbellivan-panel-footer {
    padding: 24px;
    margin-top: auto;
    border-top: 1px solid var(--widgetsbellivan-divider-color, rgba(255, 255, 255, 0.08));
    flex-shrink: 0;
}

.widgetsbellivan-social-links {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.widgetsbellivan-social-item {
    color: var(--widgetsbellivan-social-color, #707072);
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.widgetsbellivan-social-item svg {
    width: var(--widgetsbellivan-social-icon-size, 20px) !important;
    height: var(--widgetsbellivan-social-icon-size, 20px) !important;
    fill: currentColor;
}

.widgetsbellivan-social-item i {
    font-size: var(--widgetsbellivan-social-icon-size, 20px) !important;
    display: inline-block;
    line-height: 1;
}

.widgetsbellivan-social-item:hover {
    color: var(--widgetsbellivan-social-hover-color, #ffffff);
    transform: scale(1.1);
}

/* Glassmorphism theme style */
.widgetsbellivan-offcanvas-menu.theme-glassmorphism {
    background: var(--widgetsbellivan-bg, rgba(17, 17, 17, 0.85)) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.widgetsbellivan-offcanvas-menu.theme-glassmorphism.position-left {
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.widgetsbellivan-offcanvas-menu.theme-glassmorphism .widgetsbellivan-nav-panel {
    background: transparent !important;
}

/* Logo de Cabecera (Opcional) */
.widgetsbellivan-header-logo {
    display: flex;
    align-items: center;
    max-height: 40px;
    max-width: 150px;
}

.widgetsbellivan-header-logo img {
    height: auto;
    max-height: 40px;
    width: auto;
}

.widgetsbellivan-header-logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--widgetsbellivan-text-color, #ffffff);
}

/* ==========================================================================
   WIDGET: NAVEGADOR DE PÁGINAS BELLIVAN (widgetsbellivan_page_navigator)
   ========================================================================== */

/* Contenedor General */
.widgetsbellivan-page-nav-wrapper {
    width: 100%;
    display: flex;
    box-sizing: border-box;
}

/* Diseños */
.widgetsbellivan-page-nav-wrapper.layout-list {
    display: flex;
    flex-direction: column;
}

.widgetsbellivan-page-nav-wrapper.layout-grid {
    display: grid;
}

.widgetsbellivan-page-nav-wrapper.layout-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px; /* Pequeño respiro para el scrollbar */
}

/* Ocultar scrollbar pero permitir scroll en el diseño de Fila */
.widgetsbellivan-page-nav-wrapper.layout-row::-webkit-scrollbar {
    height: 4px;
}
.widgetsbellivan-page-nav-wrapper.layout-row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.widgetsbellivan-page-nav-wrapper.layout-row::-webkit-scrollbar-track {
    background: transparent;
}

/* Columnas de la Cuadrícula (Responsivo) */
.widgetsbellivan-page-nav-wrapper.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.widgetsbellivan-page-nav-wrapper.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.widgetsbellivan-page-nav-wrapper.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.widgetsbellivan-page-nav-wrapper.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.widgetsbellivan-page-nav-wrapper.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.widgetsbellivan-page-nav-wrapper.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .widgetsbellivan-page-nav-wrapper.grid-cols-tablet-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .widgetsbellivan-page-nav-wrapper.grid-cols-tablet-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .widgetsbellivan-page-nav-wrapper.grid-cols-tablet-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .widgetsbellivan-page-nav-wrapper.grid-cols-tablet-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .widgetsbellivan-page-nav-wrapper.grid-cols-tablet-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .widgetsbellivan-page-nav-wrapper.grid-cols-tablet-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .widgetsbellivan-page-nav-wrapper.grid-cols-mobile-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .widgetsbellivan-page-nav-wrapper.grid-cols-mobile-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .widgetsbellivan-page-nav-wrapper.grid-cols-mobile-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .widgetsbellivan-page-nav-wrapper.grid-cols-mobile-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .widgetsbellivan-page-nav-wrapper.grid-cols-mobile-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .widgetsbellivan-page-nav-wrapper.grid-cols-mobile-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Tarjetas / Elementos */
.widgetsbellivan-page-nav-item {
    display: flex;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    outline: none !important;
    padding: 20px 24px;
    border-radius: 12px;
    background-color: #1e1e24;
    gap: 16px;
}

.widgetsbellivan-page-nav-item.layout-list {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.widgetsbellivan-page-nav-item.layout-grid {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.widgetsbellivan-page-nav-item.layout-row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    scroll-snap-align: start;
    white-space: nowrap;
}

/* Contenedor de Texto */
.widgetsbellivan-page-nav-text-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.widgetsbellivan-page-nav-item.layout-grid .widgetsbellivan-page-nav-text-container {
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

/* Título y Subtítulo */
.widgetsbellivan-page-nav-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.3s ease;
    color: #ffffff;
}

.widgetsbellivan-page-nav-subtitle {
    font-size: 13px;
    font-weight: 400;
    margin-top: 4px;
    line-height: 1.3;
    transition: color 0.3s ease;
    color: #707072;
}

/* Icono */
.widgetsbellivan-page-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 24px;
}
.widgetsbellivan-page-nav-icon svg {
    fill: currentColor;
    display: block;
    transition: fill 0.3s ease;
    width: 24px;
    height: 24px;
}
.widgetsbellivan-page-nav-icon i {
    display: inline-block;
    line-height: 1;
}

/* Flecha de Navegación (Solo para diseño de Lista) */
.widgetsbellivan-page-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    margin-left: auto;
    transition: color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}
.widgetsbellivan-page-nav-arrow svg {
    width: 16px !important;
    height: 16px !important;
    display: block;
}
.widgetsbellivan-page-nav-item:hover .widgetsbellivan-page-nav-arrow {
    color: #ffffff;
    transform: translateX(3px);
}

/* Animaciones de Hover */
.widgetsbellivan-page-nav-item.anim-lift:hover {
    transform: translateY(-5px);
}
.widgetsbellivan-page-nav-item.anim-scale:hover {
    transform: scale(1.04);
}
.widgetsbellivan-page-nav-item.anim-glow:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15) !important;
}

/* Barra de Navegación Horizontal (Estilo App Móvil) */
.widgetsbellivan-page-nav-wrapper.widgetsbellivan-bottom-bar {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    display: grid !important; /* Force grid layout to align elements equally */
    background-color: var(--widgetsbellivan-bottom-bar-bg, #111111);
    border-top: 1px solid var(--widgetsbellivan-bottom-bar-border-color, rgba(255, 255, 255, 0.08));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding-bottom: 10px;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box !important;
}

/* Fixed positioning if sticky bottom is enabled */
.widgetsbellivan-page-nav-wrapper.widgetsbellivan-bottom-bar.is-sticky {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 999999 !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

/* Constrain width on desktop viewports to simulate a centered mobile screen app bar */
@media (min-width: 768px) {
    .widgetsbellivan-page-nav-wrapper.widgetsbellivan-bottom-bar {
        max-width: 480px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        border-left: 1px solid var(--widgetsbellivan-bottom-bar-border-color, rgba(255, 255, 255, 0.08)) !important;
        border-right: 1px solid var(--widgetsbellivan-bottom-bar-border-color, rgba(255, 255, 255, 0.08)) !important;
        border-radius: 16px 16px 0 0 !important;
    }
    .widgetsbellivan-page-nav-wrapper.widgetsbellivan-bottom-bar.is-sticky {
        width: 100% !important;
        max-width: 480px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

:where(.widgetsbellivan-bottom-bar) .widgetsbellivan-page-nav-item {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 2px;
    margin: 0 !important;
    text-align: center !important;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

:where(.widgetsbellivan-bottom-bar) .widgetsbellivan-page-nav-icon {
    font-size: 20px;
    margin: 0 0 4px 0 !important;
    padding: 0;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

:where(.widgetsbellivan-bottom-bar) .widgetsbellivan-page-nav-title {
    font-size: 11px;
    font-weight: 500;
    margin: 0 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

:where(.widgetsbellivan-bottom-bar) .widgetsbellivan-page-nav-subtitle {
    display: none !important; /* No subtitles in bottom bar */
}

/* ==========================================
   THEME STYLES FOR BOTTOM APP BAR
   ========================================== */

/* --- 1. CLASSIC / MINIMALISTA --- */
:where(.widgetsbellivan-bottom-bar.style-classic) .widgetsbellivan-page-nav-item {
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

:where(.widgetsbellivan-bottom-bar.style-classic) .widgetsbellivan-page-nav-item::after {
    content: '';
    position: absolute;
    bottom: -0.1em;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 1.2em;
    height: 0.2em;
    background-color: currentColor;
    border-radius: 0.1em;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

:where(.widgetsbellivan-bottom-bar.style-classic) .widgetsbellivan-page-nav-item.widgetsbellivan-page-nav-item-active::after {
    transform: translateX(-50%) scaleX(1);
}

:where(.widgetsbellivan-bottom-bar.style-classic) .widgetsbellivan-page-nav-item:hover {
    opacity: 1;
    transform: translateY(-0.15em);
}

/* --- 2. BUBBLE / BURBUJA FLOTANTE (CodePen Inspired & Responsive) --- */
.widgetsbellivan-bottom-bar.style-bubble {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    overflow: hidden !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    height: 70px !important;
    box-sizing: border-box !important;
}

.widgetsbellivan-bottom-bar.is-sticky.style-bubble {
    height: calc(70px + env(safe-area-inset-bottom)) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
}

:where(.widgetsbellivan-bottom-bar.style-bubble) .widgetsbellivan-page-nav-item {
    all: unset;
    flex-grow: 1;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    position: relative !important;
    overflow: visible !important;
    height: 100% !important;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 0;
    /* Easing curve and timing from CodePen */
    transition: flex-grow 0.45s cubic-bezier(0.4, 0, 0.2, 1), color 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.widgetsbellivan-bottom-bar.style-bubble .widgetsbellivan-page-nav-item.widgetsbellivan-page-nav-item-active {
    flex-grow: 2 !important;
}

/* Icon Styles - Centered by flexbox by default */
:where(.widgetsbellivan-bottom-bar.style-bubble) .widgetsbellivan-page-nav-icon {
    font-size: 20px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    z-index: 2 !important;
    position: relative !important;
    overflow: visible !important;
}

/* Active State Icon Shift (moves left from center) */
:where(.widgetsbellivan-bottom-bar.style-bubble) .widgetsbellivan-page-nav-item.widgetsbellivan-page-nav-item-active .widgetsbellivan-page-nav-icon {
    transform: translate3d(-0.9em, 0, 0) !important;
}



/* Bubble background circle inside icon wrapper - dynamically scales using em */
:where(.widgetsbellivan-bottom-bar.style-bubble) .widgetsbellivan-page-nav-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--widgetsbellivan-bubble-circle-size, 2.1em);
    height: var(--widgetsbellivan-bubble-circle-size, 2.1em);
    border-radius: 50%;
    background-color: color-mix(in srgb, currentColor 15%, transparent);
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
    z-index: -1;
}

.widgetsbellivan-bottom-bar.style-bubble .widgetsbellivan-page-nav-item.widgetsbellivan-page-nav-item-active .widgetsbellivan-page-nav-icon::before {
    transform: translate3d(-50%, -50%, 0) scale(1);
    opacity: 1;
}

:where(.widgetsbellivan-bottom-bar.style-bubble) .widgetsbellivan-page-nav-icon svg {
    width: 18px;
    height: 18px;
    margin: 0;
}

:where(.widgetsbellivan-bottom-bar.style-bubble) .widgetsbellivan-page-nav-icon i {
    font-size: 18px;
    margin: 0 !important;
}

/* Text Container - Scales height, line-height, and padding proportionally with em */
.widgetsbellivan-bottom-bar.style-bubble .widgetsbellivan-page-nav-text-container {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate3d(6px, -50%, 0) !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: auto !important;
    height: 1.4em !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    background: transparent !important;
    opacity: 0 !important;
    max-width: 0 !important;
    flex: none !important;
    transition: opacity 0.45s ease, max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Underline Indicator Line directly inside the text container at the bottom */
.widgetsbellivan-bottom-bar.style-bubble .widgetsbellivan-page-nav-text-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.18em;
    background-color: currentColor;
    border-radius: 0.1em;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* When the active class is added, immediately draw the underline */
.widgetsbellivan-bottom-bar.style-bubble .widgetsbellivan-page-nav-item.widgetsbellivan-page-nav-item-active .widgetsbellivan-page-nav-text-container::after {
    transform: scaleX(1);
}

/* Make text container visible when active class is added by JS */
.widgetsbellivan-bottom-bar.style-bubble .widgetsbellivan-page-nav-item.widgetsbellivan-page-nav-item-active .widgetsbellivan-page-nav-text-container.widgetsbellivan-page-nav-text-active {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    max-width: 7em !important;
    margin-left: 0.5em !important;
    pointer-events: auto;
}

/* The actual Title text inside the clipping container - slides up using 100% relative offset */
:where(.widgetsbellivan-bottom-bar.style-bubble) .widgetsbellivan-page-nav-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap !important;
    text-transform: capitalize !important;
    display: block !important;
    position: relative !important;
    transform: translate3d(0, 100%, 0) !important; /* Hidden below the underline */
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Slides up out of the underline only when text-active class is added by JS */
.widgetsbellivan-bottom-bar.style-bubble .widgetsbellivan-page-nav-item.widgetsbellivan-page-nav-item-active .widgetsbellivan-page-nav-text-container.widgetsbellivan-page-nav-text-active .widgetsbellivan-page-nav-title {
    transform: translate3d(0, 0, 0) !important;
}

/* Disable old underline active bar indicator on item */
.widgetsbellivan-bottom-bar.style-bubble .widgetsbellivan-page-nav-item::after {
    display: none !important;
}

/* Disable global card hover translations inside Bubble theme */
.widgetsbellivan-bottom-bar.style-bubble .widgetsbellivan-page-nav-item:hover {
    transform: none !important;
}

/* Hover effects for Bubble - Scale icon from center */
.widgetsbellivan-bottom-bar.style-bubble .widgetsbellivan-page-nav-item:not(.widgetsbellivan-page-nav-item-active):hover .widgetsbellivan-page-nav-icon {
    transform: scale(1.2) !important;
}

/* If texts are disabled, prevent bubble item expansion and active icon shifting */
.widgetsbellivan-bottom-bar.style-bubble:not(:has(.widgetsbellivan-page-nav-text-container)) .widgetsbellivan-page-nav-item.widgetsbellivan-page-nav-item-active {
    flex-grow: 1 !important;
}
.widgetsbellivan-bottom-bar.style-bubble:not(:has(.widgetsbellivan-page-nav-text-container)) .widgetsbellivan-page-nav-item.widgetsbellivan-page-nav-item-active .widgetsbellivan-page-nav-icon {
    transform: none !important;
}

/* --- 3. PILL / CÁPSULA DINÁMICA --- */
.widgetsbellivan-bottom-bar.style-pill {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

:where(.widgetsbellivan-bottom-bar.style-pill) .widgetsbellivan-page-nav-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5em 0.75em;
    border-radius: 999px;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 0;
    transition: max-width 0.7s cubic-bezier(0.73, 0.005, 0.22, 1), padding 0.7s cubic-bezier(0.73, 0.005, 0.22, 1), background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    max-width: 3.5em;
    overflow: hidden;
}

:where(.widgetsbellivan-bottom-bar.style-pill) .widgetsbellivan-page-nav-item:not(.widgetsbellivan-page-nav-item-active) {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Inactive items: hide text */
.widgetsbellivan-bottom-bar.style-pill .widgetsbellivan-page-nav-item .widgetsbellivan-page-nav-text-container {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    flex: none !important;
    transition: max-width 0.7s cubic-bezier(0.73, 0.005, 0.22, 1), opacity 0.25s ease, margin 0.7s ease;
    margin: 0 !important;
}

/* Inactive items: icon centered */
.widgetsbellivan-bottom-bar.style-pill .widgetsbellivan-page-nav-item .widgetsbellivan-page-nav-icon {
    margin: 0 !important;
    transition: all 0.7s cubic-bezier(0.73, 0.005, 0.22, 1);
}

/* Active Pill Item styles - supports dynamic shadows using currentColor or active bg variables */
:where(.widgetsbellivan-bottom-bar.style-pill) .widgetsbellivan-page-nav-item.widgetsbellivan-page-nav-item-active {
    background-color: var(--widgetsbellivan-pill-active-bg-color, #3a86ff); /* Fallback active background */
    max-width: 10em;
    padding: 0.5em 1em;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--widgetsbellivan-pill-active-bg-color, #3a86ff) 30%, transparent);
}

.widgetsbellivan-bottom-bar.style-pill .widgetsbellivan-page-nav-item.widgetsbellivan-page-nav-item-active .widgetsbellivan-page-nav-text-container {
    max-width: 6em;
    opacity: 1;
    margin-left: 0.5em !important;
}

.widgetsbellivan-bottom-bar.style-pill .widgetsbellivan-page-nav-item.widgetsbellivan-page-nav-item-active .widgetsbellivan-page-nav-icon {
    color: #ffffff;
}

:where(.widgetsbellivan-bottom-bar.style-pill) .widgetsbellivan-page-nav-item.widgetsbellivan-page-nav-item-active .widgetsbellivan-page-nav-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Disable global card hover translations inside Pill theme */
.widgetsbellivan-bottom-bar.style-pill .widgetsbellivan-page-nav-item:hover {
    transform: none !important;
}

/* Hover effects for Pill */
:where(.widgetsbellivan-bottom-bar.style-pill) .widgetsbellivan-page-nav-item:not(.widgetsbellivan-page-nav-item-active):hover {
    background-color: rgba(255, 255, 255, 0.08);
    max-width: 4em;
}

.widgetsbellivan-bottom-bar.style-pill .widgetsbellivan-page-nav-item:not(.widgetsbellivan-page-nav-item-active):hover .widgetsbellivan-page-nav-icon {
    transform: scale(1.15) !important;
}

/* If texts are disabled, prevent pill active expansion */
.widgetsbellivan-bottom-bar.style-pill:not(:has(.widgetsbellivan-page-nav-text-container)) .widgetsbellivan-page-nav-item.widgetsbellivan-page-nav-item-active {
    max-width: 3.5em !important;
    padding: 0.5em 0.75em !important;
}
