/* ============================================
   MOBILE BOTTOM NAVIGATION BAR
   Premium App-Like Layout with animations
============================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(72px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
}

@media (max-width: 768px) {
    .mobile-bottom-nav.d-md-none {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20%;
    height: 72px;
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 5px 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav .nav-item i {
    font-size: 21px;
    margin-bottom: 4px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-bottom-nav .nav-item span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

/* Active State */
.mobile-bottom-nav .nav-item.active {
    color: var(--primary-blue);
}

.mobile-bottom-nav .nav-item.active i {
    transform: translateY(-2px) scale(1.1);
    color: var(--primary-blue);
}

/* Active indicator dot */
.mobile-bottom-nav .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-blue);
    animation: fadeInUp 0.3s ease;
}

/* Press/active feedback */
.mobile-bottom-nav .nav-item:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

/* Central Floating Action Button (FAB) */
.mobile-bottom-nav .center-action {
    position: relative;
    top: -18px;
    height: auto;
}

.mobile-bottom-nav .center-action:active {
    transform: scale(0.92);
}

.nav-fab {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #00a7e1, #00d4aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 167, 225, 0.4);
    margin-bottom: 4px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Pulsing glow ring around FAB */
.nav-fab::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 167, 225, 0.3), rgba(0, 212, 170, 0.2));
    z-index: -1;
    animation: fabPulse 2.5s ease-in-out infinite;
}

@keyframes fabPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.nav-fab i {
    font-size: 22px !important;
    margin-bottom: 0 !important;
    color: white !important;
}

.center-action:hover .nav-fab,
.center-action:active .nav-fab {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 167, 225, 0.5);
}

.center-action span {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Base Body Padding fix to prevent overlap */
@media (max-width: 768px) {
    body {
        padding-bottom: calc(85px + env(safe-area-inset-bottom));
    }

    /* Hide top nav links and actions to clean up header */
    .top-bar-right .top-nav,
    .top-bar-right .top-bar-actions .btn-cta,
    .top-bar-right .top-bar-actions .btn-cta-text,
    .top-bar-right .top-bar-actions .divider {
        display: none !important;
    }

    .top-bar-actions {
        display: flex;
        align-items: center;
    }
}