/* ==========================================
   Navbar Modern Styles
   شريط التنقل الاحترافي
   ========================================== */

/* === Container === */
/* === Container === */
.navbar-modern {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 0.4rem 0;
    /* Reduced padding */
}

.navbar-modern .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    /* Reduced gap */
    padding: 0 1rem;
}

/* === Logo === */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-icon {
    width: 38px;
    /* Reduced specific size */
    height: 38px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.logo-icon i {
    font-size: 1.3rem;
    /* Reduced icon font size */
    color: white;
}

.navbar-logo:hover .logo-icon {
    transform: rotateY(180deg) scale(1.1);
}

.logo-text {
    font-size: 1.25rem;
    /* Reduced font size */
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Mobile Toggle === */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1031;
}

.toggle-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-toggle[aria-expanded="true"] .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.navbar-toggle[aria-expanded="true"] .toggle-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle[aria-expanded="true"] .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* === Navigation Menu === */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    /* Tighter gap */
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-item-modern {
    position: relative;
}

.nav-link-modern {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.5rem;
    /* Compact padding */
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.85rem;
    /* Smaller font text */
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.nav-icon {
    width: 30px;
    /* Smaller icons */
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-icon i {
    font-size: 0.95rem;
    /* Smaller icon font */
    color: white;
}

.nav-link-modern:hover {
    transform: translateY(-2px);
    color: #1f2937;
}

.nav-link-modern:hover .nav-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.nav-link-modern.active {
    color: #667eea;
}

.nav-link-modern.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.nav-link-modern.active .nav-icon {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* === Navbar Actions === */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* === Navbar Messages & Notifications Icons === */
.navbar-icon-btn {
    display: inline-block;
    position: relative;
}

.navbar-icon-btn .icon-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.icon-wrapper i {
    font-size: 1.2rem;
    color: white;
}

.messages-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.notifications-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.navbar-icon-btn:hover .icon-wrapper {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.messages-icon:hover {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.notifications-icon:hover {
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* === Dashboard Button === */
/* === Dashboard Button === */
.navbar-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    /* Compact padding */
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.navbar-btn-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-btn-modern:hover::before {
    opacity: 0.2;
}

.navbar-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.navbar-btn-modern i,
.navbar-btn-modern span {
    position: relative;
    z-index: 1;
}

.dashboard-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #a55eea 0%, #8854d0 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(165, 94, 234, 0.3);
}

.login-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

/* ... */

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.user-dropdown-toggle:hover {
    background: rgba(0, 0, 0, 0.03);
    /* Subtle hover effect instead of border/shadow */
    transform: translateY(-1px);
}

.user-avatar {
    width: 38px;
    /* Slightly smaller */
    height: 38px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    /* Softer shadow */
}

.user-avatar i {
    font-size: 1.3rem;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1f2937;
}

.user-role {
    font-size: 0.75rem;
    color: #9ca3af;
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.user-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* === Dropdown Menu === */
.user-dropdown-menu {
    min-width: 250px;
    padding: 0.5rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.dropdown-header {
    padding: 1rem;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-user-info strong {
    color: #1f2937;
    font-size: 0.95rem;
}

.dropdown-user-info span {
    color: #9ca3af;
    font-size: 0.85rem;
}

.user-dropdown-menu .dropdown-item {
    padding: 0.75rem 1rem;
    color: #4b5563;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.user-dropdown-menu .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
    transform: translateX(-3px);
}

.user-dropdown-menu .dropdown-item i {
    width: 20px;
}

/* === Fixed Desktop Design (Mobile version disabled) === */
.navbar-toggle {
    display: none !important;
}

.navbar-modern .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    flex-direction: row !important;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: row !important;
}

.nav-link-modern {
    padding: 0.4rem 0.5rem;
}

.navbar-modern .container-fluid {
    padding: 0 1rem;
}

.logo-text {
    font-size: 1.25rem;
}

.logo-icon {
    width: 38px;
    height: 38px;
}

/* Logo Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
        filter: drop-shadow(0 5px 15px rgba(37, 99, 235, 0.2));
    }

    50% {
        transform: translateY(-5px);
        filter: drop-shadow(0 15px 25px rgba(37, 99, 235, 0.4));
    }

    100% {
        transform: translateY(0px);
        filter: drop-shadow(0 5px 15px rgba(37, 99, 235, 0.2));
    }
}

.logo-animated {
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.logo-animated:hover {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 8px 20px rgba(37, 99, 235, 0.5));
}