* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --color-primary: #18639c;
    --color-primary-hover: #044F88;
    --color-secondary: #02dac5;
    --color-gray: #a0a0a0;
    --color-gray-shadow: #77777725;
    --color-gray-light: #eceef0;
    --color-white: #fff;
    --color-white-2: #fff;
    --toogle-switch: #00549c;
    --gray-gradient: linear-gradient(#f0f0f0, #f0f0f0);
    --filter-inverse: invert(0);
    --color-black: #000;
    --color-border: #EAEAEA;
    --text-light: #5E5D5D;
    --text-color: #5E5D5D;
    --default-font-size: 18px;
    --border-radius-default: 5px;
    --color-light-bg: #f7f7f7;
    --color-backdrop: #ffffff7a;
    --change-color: #E35E35;
    --placeholder-text: #A6ABB3;
    --hover-doc: #F4F6F7;
    --filter-icon: brightness(0);
    color-scheme: light;
    --font-family: "Open Sans", sans-serif;
    --profile-icon: brightness(0) saturate(100%) invert(0%) sepia(5%) saturate(7500%) hue-rotate(202deg) brightness(101%) contrast(96%);
    --theme-btn: #18639c;
    --hover-text: #000000;
    --topbar-color: #000;
    --doc-icon: brightness(0) saturate(100%) invert(0%) sepia(100%) saturate(11%) hue-rotate(250deg) brightness(99%) contrast(99%);
    --popup-activecolor: #18639c;
    --black-icon: brightness(0) saturate(100%) invert(71%) sepia(3%) saturate(10%) hue-rotate(353deg) brightness(92%) contrast(82%);
    --danger-icon: brightness(0) saturate(100%) invert(41%) sepia(29%) saturate(1094%) hue-rotate(313deg) brightness(106%) contrast(99%);
}

:root.dark {
    --hover-text: #ffffff;
    --filter-white: brightness(0) saturate(100%) invert(100%) sepia(58%) saturate(21%) hue-rotate(352deg) brightness(104%) contrast(100%);
    --text-color: #ffffff;
    --filter-icon: brightness(0) saturate(100%) invert(100%) sepia(58%) saturate(21%) hue-rotate(352deg) brightness(104%) contrast(100%);
    --color-primary: #18639c;
    --color-secondary: #02dac5;
    --color-gray: #ececec;
    --color-gray-shadow: #3838382c;
    --color-gray-light: #424242;
    --color-white: #181818;
    --color-white-2: #181818;
    --hover-doc: #252525;
    --gray-gradient: #000000;
    --color-black: #e0e0e0;
    --color-border: #373737;
    --text-light: #ACACAC;
    --color-light-bg: #070707;
    --color-backdrop: #0707077a;
    --toogle-switch: #00549c;
    --filter-inverse: invert(1);
    --default-font-size: 18px;
    --border-radius-default: 5px;
    --font-family: "Open Sans", sans-serif;
    color-scheme: dark;
    --profile-icon: brightness(0) saturate(100%) invert(94%) sepia(96%) saturate(0%) hue-rotate(229deg) brightness(105%) contrast(103%);
    --theme-btn: transparent;
    --topbar-color: #fff;
    --doc-icon: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(331deg) brightness(102%) contrast(101%);
    --black-icon: brightness(0) saturate(100%) invert(97%) sepia(99%) saturate(1%) hue-rotate(89deg) brightness(105%) contrast(100%);

    --popup-activecolor: #18639c;
}

