﻿
/* Custom styles for the navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0px; /* Added bottom spacing */
    left: 15px; /* Added left spacing */
    right: 15px; /* Added right spacing */
    z-index: 1000;
    will-change: transform;
    transform: translateZ(0);
    display: flex;
    height: 60px;
    background-color: #061F2A; 
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    /*border-radius: 50px;*/
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
    border :solid 1px white;

}

/* Hide on desktop */
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
}

.mobile-bottom-nav__item {
    flex-grow: 1;
    text-align: center;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #4F4F4F;
    font-weight :500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
    position: relative;
    cursor: pointer;
}

    /* Hover effect */
    .mobile-bottom-nav__item:hover {
        background-color: rgba(93, 120, 255, 0.08);
        color: #FFDD00;
    }

        .mobile-bottom-nav__item:hover .mobile-bottom-nav__icon {
            transform: translateY(-4px) scale(1.1);
        }

.mobile-bottom-nav__item--active {
    color: #FAFCFD;
}

.mobile-bottom-nav__item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-bottom-nav__icon {
    font-size: 22px;
    margin-bottom: 4px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-bottom-nav__item--active .mobile-bottom-nav__icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #5D78FF;
    border-radius: 50%;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.2s ease;
}

/* Active item background effect */
.mobile-bottom-nav__item--active::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(93, 120, 255, 0.15);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-bottom-nav__item--active:hover::before {
    opacity: 1;
    top: -20px;
}

/* Animation for active item */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.mobile-bottom-nav__item--active .mobile-bottom-nav__icon {
    animation: bounce 0.6s ease;
}

/* Content area padding to prevent overlap */
.content-area {
    padding-bottom: 90px;
    transition: padding 0.3s ease;
}

/* Ripple effect */
.ripple {
    position: absolute;
    background: rgba(93, 120, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}
