/* تصميم النافبار */
.navbar-master {
    background: rgba(255, 255, 255, 0);     
    box-shadow: none;
    transition: all 0.3s ease;
    height: 80px;
    padding: 0 20px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar-master.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* اللوجو */
.navbar-brand.logo {
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo-img {
    height: auto;
    max-height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

/* عندما يكون النافبار في حالة scrolled */
.navbar-master.scrolled .logo-img {
    max-height: 70px;
}

/* الروابط المركزية */
.navbar-nav.mx-auto {
    text-align: center;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
}

.navbar-master .nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.navbar-master .nav-link.active {
    color: #4b8ef1 !important;
    background: rgba(75, 142, 241, 0.1);
}

.navbar-master .nav-link:hover {
    color: #4b8ef1 !important;
    background: rgba(75, 142, 241, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #4b8ef1;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link.active::after {
    opacity: 1;
}

/* زر تسجيل الدخول */
.auth-btn {
    background: #4b8ef1;
    border: none;
    padding: 0.5rem 1.5rem;
    margin-left: 50px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    color: white !important;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(75, 142, 241, 0.3);
    background: #3a7bd9 !important;
    color: white !important;
}

/* قائمة المستخدم */
.user-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 220px;
    z-index: 1050;
    
}

.user-dropdown .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    
}

.user-dropdown .dropdown-item i {
    margin-left: 8px;
    width: 20px;
    text-align: center;
}

.user-dropdown .dropdown-item:hover {
    background: rgba(75, 142, 241, 0.1);
    padding-right: 1.75rem;
}

#userDropdown {
    padding-left: 100px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4b8ef1 !important;
}


.nav-pills .nav-link {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    margin: 0 0.5rem;
    color: #666;
    background: #f8f9fa;
    cursor: pointer;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #4b8ef1, #6ba8ff);
    color: white;
    box-shadow: 0 4px 15px rgba(75, 142, 241, 0.2);
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}


/* تنسيقات للجوال */
@media (max-width: 991.98px) {
    .navbar-brand.logo {
        position: static;
        transform: none;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
    
    .logo-img {
        max-height: 60px;
    }
    
    .navbar-master.scrolled .logo-img {
        max-height: 55px;
    }
    
    .navbar-nav.mx-auto {
        margin-top: 1rem;
        text-align: right;
        display: block;
    }
    
    .nav-link.active::after {
        right: 1rem;
        left: auto;
        transform: none;
    }
    
    .navbar-master {
        height: auto;
        min-height: 80px;
        padding: 10px;
        background: white;
    }
    
    .navbar-master.scrolled {
        background: white;
    }
    
    .navbar-brand.logo {
        margin-right: 0;
    }
    
    .auth-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .logo-img {
        max-height: 55px;
    }
    
    .navbar-brand.logo {
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .logo-img {
        max-height: 50px;
    }
    
    .logo-text {
        display: none;
    }
    
    .nav-pills .nav-link {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }
}