/* Professional Navbar Styles */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle Shadow on Scroll (handled via JS or persistent if preferred) */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 2rem;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4F46E5, #818CF8, #60A5FA);
    opacity: 0.8;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.brand-logo:hover {
    transform: translateY(-1px);
}

.brand-logo img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.1));
    transition: transform 0.3s ease;
}

.brand-logo:hover img {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    text-align: left;
}

.brand-text .line-1 {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1E293B 0%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.brand-text .line-2 {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a.link {
    color: #64748B;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 0.25rem;
}

.nav-links a.link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #4F46E5;
    transition: width 0.3s ease;
    border-radius: 2px;
    opacity: 0.7;
}

.nav-links a.link:hover {
    color: #1E293B;
}

.nav-links a.link:hover::after {
    width: 100%;
}

.nav-links a.link.active {
    color: #4F46E5;
}

.nav-links a.link.active::after {
    width: 100%;
    opacity: 1;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: #F8FAFC;
    border-radius: 100px;
    border: 1px solid #F1F5F9;
    transition: all 0.2s ease;
}

.user-profile:hover {
    background: #F1F5F9;
    border-color: #E2E8F0;
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.btn-logout {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout:hover {
    color: #EF4444;
    background: #FEF2F2;
}

.btn-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
    filter: brightness(1.1);
}

/* RTL Specific Adjustments */
[dir="rtl"] .brand-text {
    text-align: right;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}
