/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: var(--primaryColor);
    z-index: 999;
    display: none; /* مخفي افتراضياً */
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.nav-item {
    flex: 1;
    max-width: 30%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    background-color: var(--primaryColor);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 2px;
    padding: 5px;
}

.nav-item i {
    font-size: 16px;
    margin-bottom: 2px;
    color: white;
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
    color: white;
    text-align: center;
    line-height: 1;
    transition: all 0.3s ease;
}


.nav-item:hover,
.nav-item.active {
    background-color: var(--blue);
    transform: translateY(-2px);
    height: calc(100% + 5px);
    top: -5px;
    border-radius: 8px;
    box-shadow: 0 -4px 15px rgba(39, 185, 242, 0.3);
}

.nav-item:hover i,
.nav-item.active i {
    color: white;
    transform: scale(1.1);
}

.nav-item:hover span,
.nav-item.active span {
    color: white;
    font-weight: 600;
}

/* عرض للتابلت والموبايل فقط */
@media (max-width: 1023px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    /* إضافة مساحة للcontents لتجنب التداخل */
    body {
        padding-bottom: 60px;
    }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .nav-item i {
        font-size: 14px;
    }
    
    .nav-item span {
        font-size: 9px;
    }
    
    .nav-container {
        padding: 0 5px;
    }
    
    .nav-item {
        margin: 0 1px;
        border-radius: 6px;
    }
    
    .nav-item:hover,
    .nav-item.active {
        border-radius: 6px;
    }
}

/* إخفاء للديسكتوب */
@media (min-width: 1024px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}