* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: auto !important;
}

:root.dark {
    .custom__dropdown__container img {
        filter: invert(1);
    }
}

#img_toggler {
    filter: var(--filter-inverse);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-white-2);
    border-bottom: 1px solid var(--color-gray-light);
    gap: 5px;
    padding: 8px 12px;
    max-height: 48px;
}

.header-main .right__header {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-main button:not(.custom__dropdown__menu__item) {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--border-radius-default);
    color: var(--color-gray-dark);
    cursor: pointer;
    display: grid;
    place-content: center;
    min-width: 32px;
    min-height: 32px;
}

.header-main button:not(.custom__dropdown__menu__item).user-login {
    background-color: #EBF5FE;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #18639C;
}

.header-main button:not(.custom__dropdown__menu__item):not(.user-login):hover {
    background-color: var(--bg-gray);
}

.mobile__theme__btn {
    justify-content: space-between !important;
}

.mobile__theme__btn>div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.toggle-switch .toggle-input {
    display: none;
}

.toggle-switch .toggle-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 20px;
    background-color: var(--bg-gray);
    border-radius: 34px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-switch .toggle-label::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background-color: #FFFFFF;
    transition: transform 0.3s;
}

.toggle-switch .toggle-input:checked+.toggle-label {
    background-color: var(--color-primary);
}

.toggle-switch .toggle-input:checked+.toggle-label::before {
    transform: translateX(16px);
}

.toggle-switch.light .toggle-label {
    background-color: #BEBEBE;
}

.toggle-switch.light .toggle-input:checked+.toggle-label {
    background-color: #9B9B9B;
}

.toggle-switch.light .toggle-input:checked+.toggle-label::before {
    transform: translateX(6px);
}

/* Dark tema */
.toggle-switch.dark .toggle-label {
    background-color: #4B4B4B;
}

.toggle-switch.dark .toggle-input:checked+.toggle-label {
    background-color: #717171;
}

.toggle-switch.dark .toggle-input:checked+.toggle-label::before {
    transform: translateX(16px);
}


.sponser_link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-main .logo {
    display: inline-flex;
    gap: 12px;
    font-size: 18px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-black);
    align-items: center;
}

::-webkit-scrollbar {
    background: var(--color-light-bg);
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 2rem;
}

@media only screen and (max-width: 1120px) {
    .sponser_link {
        display: none;
    }
}


@media only screen and (max-width: 940px) {
    .file__section span {
        font-weight: 500;
        font-size: 12px;
        line-height: 16px;
    }

    .file__section span::first-letter {
        text-transform: capitalize;
    }

}

@media only screen and (max-width: 450px) {
    .nav_btn {
        align-self: end;
    }

    #loginBtn span {
        display: none;
    }
}

@media only screen and (max-width: 400px) {
    .responsive-logo {
        width: 25px;
    }

}

.nav_btn {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 4px;
}

@media only screen and (max-width: 640px) {

    .responsive-logo {
        width: 30px;
    }

    #loginBtn span {
        display: none !important;
    }

}

:root {
    .theme__btn .sun {
        display: none;
    }

    .theme__btn .moon {
        display: inline;
    }
}

:root.dark {
    .theme__btn .moon {
        display: none;
    }

    .theme__btn .sun {
        display: inline;
    }
}

/* dropdown start here */

.custom__dropdown__container {
    position: relative;
}

.custom__dropdown__container:has(.custom__dropdown__menu__container:not(.d-none)) .custom__dropdown__toggle__btn:not(.user-login) {
    background-color: var(--bg-gray);
}

.custom__dropdown__menu__container,
.custom__dropdown__item__sub__menu__item {
    position: absolute;
    border-radius: 8px;
    border: 0.5px solid var(--color-gray-light);
    box-shadow: 1px 4px 12px 0px var(--color-black-shadow);
    background-color: var(--color-white);
}

.custom__dropdown__menu__container {
    top: calc(100% + 3px);
    right: 0;
}

.custom__dropdown__item__sub__menu {
    position: relative;
}

.custom__dropdown__item__sub__menu__item {
    top: 0;
    right: 100%;
    overflow-x: hidden;
}

@media screen and (min-width:769px) {
    .custom__dropdown__item__sub__menu:hover .custom__dropdown__item__sub__menu__item.d-none {
        display: block !important;
    }

    .custom__dropdown__item__sub__menu__item.d-none:hover {
        display: block !important;
    }

    .custom__dropdown__item__sub__menu__item.d-none::after {
        display: block !important;
    }

    .custom__dropdown__item__sub__menu__item::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 9px;
        transform: translateX(9px);
        height: 100%;
        background-color: transparent;
        z-index: 2;
    }
}

