/* Bottom Navigation Bar - Mobile App Style */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    padding: 0 8px;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s;
    min-height: 60px;
    position: relative;
    border-radius: var(--radius-sm);
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

.bottom-nav-item i {
    font-size: 22px;
    transition: all 0.3s;
}

.bottom-nav-item span {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

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

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-item .count-badge,
.bottom-nav-item .badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(12px);
    background: #ef4444;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    padding: 0 4px;
    border: 2px solid var(--bg-color);
}

/* Show bottom nav only on mobile */
@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }

    /* Hide bottom nav when the main menu is open to avoid overlap */
    body.menu-open .bottom-nav {
        display: none;
    }

    /* Add padding to body to prevent content from being hidden behind bottom nav */
    body {
        padding-bottom: 70px;
    }

    /* Footer should not be visible on mobile when bottom nav is present */
    .footer {
        display: none;
    }
}

/* Hide bottom nav on dashboard pages */
.dashboard .bottom-nav,
body:has(.dashboard) .bottom-nav {
    display: none;
}

/* Adjust body padding when bottom nav is hidden */
body:has(.dashboard) {
    padding-bottom: 0;
}

