/* Mobile Navbar Styles */

/* Navbar Mobile Base */
.navbar-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: bottom 1.0s ease;
    border-top: 1px solid #e1e5e9;
}

.navbar-mobile.navbar-hidden {
    bottom: -100px;
}

/* Navbar Nav */
.navbar-mobile .navbar-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 60px;
}

/* Nav Item */
.navbar-mobile .nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Nav Link */
.navbar-mobile .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #6c757d;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.navbar-mobile .nav-link i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.navbar-mobile .nav-link .nav-text {
    display: block;
    font-size: 10px;
    margin: 0;
}

/* Active State */
.navbar-mobile .nav-link.active {
    color: #4BA5C3;
}

.navbar-mobile .nav-link.active i {
    color: #4BA5C3;
    transform: scale(1.1);
}

/* Hover State */
.navbar-mobile .nav-link:hover {
    color: #4BA5C3;
    background-color: rgba(75, 165, 195, 0.05);
    border-radius: 8px;
}

/* Responsive - Only show on mobile */
@media (min-width: 769px) {
    .navbar-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-mobile {
        display: block;
    }

    /* Add padding to body to prevent content from being hidden behind navbar */
    body {
        padding-bottom: 70px;
    }

    .navbar-mobile .nav-link {
        padding: 6px 8px;
    }

    .navbar-mobile .nav-link i {
        font-size: 18px;
    }

    .navbar-mobile .nav-link .nav-text {
        font-size: 9px;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .navbar-mobile .navbar-nav {
        height: 55px;
    }

    .navbar-mobile .nav-link i {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .navbar-mobile .nav-link .nav-text {
        font-size: 8px;
    }

    .navbar-mobile .nav-link {
        padding: 4px 6px;
        min-width: 50px;
    }
}

/* Animation for active indicator */
@keyframes navPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.navbar-mobile .nav-link.active i {
    animation: navPulse 0.3s ease;
}

/* Smooth scroll behavior when navbar is clicked */
html {
    scroll-behavior: smooth;
}

/* Badge/notification indicator (optional) */
.navbar-mobile .nav-link .badge {
    position: absolute;
    top: 5px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* Prevent content shift when showing/hiding navbar */
.navbar-mobile-spacer {
    height: 60px;
    display: none;
}

@media (max-width: 768px) {
    .navbar-mobile-spacer {
        display: block;
    }
}

/* Touch-friendly tap areas */
@media (hover: none) {
    .navbar-mobile .nav-link {
        min-height: 48px;
        min-width: 48px;
    }
}

/* iOS Safari bottom bar fix */
@supports (padding: max(0px)) {
    .navbar-mobile {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .navbar-mobile {
        background-color: #1a1a1a;
        border-top-color: #333;
    }

    .navbar-mobile .nav-link {
        color: #adb5bd;
    }

    .navbar-mobile .nav-link.active {
        color: #4BA5C3;
    }

    .navbar-mobile .nav-link:hover {
        background-color: rgba(75, 165, 195, 0.1);
    }
}