.custom__dropdown__menu__item {
    cursor: pointer;
    outline: none;
    border: none;
    background-color: transparent;
    width: 100%;
    min-width: 238px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 12px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}

.custom__dropdown__menu__item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.custom__dropdown__menu__item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.custom__dropdown__menu__item:hover,
.custom__dropdown__menu__item.active {
    background-color: var(--bg-gray);
}

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

.custom__dropdown__item__sub__toggle_btn .current_lang_text {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0 !important;
}

.custom__dropdown__item__sub__toggle_btn div {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.custom__dropdown__item__sub__menu__item_header {
    min-width: 238px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-gray-light);
}

.custom__dropdown__item__sub__menu__item_header:hover {
    background-color: transparent;
}

a.custom__dropdown__menu__item {
    color: var(--color-black);
    text-decoration: none;
}

.selected-lang-item {
    position: relative;
}

.selected-lang-item::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url("/web_assets/frontend/images/new-icon/green_tick.svg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.user__detail__container {
    padding: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.user__detail__container .user-name {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-black);
}

.user__detail__container .user-email {
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    color: var(--color-paragraph);
}

.mobile_main_lang_text,
.mobile_sub_lang_text {
    display: none;
}

.mobile_main_lang_text {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-black);
}

.mobile_sub_lang_text {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    color: var(--color-paragraph);
}

@media screen and (max-width:768px) {
    .custom__dropdown__item__sub__menu.active {
        border-top: 1px solid var(--color-gray-light);
    }

    .custom__dropdown__item__sub__menu.active .mobile_sub_lang_text {
        display: none;
    }

    .custom__dropdown__item__sub__menu.active .arrow-dropdown {
        transform: rotate(90deg);
    }

    .custom__dropdown__item__sub__toggle_btn {
        align-items: start !important;
    }

    .custom__dropdown__item__sub__toggle_btn div {
        align-items: start !important;
    }

    .custom__dropdown__container .arrow-dropdown {
        margin-block: 6px;
    }

    .custom__dropdown__item__sub__menu__item {
        border: none;
        border-bottom: 1px solid var(--color-gray-light);
    }

    .mobile_main_lang_text,
    .mobile_sub_lang_text {
        display: inline;
    }

    .main_lang_text {
        display: none;
    }

    .custom__dropdown__item__sub__menu__item_header {
        display: none;
    }

    .custom__dropdown__menu__item:hover,
    .custom__dropdown__menu__item.active {
        background-color: var(--color-white);
    }

    .custom__dropdown__item__sub__menu {
        flex-direction: column;
        max-width: 238px;
    }

    .custom__dropdown__item__sub__menu.active {
        padding-bottom: 0;
    }

    .custom__dropdown__item__sub__menu__item {
        position: static;
        transform: translateX(0);
        z-index: 3;
        border-radius: 0;
        box-shadow: none;
    }
}

/* dropdown end here */

.navbar-toggle-icon {
    cursor: pointer;
}

.search-input-container {
    position: relative;
}

.search-input-result {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    border: 0.5px solid var(--color-gray-light);
    box-shadow: 1px 4px 12px 0px var(--color-black-shadow);
    background-color: var(--color-white);
    max-height: 225px;
    overflow: auto;
}

.search-input-result::-webkit-scrollbar-track {
    background-color: var(--color-white) !important;
    border-radius: 8px;
    margin-block: 5px;
}

.search-input-result::-webkit-scrollbar {
    background-color: transparent;
}


.search-input-result li,
.search-input-result p {
    list-style: none;
    padding: 8px 12px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-black);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.search-input-result li.in-focus {
    background-color: var(--bg-gray);
}

.search-input-result li a {
    text-decoration: none;
    color: var(--color-black);
}

.search-input-result li a mark {
    background-color: transparent !important;
    color: var(--color-black);
}

.toolbar {
    overflow-y: hidden;
}

#chat-widget-container {
    right: 35px !important;
    transition: 0.2s ease-in-out !important;
}

body:not(.premium-users) #chat-widget-minimized {
    display: none !important;
}

body:not(.premium-users) #chat-widget-container:has(#chat-widget-minimized[style*="display: block"]) {
    z-index: -1 !important
}

body.premium-users #chat-widget-container {
    right: 24px !important;
    bottom: 72px !important;
}

body:has(#trustpilot.show) #chat-widget-container {
    bottom: 160px !important;
}

@media only screen and (max-width: 768px) {
    body #chat-widget-minimized {
        display: none !important;
    }

    body #chat-widget-container:has(#chat-widget-minimized[style*="display: block"]) {
        z-index: -1 !important
    }
}