﻿.tabbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    position: fixed;
    bottom: 0;
    padding-inline: 12px;
    background: linear-gradient(to top, #2D3552, #202945);
    z-index: 100;
    overflow: visible;
    gap: 8px;

}

.tabbar-item {
    width: 60px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease; /* Transición suave */
    position: relative;
    z-index: 1;
    font-size: 12px;
}

    .tabbar-item span {
        font-size: 11px;
        margin-top: 4px;
        text-align: center;
    }

    .tabbar-item.tab-active span {
        display: none;
    }

    .tabbar-item i {
        font-size: 20px;
        transition: transform 0.3s ease; /* Animación del icono */
    }

    /* Estilo para el ítem activo */
    .tabbar-item.tab-active {
        opacity: 1;
        color: white;
        z-index: 2;
        transition: all 0.3s ease; /* Transición suave para el cambio de estado */
    }

        .tabbar-item.tab-active .active-bg {
            position: absolute;
            top: -20px;
            width: 60px;
            height: 60px; 
            background: linear-gradient(142deg, #34C8E8 0%, #4E4AF2 100%);
            box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
            transform: skewY(-10deg);
            border-radius: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            left: -5px;
            transition: all 0.3s ease; /* Transición suave para el paralelogramo */
        }

            /* Icono dentro del paralelogramo */
            .tabbar-item.tab-active .active-bg i {
                transform: skewY(10deg); /* Corrige la inclinación del icono */
                font-size: 24px;
                transition: transform 0.3s ease; /* Animación del icono dentro del paralelogramo */
            }

.tabbar-item:last-child.tab-active {
        margin-right: 12px; /* Espacio adicional para el botón activo de la derecha */
    }

.tabbar-more-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 82px;
    z-index: 130;
    background: rgba(20, 26, 46, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.tabbar-more-link {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 12px;
    min-height: 58px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
}

.tabbar-more-link i {
    font-size: 17px;
}

@media (max-width: 420px) {
    .tabbar-more-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
