/* Bottom Nav Bar Styling */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #212529 !important; /* Dark background */
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 8px 5px !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2) !important;
    z-index: 1000 !important;
    border-top: 1px solid #343a40 !important;
    height: 70px !important;
    width: 100% !important;
}

.bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #f8f9fa !important; /* Light text */
    text-decoration: none !important;
    padding: 6px 8px !important;
    border-radius: 16px !important;
    transition: all 0.3s ease !important;
    flex: 1 !important;
    text-align: center !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 54px !important;
}

.bottom-nav-item:hover {
    color: #f8f9fa !important;
    text-decoration: none !important;
}

.bottom-nav-item.active {
    background-color: #0d6efd !important; /* Blue for active */
    color: #fff !important;
}

.bottom-nav-item .nav-icon {
    display: block !important;
    margin-bottom: 2px !important;
}

.bottom-nav-item .nav-icon i {
    font-size: 1.2rem !important;
    display: block !important;
    line-height: 1 !important;
}

.bottom-nav-item .nav-text {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.1 !important;
}

/* Add padding to the body to prevent content from being hidden by the fixed nav bar */
body {
    padding-bottom: 80px !important;
}

/* Media query to ensure it only shows on mobile devices */
@media (min-width: 768px) {
    .bottom-nav {
        display: none !important;
    }
    body {
        padding-bottom: 0 !important;
    }
}

/* Hide on desktop and large tablets */
@media (min-width: 992px) {
    .bottom-nav {
        display: none !important;
    }
    body {
        padding-bottom: 0 !important;
    }
}

/* Only show on small mobile devices */
@media (max-width: 767px) {
    .bottom-nav {
        display: flex !important;
    }
    body {
        padding-bottom: 80px !important;
    }
}

/* Additional styling to ensure Font Awesome icons load properly */
.bottom-nav-item .nav-icon i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

.bottom-nav-item .nav-icon i:before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

/* Fallback icons if Font Awesome doesn't load */
.bottom-nav-item .nav-icon i.fa-home:before { content: "🏠"; }
.bottom-nav-item .nav-icon i.fa-cut:before { content: "✂️"; }
.bottom-nav-item .nav-icon i.fa-book-open:before { content: "📖"; }
.bottom-nav-item .nav-icon i.fa-users:before { content: "👥"; }
.bottom-nav-item .nav-icon i.fa-store:before { content: "🏪"; }
