/* شريط التنقل الاحترافي - Professional Navbar */
.navbar-pro {
    background: #0f172a !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    padding: 0.4rem 0;
    min-height: 56px;
    overflow: visible;
}

.navbar-pro .navbar-collapse {
    overflow: visible;
}

.navbar-pro .container-fluid {
    max-width: 100%;
    overflow: visible;
}


.navbar-pro .navbar-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.navbar-pro .navbar-brand:hover {
    color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-pro .navbar-brand i {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* روابط التنقل */
.navbar-pro .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.navbar-pro .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.navbar-pro .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.navbar-pro .nav-link:focus {
    color: #fff !important;
}

.navbar-pro .nav-link i {
    margin-left: 0.4rem;
    font-size: 1rem;
    opacity: 0.95;
}

/* القائمة المنسدلة للإعدادات */
.navbar-pro .dropdown-toggle::after {
    margin-right: 0.4rem;
    font-size: 0.7rem;
}

.navbar-pro .dropdown-menu {
    margin-top: 0.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.navbar-pro .dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.navbar-pro .dropdown-item:hover {
    background: #f1f5f9;
}

/* مربع المستخدم - pill-shaped مع بقعة شبه شفافة */
.navbar-user-dropdown .navbar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.1rem;
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.navbar-user-dropdown .navbar-user-btn:hover {
    background: rgba(59, 130, 246, 0.35);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff !important;
}

.navbar-user-dropdown .navbar-user-btn i {
    font-size: 1.15rem;
    opacity: 0.95;
}

.navbar-user-dropdown .navbar-user-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* قائمة المستخدم المنسدلة */
.dropdown-menu-pro {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 260px;
    z-index: 1050;
}

.dropdown-menu-pro .dropdown-header {
    padding: 0.85rem 1rem;
}

.dropdown-menu-pro .dropdown-item {
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-weight: 500;
}

.dropdown-menu-pro .dropdown-item:hover {
    background: #f1f5f9;
}

.dropdown-menu-pro .dropdown-item.text-danger:hover {
    background: #fef2f2;
}

/* زر القائمة المنسقلة للموبايل */
.navbar-pro .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
    padding: 0.35rem 0.5rem;
}

.navbar-pro .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.navbar-pro .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* تحسين العرض على الشاشات الصغيرة */
@media (max-width: 991px) {
    .navbar-pro .navbar-nav {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar-pro .nav-item {
        margin-bottom: 0.15rem;
    }
    .navbar-pro .nav-link {
        padding: 0.6rem 0.85rem !important;
    }
    .navbar-user-dropdown {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar-user-dropdown .navbar-user-btn {
        width: 100%;
        justify-content: center;
        border-radius: 10px;
    }
}
