/* =============================================
   Institutional Navbar Styles — Professional LMS
   ============================================= */

/* Top Utility Bar — Slim, sleek strip */
.topbar-utility {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-utility a {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.topbar-utility a:hover {
    opacity: 1;
}

/* Main Navbar */
.navbar-main {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-main.navbar-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* Desktop Nav Links — Clean, no bg, underline active */
.navbar-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.2s ease;
}

.navbar-link:hover {
    color: #ffffff;
}

.navbar-link:hover::after {
    width: 60%;
}

.navbar-link-active {
    color: #ffffff;
    font-weight: 600;
}

.navbar-link-active::after {
    width: 60%;
    background: #ffffff;
}

/* Register Button — Clean rectangle, no rounded */
.navbar-register-btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
}

.navbar-register-btn:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    filter: brightness(1.08);
}

/* Mobile Sidebar Links */
.mobile-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    text-decoration: none;
}

.mobile-sidebar-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-sidebar-link-active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll animation */
.navbar-scroll {
    animation: navbarSlideDown 0.3s ease-out;
}

@keyframes navbarSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced dropdown styling */
.navbar-dropdown {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Focus states for accessibility */
.navbar-link:focus,
.mobile-nav-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Language switcher in navbar adjustment */
.navbar-main .language-option {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-main .language-option:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar-main {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

@media (max-width: 640px) {
    .topbar-utility {
        display: none !important;
    }
}

/* RTL Adjustments */
[dir="rtl"] .navbar-link i,
[dir="rtl"] .mobile-sidebar-link i {
    margin-right: 0;
    margin-left: 0.375rem;
}