.navbar {
    background-color: #222021;
    color: #fff;
    /*border-bottom: 1px solid #727272;*/
    backdrop-filter: blur(7.5px);
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    margin-inline-end: 2rem;
}

.navbar-brand img {
    width: 50%;
    height: 100%;
    max-width: 200px;
    max-height: 70px;
    object-fit: contain;
}


.nav-right-menu ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right-menu ul li {
    margin: 0 1rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    /* position: relative; */
}

.nav-right-menu ul li a {
    color: #F2F3F4;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.nav-right-menu ul li a:hover {
    color: #ED2939;
}

.nav-right-menu ul li.active a {
    color: #ED2939;
}

.nav-right-menu ul li img {
    display: none;
}

.nav-right-menu ul li.active img {
    display: block;
    position: absolute;
    bottom: 0;
}

.nav-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-left .contact-us-nav svg {
    width: 10px;
    height: 10px;
    padding: 12px;
    border-radius: 50%;
    border: 1px solid #6C6C6C;
    background: #3C3C3C;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-left .contact-us-nav i:hover {
    background: #DB4444;
    border: 1px solid #DB4444;
    transition: all 0.3s ease;
}

.nav-left .login-nav {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    border-radius: 40px;
    border: 1px solid #FFF;
    padding: 5px 20px;
    text-decoration: none;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-left .login-nav:hover {
    background: #DB4444;
    border: 1px solid #DB4444;
    transition: all 0.3s ease;
}

.nav-left .register-nav {
    color: #fff;
    font-size: 14px;
    border-radius: 40px;
    border: 1px solid #6C6C6C;
    background: linear-gradient(180deg, #525252 -37.25%, #252525 100%);
    padding: 5px 20px;
    text-decoration: none;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-left .register-nav:hover {
    background: #DB4444;
    border: 1px solid #DB4444;
    transition: all 0.3s ease;
}

.nav-left .register-nav.disabled {
    background: rgba(219, 68, 68, 0.62);
    border: 1px solid rgba(219, 68, 68, 0.62);
    transition: all 0.3s ease;
    cursor: not-allowed;
}

.mobile-menu-footer .register-nav.disabled {
    background: rgb(237 41 57 / 27%);
    border: 1px solid rgb(237 41 57 / 27%);
    transition: all 0.3s ease;
    cursor: not-allowed;
}

.bar-menu {
    display: none;
}

.bar-menu svg {
    font-size: 24px;
    color: #fff;
}

.nav-left-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.mobile-menu .offcanvas {
    background-color: #222021;
    width: 100%;
}

.mobile-menu .offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1rem;
}

.mobile-menu .offcanvas-header button {
    background-color: transparent;
    border: 1px solid #ED2939;
    border-radius: 12px;
    color: #ED2939;
    font-size: 24px;
    font-weight: 400;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu .offcanvas-header button svg {
    font-size: 20px;
    color: #ED2939;
}

.mobile-menu .offcanvas-header img {
    max-width: 200px;
    width: 100px;
    object-fit: contain;
}

.mobile-menu .offcanvas-body ul {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #727272;
}

.mobile-menu .offcanvas-body ul li {
    margin: .6rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* position: relative; */
    align-items: center;

}

.mobile-menu .offcanvas-body ul li img {
    width: 20px;
    height: 20px;
    transform: rotate(270deg);
    display: none;
}

.mobile-menu .offcanvas-body ul li.active img {
    display: block;
}

.mobile-menu .offcanvas-body ul li a {
    color: #8d8c8c;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    /* margin-bottom: 1.5rem; */
    text-decoration: none;
}

.mobile-menu .offcanvas-body ul li.active a {
    color: #ED2939;
}

.mobile-menu .offcanvas-body ul li a:hover {
    color: #ED2939;
}

.mobile-menu-footer-social {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* justify-content: center; */
    gap: 1rem;
    margin-top: 3rem;
}

.mobile-menu-footer-social a svg {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #6C6C6C;
    background: #3C3C3C;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 12px;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    text-decoration: none;
}

.mobile-menu-footer-social a svg:hover {
    background: #DB4444;
    border: 1px solid #DB4444;
    transition: all 0.3s ease;
}

.home-navbar {
    background-color: #f2f3f414;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar.navbar-fixed,
.navbar.navbar-fixed.home-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #727272;
    background-color: #222021;
}

/* Profile Dropdown Styles */
.nav-profile {
    position: relative;
}

.profile-dropdown {
    position: relative;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    /* padding: 8px 12px; */
    border-radius: 25px;
    /* background: linear-gradient(180deg, #525252 -37.25%, #252525 100%); */
    /* border: 1px solid #6C6C6C; */
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.profile-toggle:hover {
    /* background: linear-gradient(180deg, #5a5a5a -37.25%, #222021 100%); */
    /* border: 1px solid #8C8C8C; */
    /* transform: translateY(-1px); */
    transition: all 0.3s ease;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    /* border: 2px solid #ED2939; */
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.welcome-text {
    color: #C7C7C7;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 6px;
    line-height: 1;
}

.user-name {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 2px;
}

.dropdown-arrow {
    color: #C7C7C7;
    font-size: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.profile-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    box-shadow: 0px 20px 26px 0px #0000000D;
    border: 1px solid #fff;
    border-radius: 12px;
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.profile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.profile-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 1px solid #fff;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.profile-dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.profile-dropdown-menu ul li {
    margin: 0;
}

.profile-dropdown-menu ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #161616;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.profile-dropdown-menu ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #ED2939 0%, rgba(237, 41, 57, 0.1) 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.profile-dropdown-menu ul li a:hover {
    color: #fff;
    background: rgba(237, 41, 57, 0.1);
    transform: translateX(4px);
}

.profile-dropdown-menu ul li a:hover::before {
    width: 100%;
}

.profile-dropdown-menu ul li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.profile-dropdown-menu ul li.logout-item {
    border-top: 1px solid #404040;
    margin-top: 8px;
    padding-top: 8px;
}

.profile-dropdown-menu ul li.logout-item a {
    color: #ED2939;
}

.profile-dropdown-menu ul li.logout-item a:hover {
    background: rgba(237, 41, 57, 0.2);
    color: #fff;
}

/* Animation keyframes */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

.language-nav {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
}

.language-nav img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Mobile responsive styles */
@media (max-width: 768px) {
    .bar-menu {
        display: block;
    }
    .nav-right-menu {
        display: none;
    }
    .nav-left-menu {
        display: none;
    }
    .profile-toggle {
        min-width: 140px;
        padding: 6px 10px;
        gap: 8px;
    }

    .profile-avatar {
        width: 32px;
        height: 32px;
    }

    .welcome-text {
        font-size: 11px;
    }

    .user-name {
        font-size: 13px;
    }

    .profile-dropdown-menu {
        min-width: 200px;
        right: -10px;
    }

    .profile-dropdown-menu ul li a {
        padding: 10px 14px;
        font-size: 13px;
    }
}


@media (max-width: 768px) {
    /* Fix mobile navigation profile dropdown positioning */
    .mobile-menu .nav-profile {
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .mobile-menu .profile-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        min-width: auto;
        margin-top: 1rem;
    }

    .mobile-menu .profile-dropdown-menu::before {
        display: none;
    }

    .mobile-menu .profile-dropdown-menu ul li a {
        color: #8d8c8c;
        font-size: 18px;
        padding: 8px 0;
    }

    .mobile-menu .profile-dropdown-menu ul li a:hover,
    .mobile-menu .profile-dropdown-menu ul li.logout-item a {
        color: #ED2939;
    }

    .mobile-menu .profile-dropdown-menu ul li a::before {
        display: none;
    }

    /* Ensure mobile menu items stack properly */
    .mobile-menu .offcanvas-body {
        padding: 1rem;
    }

    /* Fix profile toggle for mobile */
    .mobile-menu .profile-toggle {
        background: transparent;
        border: none;
        padding: 0;
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
    }

    .mobile-menu .dropdown-arrow {
        margin-left: auto;
    }
}

.login-wrapper {
    position: relative;
}

.coming-soon-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #198754;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1;
}
