/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default, shown only on mobile */
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    z-index: 1000;
    height: 70px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    flex: 1;
    padding: 0.5rem;
    min-width: 0;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus,
.mobile-nav-item.active {
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-nav-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-nav-item:hover .mobile-nav-icon,
.mobile-nav-item:focus .mobile-nav-icon,
.mobile-nav-item.active .mobile-nav-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mobile-nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mobile-nav-item:hover .mobile-nav-label,
.mobile-nav-item:focus .mobile-nav-label,
.mobile-nav-item.active .mobile-nav-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Active state for current page */
.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item.active .mobile-nav-icon {
    color: var(--primary-color);
}

.mobile-nav-item.active .mobile-nav-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Show menu only on mobile devices (xs and sm - up to 767px) */
@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

/* Responsive adjustments for mobile nav */
@media (max-width: 576px) {
    .mobile-bottom-nav {
        height: 65px;
        padding: 0.4rem 0;
    }

    .mobile-nav-icon {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

    .mobile-nav-label {
        font-size: 0.65rem;
    }
}

/* Small devices (sm) */
@media (min-width: 577px) and (max-width: 767px) {
    .mobile-bottom-nav {
        height: 70px;
    }
}

/* Hide on tablet and desktop (md and above - 768px+) */
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Main content margin for mobile navigation - only on mobile (xs and sm) */
@media (max-width: 767px) {
    .main-content {
        margin-bottom: calc(70px * 1.5); /* height + 50% = 105px */
    }
}

@media (max-width: 576px) {
    .main-content {
        margin-bottom: calc(65px * 1.5); /* height + 50% = 97.5px */
    }
}

@media (min-width: 577px) and (max-width: 767px) {
    .main-content {
        margin-bottom: calc(70px * 1.5); /* height + 50% = 105px */
    }
}