:root.dark-green {
    --color-primary: #00e980;
    --color-secondary: #00e980;
    --color-gray: #ececec;
    --color-gray-shadow: #3838382c;
    --color-gray-light: #012e46;
    --color-white: #011926;
    --color-white-2: #000c13;
    --toogle-switch: #00e980;
    --gray-gradient: linear-gradient(#00151f, #011926);
    --color-black: #e0e0e0;
    --filter-inverse: invert(1);
    --default-font-size: 18px;
    --border-radius-default: 5px;
    --font-family: "Open Sans", sans-serif;
    color-scheme: dark;
    --profile-icon: brightness(0) saturate(100%) invert(83%) sepia(36%) saturate(4851%) hue-rotate(98deg) brightness(92%) contrast(107%);
    --theme-btn: transparent;
    --topbar-color: #fff;
    --doc-icon: brightness(0) saturate(100%) invert(83%) sepia(36%) saturate(4851%) hue-rotate(98deg) brightness(92%) contrast(107%) !important;
    --black-icon: brightness(0) saturate(100%) invert(97%) sepia(99%) saturate(1%) hue-rotate(89deg) brightness(105%) contrast(100%);
}

:root.light-blue {
    --color-primary: #385eca;
    --color-secondary: #385eca;
    --color-gray: #000;
    --color-gray-shadow: #385eca;
    --color-gray-light: #b6bdd1;
    --color-white: #fff;
    --color-white-2: #c8cedf;
    --gray-gradient: linear-gradient(#f2f4f5, #e1e4ee);
    --filter-inverse: invert(0);
    --color-black: #000;
    --default-font-size: 18px;
    --border-radius-default: 5px;
    color-scheme: light;
    --font-family: "Open Sans", sans-serif;
    --profile-icon: brightness(0) saturate(100%) invert(0%) sepia(5%) saturate(7500%) hue-rotate(202deg) brightness(101%) contrast(96%);
    --theme-btn: #18639c;
    --topbar-color: #000;
    --doc-icon: brightness(0) saturate(100%) invert(0%) sepia(5%) saturate(7500%) hue-rotate(202deg) brightness(101%) contrast(96%);
    --popup-activecolor: #18639c;
    --black-icon: brightness(0);
}

body {
    background: var(--gray-gradient);
    min-height: 100vh;
    font-size: var(--default-font-size);
    font-family: var(--font-family);
    line-height: 1.8;
    position: relative;
}

html {
    overflow-x: hidden;
}

.mt-10 {
    margin-top: 10px;
}

.pt-10 {
    padding-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.pt-20 {
    padding-top: 20px;
}

.d-none {
    display: none !important;
}

.alert {
    color: #6b0000;
    background-color: #ffa8a8;
    border-color: #f99;
    padding: 10px 20px;
    width: 100%;
    margin: 20px auto;
    border-radius: var(--border-radius-default);
}

.main-content {
    /*padding-left: 90px;*/
    overflow-x: hidden;
    min-height: 100vh;
}

.page-contents {
    padding: 30px 50px 10px 0px;
    transition: 0.3s ease;
}

.page-contents.active {
    padding: 30px 50px 10px 70px;
}



.main-container {
    min-height: 90vh;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: auto;
}


/*
|======================================================*
|              langs switch
|======================================================*
*/

.switch__langs {
    min-width: fit-content;
    width: 100% !important;
    padding: 4px 15px;
    color: #a6abb3 !important;
    font-size: 16px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    position: relative;
}

.formating__langauge {
    display: none;
}

.switch__langs img:nth-child(1) {
    max-width: 38px;
}

.switch__langs img {
    max-width: 20px;
}

.langs__dropdown {
    position: absolute;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--color-white-2);
    padding: 10px;
    right: 0px;
    min-width: 180px;
    z-index: 100;
    align-items: flex-start;
    border: 1px solid var(--color-gray-light);
    border-radius: 7px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    max-height: 200px;
    overflow-y: auto;
}

.langs__dropdown::-webkit-scrollbar-track {
    background: var(--color-gray-light);
    width: 8px;
}

.langs__dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-gray-dark);
    border-top: 1px solid var(--color-gray-light) !important;
    width: 100%;
    padding: 10px 0px;
    padding-bottom: 5px;
}

.langs__dropdown a img {
    clip-path: circle();
    max-width: 30px !important;
}

.switch__langs img {
    clip-path: circle();
    max-width: 25px !important;
}



[data-tooltip]:not(.inverse-tooltip) {
    position: relative;

    &::before,
    &.initial::before {
        content: attr(data-tooltip);
        position: absolute;
        bottom: calc(100% + 9px);
        left: 50%;
        transform: translateX(-50%) translateY(0) scale(0);
        width: max-content;
        font-size: 12px;
        font-weight: 400;
        line-height: 16px;
        text-align: center;
        background: #333;
        color: #fff;
        padding: 6px 8px;
        border-radius: 4px;
        min-width: 54px;
        transition: all 100ms;
    }

    &::after,
    &.initial::after {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-200%) scale(0);
        border: 5px solid transparent;
        border-top-color: #333;
        transition: all 100ms;
    }

    &:hover::before,
    &.initial::before,
    &:hover::after,
    &.initial::after {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.inverse-tooltip[data-tooltip] {
    position: relative;

    &::before,
    &.initial::before {
        content: attr(data-tooltip);
        position: absolute;
        top: calc(100% + 9px);
        /* Changed from bottom */
        left: 50%;
        transform: translateX(-50%) translateY(0) scale(0);
        width: max-content;
        font-size: 12px;
        font-weight: 400;
        line-height: 16px;
        text-align: center;
        background: #333;
        color: #fff;
        padding: 6px 8px;
        border-radius: 4px;
        min-width: 54px;
        transition: all 100ms;
    }

    &::after,
    &.initial::after {
        content: '';
        position: absolute;
        top: 100%;
        /* Changed from bottom */
        left: 50%;
        transform: translateX(-50%) translateY(200%) scale(0);
        border: 5px solid transparent;
        border-bottom-color: #333;
        /* Changed from border-top-color */
        transition: all 100ms;
    }

    &:hover::before,
    &.initial::before,
    &:hover::after,
    &.initial::after {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.spinner {
    width: 16px;
    /* Updated width */
    height: 16px;
    /* Updated height to maintain aspect ratio */
    border: 2px solid var(--text-light);
    /* Adjusted border size for smaller spinner */
    border-top-color: var(--color-light);
    /* Spinning part color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    /* Animation definition */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0000004D;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999999;
    inset: 0;
}

.popup-box {
    background: var(--color-white);
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    position: relative;
    border: 0.5px solid var(--color-border);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}

.popup-text strong {
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 8px;
}

.popup-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.popup-text p {
    color: var(--text-light);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}

.popup-actions {
    display: flex;
    padding: 16px 24px;
    justify-content: space-between;
    border-top: 0.5px solid var(--color-border)
}

.btn-dismiss {
    background: var(--color-white);
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-light);
    border: 1px solid var(--color-border);
    transition: all 200ms;
    &:hover {
        cursor: pointer;
        background-color: var(--color-light-bg);
    }
}

.btn-retry {
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 200ms;
    &:hover {
        cursor: pointer;
        opacity: 0.8;
    }
}



.synonyms.synonyms-orange {
    color: var(--change-color);
}
