/* Mobile App Navigation Enhancements */
:root {
    --nav-height: 60px;
    --nav-icon-size: 24px;
    --nav-text-size: 12px;
    --nav-background: #ffffff;
    --nav-active-color: #2c6bed;
    --nav-inactive-color: #777777;
    --nav-border-color: rgba(0, 0, 0, 0.1);
    --nav-transition: 0.3s ease;
}

/* Ripple effect for touch feedback */
.bottom-nav-item .ripple {
    position: absolute;
    background: rgba(44, 107, 237, 0.2);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    /* Hide the regular navbar on mobile when scrolled down */
    body.scrolled .navbar {
        transform: translateY(-100%);
    }
    
    /* Smooth transition for navbar */
    .navbar {
        transition: transform 0.3s ease;
    }
    
    /* Enhanced bottom navigation */
    .bottom-nav-item {
        position: relative;
        overflow: hidden; /* For ripple effect */
    }
    
    /* Active indicator for bottom nav */
    .bottom-nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40%;
        height: 3px;
        background-color: var(--nav-active-color);
        border-radius: 0 0 3px 3px;
    }
    
    /* Animations for bottom nav items */
    .bottom-nav-item {
        animation: fadeInUp 0.5s forwards;
    }
    
    .bottom-nav-item:nth-child(1) { animation-delay: 0.1s; }
    .bottom-nav-item:nth-child(2) { animation-delay: 0.2s; }
    .bottom-nav-item:nth-child(3) { animation-delay: 0.3s; }
    .bottom-nav-item:nth-child(4) { animation-delay: 0.4s; }
    .bottom-nav-item:nth-child(5) { animation-delay: 0.5s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge for notifications (can be added to bottom nav items) */
.nav-badge {
    position: absolute;
    top: 8px;
    right: 50%;
    transform: translateX(12px);
    background-color: #ff3860;
    color: white;
    font-size: 10px;
    font-weight: bold;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Floating action button (optional) */
.mobile-fab {
    position: fixed;
    bottom: calc(70px + 20px); /* Bottom nav height + spacing */
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--nav-active-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-fab:hover, .mobile-fab:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.mobile-fab i {
    font-size: 24px;
}
