/* Mobile App Bar Enhanced Styles */

.mobile-app-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.mobile-app-bar .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
}

.mobile-app-bar .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #777;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    width: 20%;
    text-align: center;
}

.mobile-app-bar .nav-item i {
    font-size: 1.25rem;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.mobile-app-bar .nav-item span {
    transition: all 0.3s ease;
}

.mobile-app-bar .nav-item:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.mobile-app-bar .nav-item:hover i {
    transform: scale(1.1);
}

.mobile-app-bar .nav-item.active {
    color: var(--primary-color);
    position: relative;
}

.mobile-app-bar .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 4px 4px;
}

.mobile-app-bar .nav-item.active i {
    transform: scale(1.1);
}

/* Animation for active state */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.mobile-app-bar .nav-item.active i {
    animation: pulse 2s infinite;
}

/* Dark mode compatibility */
.dark-mode .mobile-app-bar {
    background-color: var(--dark-surface);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    border-top: 1px solid var(--dark-border);
}

.dark-mode .mobile-app-bar .nav-item {
    color: var(--dark-text-secondary);
}

.dark-mode .mobile-app-bar .nav-item:hover,
.dark-mode .mobile-app-bar .nav-item.active {
    color: var(--dark-secondary);
}

.dark-mode .mobile-app-bar .nav-item.active::before {
    background: var(--dark-gradient-primary);
}

/* Responsive adjustments */
@media (min-width: 992px) {
    .mobile-app-bar {
        display: none;
    }
}