/* ======================
   الهيدر - تصميم احترافي عصري
   ====================== */
.navbar-modern {
    background: linear-gradient(135deg, #5D4037, #4E342E);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* ----------------------
   شعار الموقع
   ---------------------- */
.navbar-brand {
    color: #FFF5E4 !important;
    font-weight: 800;
    font-size: 1.6rem;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* ----------------------
   مجموعة الأيقونات
   ---------------------- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ----------------------
   الأيقونات (إشعارات/رسائل)
   ---------------------- */
.nav-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 245, 230, 0.15);
    border: 1px solid rgba(255, 245, 230, 0.2);
    color: #FFF5E4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-icon-btn:hover {
    background: rgba(255, 245, 230, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.nav-icon-btn svg {
    font-size: 1.3rem;
    transition: transform 0.2s;
}

.nav-icon-btn:hover svg {
    transform: scale(1.1);
}

/* عداد الإشعارات */
.badge-counter {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #e74c3c;
    color: white;
    border: 2px solid #5D4037;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ----------------------
   القائمة المنسدلة للمستخدم
   ---------------------- */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    position: relative;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 245, 230, 0.2);
    border: 1px solid rgba(255, 245, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF5E4;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    background: rgba(255, 245, 230, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.user-name {
    color: #FFF5E4;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.user-name:hover {
    color: #F39C12;
}

/* ----------------------
   القوائم المنسدلة
   ---------------------- */
.dropdown-menu-modern {
    min-width: 300px;
    border-radius: 18px;
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin: 10px 0 0 0 !important;
    animation: slideDown 0.3s ease;
    border: 1px solid rgba(255, 245, 230, 0.1);
    overflow: hidden;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header-modern {
    background: linear-gradient(135deg, #5D4037, #4E342E);
    color: #FFF5E4;
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 245, 230, 0.1);
    margin: 0;
}

.dropdown-item-modern {
    padding: 1rem 1.5rem;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dropdown-item-modern:last-child {
    border-bottom: none;
}

.dropdown-item-modern:hover {
    background: #FFF5E4;
    color: #5D4037;
    transform: translateX(5px);
}

.dropdown-item-modern i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    color: #5D4037;
}

.dropdown-divider-modern {
    margin: 0.5rem 0;
    border-color: rgba(0, 0, 0, 0.05);
}

/* ----------------------
   أزرار الزوار
   ---------------------- */
.btn-outline-light-modern {
    background: transparent;
    border: 2px solid #FFF5E4;
    color: #FFF5E4;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-outline-light-modern:hover {
    background: #FFF5E4;
    color: #5D4037;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 245, 230, 0.3);
}

.btn-warning-modern {
    background: linear-gradient(135deg, #F39C12, #E67E22);
    border: none;
    color: white;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-warning-modern:hover {
    background: linear-gradient(135deg, #E67E22, #D35400);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

/* ----------------------
   التصميم على الجوال
   ---------------------- */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
        height: 65px;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .nav-actions {
        gap: 0.8rem;
    }

    .nav-icon-btn {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .badge-counter {
        top: 4px;
        right: 4px;
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .user-name {
        display: none;
    }

    .dropdown-menu-modern {
        min-width: 280px;
        margin: 8px 0 0 0 !important;
    }
}

/* ======================
   نهاية تصميم الهيدر
   ====================== */
   
   /* ----------------------
   تأثير الحركة للأيقونات
   ---------------------- */
.pulse-animation {
    animation: pulseIcon 1.5s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* تحديث تأثيرات الأيقونات */
.nav-icon-btn.pulse-animation {
    animation: pulseIcon 1.5s infinite;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.6);
}

.nav-icon-btn.pulse-animation:hover {
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
}