/* ============================================
   Mobile Bottom Navigation Bar
   ============================================ */

.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(var(--background-primary));
    border-top: 1px solid rgba(var(--divide-color), 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.5rem;
    text-decoration: none;
    color: rgba(var(--color-text-primary), 0.6);
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.bottom-bar-item button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.bottom-bar-item:active {
    transform: scale(0.95);
}

.bottom-bar-item.active {
    color: rgb(var(--color-primary));
}

.bottom-bar-icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
    display: block;
    transition: transform 0.3s ease;
}

.bottom-bar-item.active .bottom-bar-icon {
    transform: scale(1.1);
}

.bottom-bar-label {
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bottom-bar-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.75rem;
    background: rgb(var(--color-primary));
    color: rgb(var(--badge-color));
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Add padding to wrapper to prevent content overlap */
.qr-menu-wrapper {
    padding-bottom: 70px;
}

/* Hide bottom bar on desktop */
@media (min-width: 768px) {
    .mobile-bottom-bar {
        display: none;
    }
    
    .qr-menu-wrapper {
        padding-bottom: 0;
    }
}

/* Safe area for devices with notches */
@supports (padding: max(0px)) {
    .mobile-bottom-bar {
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }
}

