/* Mobile Tab Bar Styles */
.mobile-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 8px 16px;
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-tab-bar .tab-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.mobile-tab-bar .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    text-decoration: none;
}

.mobile-tab-bar .tab-item:hover {
    background-color: #f3f4f6;
}

.mobile-tab-bar .tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.mobile-tab-bar .tab-icon i {
    font-size: 20px;
}

.mobile-tab-bar .tab-label {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Active state */
.mobile-tab-bar .tab-item.active {
    color: #8B5CF6;
    background-color: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
}

.mobile-tab-bar .tab-item.active .tab-icon i {
    color: #8B5CF6;
}

/* Enhanced active state for better visibility */
.mobile-tab-bar .tab-item.active .tab-label {
    font-weight: 600;
}

/* Floating Add button */
.mobile-tab-bar .tab-item.add-button {
    position: relative;
}

.mobile-tab-bar .tab-item.add-button .tab-icon {
    width: 48px;
    height: 48px;
    background: #8B5CF6;
    border-radius: 50%;
    margin-top: -20px;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.mobile-tab-bar .tab-item.add-button .tab-icon i {
    color: white;
    font-size: 24px;
}

.mobile-tab-bar .tab-item.add-button .tab-label {
    color: #6b7280;
}

/* Inactive state colors */
.mobile-tab-bar .tab-item:not(.active) {
    color: #6b7280;
}

.mobile-tab-bar .tab-item:not(.active) .tab-icon i {
    color: #6b7280;
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-tab-bar {
        display: none !important;
    }
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-tab-bar {
        display: block;
    }
    
    /* Add bottom padding to body when tab bar is present */
    body.has-mobile-tab-bar {
        padding-bottom: 80px !important;
    }
}