/* General Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    height: 80px;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    align-items: center;
    padding: 0 10px;
    filter: blur(20%);
}

/* Active Navigation Link */
.navbar .nav-link.active {
    position: relative;
    color: white !important;
}

/* Navbar Branding */
.navbar-brand .logo-wrapper {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 24px;
    margin-left: 14px;
    object-fit: contain;
}

/* Avatar and Dropdown */
.avatar-container {
    margin-right: 16px;
}

.avatar-image {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #e5e5e5;
    object-fit: cover;
}

.avatar-icon {
    font-size: 10px;
    transform: rotate(180deg);
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle .user-info {
    display: none;
}

.dropdown-menu-avatar {
    z-index: 999;
    border: 1px solid var(--smooth-border-color);
    opacity: 0;
    transform: translateY(-10%);
    display: none;
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
}

.dropdown-menu-avatar.show {
    display: block;
    opacity: 1;
    transform: translateY(10%) translateX(-60%);
}

/* Dropdown Item */
.dropdown-item {
    font-size: 14px;
    transition: background-color 0.2s, color 0.15s;
}

.dropdown-item:hover {
    background-color: var(--font-color);
    color: white;
}

.dropdown-item:hover i {
    color: white;
}

@media (min-width: 992px) {
    .navbar .nav-link.active::after {
        content: "";
        position: absolute;
        width: 120%;
        height: 80%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) skewY(-20deg) rotate(20deg);
        background-color: var(--primary-color);
        z-index: -1;
    }

    .navbar-collapse {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-collapse .navbar-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1em;
    }

    .dropdown-toggle .user-info {
        display: block;
    }

    .dropdown-menu-avatar.show {
        transform: translateY(10%);
    }
}
