@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;700&display=swap');
:root {
    --error_color: #f83f3f;
    --ok_color: #4BA759;
    --background-default: #F3F4F6;
    --color-default: #323232;
    --element-background-default: #219B8C;
    --transition-duration-global: 2s;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: #B8B8B8;
}

*::-webkit-scrollbar-track {
    background: none;
}

*::-webkit-scrollbar-thumb {
    background: #525252;
    opacity: 0.5;
    border-radius: 2px;
    margin: auto;
}

*::-webkit-scrollbar-thumb:hover {
    background: #219B8C;
}

*::-webkit-scrollbar-corner {
    background: #B8B8B8;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-default);
    color: var(--color-default);
    align-content: center;
    height: 100vh;
    width: 100vw;
    margin: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    /* transition: background-color var(--transition-duration-global); */
    /* background-color: #219b8d10; */
    overflow: hidden;
}

body::-webkit-scrollbar {
    display: none;
}

label {
    display: block;
}

h1,
h2,
h3,
h4 {
    margin: 0;
}

a {
    color: var(--element-background-default);
}

.g_startContainer {
    height: 100vh;
    margin-left: 75px;
}

.g_startMain {
    display: block;
    width: 100%;
    height: 100vh;
    margin: 0px auto;
    box-sizing: border-box;
    padding: 0px 16px;
}

.g_startMainHeadline {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
    margin-top: 2.5vh;
}


/* Permission */

.l_permission {
    text-align: center;
}

.l_remove_permission_button {
    position: relative;
    right: 0px;
    min-width: 15%;
    color: whitesmoke;
    background-color: rgb(128, 78, 78);
    height: 100%;
    float: right;
    padding-left: 5px;
}

.l_remove_permission_button:hover {
    background-color: rgb(188, 0, 0);
}

.l_permission_outer {
    display: inline-block;
    min-width: 17%;
    width: fit-content;
    border-radius: 15px;
    color: whitesmoke;
    overflow: hidden;
    max-height: 2.5vh;
    cursor: pointer;
    transition: 0.2s;
    margin: 4px;
    padding: 4px;
}

#l_permissions_container .l_permission_outer {
    background-color: #219B8C;
}

#l_selected_permissions .l_permission_outer {
    background-color: darkgray;
}

.l_permission_outer:hover {
    transform: scale(102%);
}

#l_permissions_container .l_remove_permission_button {
    display: none;
}

#l_selected_permissions .l_remove_permission_button {
    display: inline-block;
}

.l_shown_permission {
    background-color: darkgray;
    display: inline-block;
    min-width: 17%;
    width: fit-content;
    border-radius: 15px;
    color: whitesmoke;
    overflow: hidden;
    height: 2.5vh;
    cursor: pointer;
    transition: 0.2s;
    margin: 4px;
    text-align: center;
    height: 100%;
    padding: 4px;
}


/* ---Permission--- */


/* Tabs navigation */

.l_tabs {
    width: fit-content;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    flex-direction: row;
    margin-bottom: 8px;
}

.l_tab {
    padding: 10px;
    background-color: lightgray;
    cursor: pointer;
    transition: .5s;
    border-radius: 4px;
}

.l_tab:hover {
    background-color: #dedede !important;
}

.l_tab.active:hover {
    background-color: darkgray !important;
    cursor: auto;
}

.l_tab-content {
    height: fit-content;
    -ms-overflow-style: none;
}

.l_tab-content .l_content {
    display: none;
}

.l_tab-content .l_content.active {
    display: block;
    background-color: transparent !important;
}

.active {
    background-color: darkgray !important;
}


/* ---Tabs navigation--- */

.g_siteHeadline {
    position: relative;
    font-size: 32px;
    color: var(--element-background-default);
}

.g_extendedHeadline {
    display: flex;
    align-items: flex-end;
}

.g_btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: bold;
    padding: 8px 16px;
    background-color: #219B8C;
    color: white;
    border: 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.g_btn span {
    margin-right: 4px;
}

.g_btn:hover {
    transition: all 0.25s;
    background-color: #a7a7a7;
}

.g_btnYellow {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: bold;
    padding: 8px 16px;
    background-color: #FFB800;
    color: white;
    border: 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.g_btnYellow span {
    margin-right: 4px;
}

.g_btnYellow:hover {
    transition: all 0.25s;
    background-color: #a7a7a7;
}

.g_addBtn {
    font-family: 'Montserrat', sans-serif;
    height: fit-content;
    width: fit-content;
    padding: 8px 16px;
    font-size: 18px;
    border: 0;
    background-color: var(--ok_color);
    color: var(--background-default);
    border-radius: 5px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    cursor: pointer;
}

.g_addBtn svg {
    margin: auto;
}

.g_addBtn:hover {
    transition: all 0.25s;
    background-color: #a7a7a7;
}

.g_full_flex {
    display: flex;
    width: 100% !important;
    height: fit-content !important;
    padding-bottom: 2.5vh;
    justify-content: space-between !important;
}

.g_main_content::-webkit-scrollbar {
    display: none;
}

.g_input {
    width: 100%;
    border: none;
    padding: 8px 8px 8px 8px;
    box-sizing: border-box;
    border-radius: 5px;
    font-size: medium;
    font-weight: lighter;
    font-family: Arial, Helvetica, sans-serif;
}

.g_input::placeholder {
    font-family: Arial, Helvetica, sans-serif;
}

.g_input:disabled,
.g_input[disabled] {
    color: whitesmoke;
    background-color: #484848;
}

.g_textarea {
    height: 10vh;
    width: 100%;
    background-color: var(--background-default);
    color: var(--color-default);
    border-radius: 5px;
    padding: 8px 16px 8px 16px;
}

.g_h1 {
    font-size: larger;
    padding-top: 2vh;
    color: var(--element-background-default);
}

.g_headline_site {
    width: fit-content;
    font-size: xx-large;
    padding-top: 3vh;
}

#search_bar_search_icon {
    width: 32px;
    object-fit: fill;
}

.g_default_button {
    position: relative;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 8px;
    padding-bottom: 8px;
    height: fit-content;
    min-height: 34px;
    background-color: var(--element-background-default);
    text-decoration: none;
    outline: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #f9f9f9;
    transition: 0.25s;
}

.g_default_button:hover {
    transform: scale(1.1);
    opacity: 0.75;
}

.g_delete_button {
    position: relative;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 8px;
    padding-bottom: 8px;
    height: fit-content;
    background-color: var(--error_color);
    text-decoration: none;
    outline: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #f9f9f9;
    transition: 0.25s;
}

.g_delete_button:hover {
    transform: scale(1.1);
    opacity: 0.75;
}

.g_cancel_button {
    position: relative;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 8px;
    padding-bottom: 8px;
    height: fit-content;
    background-color: var(--color-default);
    text-decoration: none;
    outline: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #f9f9f9;
}

.g_cancel_button:hover {
    transform: scale(1.1);
    opacity: 0.75;
}

.g_edit_button {
    margin-left: 8px;
    margin-right: 8px;
    margin-bottom: 8px;
    float: right;
}

.g_continue_button {
    background-color: #2ECC71 !important;
}

.g_default_button_group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.g_task_button_group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between;
}

.g_default_button_group_wrap {
    display: flex;
    align-items: center;
    border-radius: 4px;
    flex-wrap: wrap;
    gap: 6px;
}

.g_default_button_group .g_default_button_start {
    display: inline-flex;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    align-items: center;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    border: 1px solid #CBD5E1;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #1E293B;
    cursor: pointer;
    background-color: #ffffff;
    white-space: nowrap;
}

.g_default_button_middle {
    display: inline-flex;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    align-items: center;
    border: 1px solid #CBD5E1;
    border-right: 0px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #1E293B;
    cursor: pointer;
    background-color: #ffffff;
    white-space: nowrap;
}

.g_default_button_group .g_default_button_end {
    display: inline-flex;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    align-items: center;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border: 1px solid #CBD5E1;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #1E293B;
    cursor: pointer;
    background-color: #ffffff;
    white-space: nowrap;
}

.g_default_button_group button:hover,
.g_default_button_single button:hover {
    color: #219B8C;
    background-color: #F1F5F9;
}

.g_default_button_group_delete:hover {
    color: #CD5C5C !important;
    background-color: #F1F5F9;
}

.g_default_button_single {
    display: inline-flex;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    align-items: center;
    border-radius: 0.5rem;
    border: 1px solid #CBD5E1;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #1E293B;
    cursor: pointer;
    background-color: #ffffff;
}

.g_task_button_single {
    display: inline-flex;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    align-items: center;
    border-radius: 0.5rem;
    border: 1px solid #CBD5E1;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #1E293B;
    cursor: pointer;
    background-color: #ffffff;
}

.g_task_button_group button:hover,
.g_task_button_single button:hover {
    color: #219B8C;
    background-color: #F1F5F9;
}

.g_shadow_01 {
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
}

.g_shadow_02 {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
}

.g_input_error {
    border: solid var(--error_color) 1px !important;
    background-color: var(--error_color) !important;
    color: #f9f9f9 !important;
}

.g_input_error::placeholder {
    color: #e1e0e0 !important;
}

.g_error_label {
    display: none;
    font-size: small;
    font-weight: bolder;
    color: var(--error_color);
}

.g_table {
    color: var(--color-default);
}

.g_flex_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: space-around;
    gap: 16px;
    overflow: scroll;
    padding-bottom: 32px;
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.g_flex_container::-webkit-scrollbar {
    display: none;
}

.g_message_box {
    background-color: var(--color-default);
    border-radius: 15px;
    width: fit-content;
    max-width: 100%;
    height: fit-content;
    color: var(--background-default);
    padding: 2% 4% 2% 4%;
}

.g_message_box_checked {
    background-color: var(--ok_color) !important;
    color: var(--color-default) !important;
    transition: 1s;
}

.g_element_editor_popup_background {
    display: none;
    position: fixed;
    backdrop-filter: blur(1px);
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    animation-name: blur_background_popup;
    animation-duration: 2s;
    z-index: 100;
}

.g_element_editor_popup {
    position: fixed;
    max-height: 90vh;
    width: 100vw;
    background-color: #545454;
    opacity: 1;
    transition: 1s;
    z-index: 91;
    overflow-y: scroll;
    -ms-overflow-style: none;
    -webkit-box-shadow: 0px -7px 15px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0px -7px 15px 3px rgba(0, 0, 0, 0.5);
    bottom: -102%;
    padding-bottom: 1%;
    min-height: 20vh;
}

.g_element_editor_popup::-webkit-scrollbar {
    display: none;
}

.g_element_editor_popup input {
    min-width: 70% !important;
}

#g_element_editor_popup_button_container {
    margin-top: 1%;
    margin-bottom: 64px;
}

.g_element_editor_elements div {
    width: fit-content;
    height: fit-content;
    display: block;
    margin-bottom: 8px;
    margin-right: 16px;
}

.g_link_status {
    width: 42px;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    opacity: 0.5;
}

.g_label {
    color: var(--background-default);
    margin-bottom: 3px;
    font-size: small;
}

.g_hidden {
    display: none !important;
    visibility: hidden !important;
}

.l_closeButton img {
    position: relative;
    margin: auto;
    width: 16px;
    height: 16px;
    filter: invert(100%);
    display: inline-block;
}


/* DownDropper */

.l_chosenElement {
    background-color: rgb(71 70 70 / 40%);
    border-radius: 10px;
    margin: 4px;
    padding: 4px;
    position: relative;
    color: white;
    font-size: 12px;
    max-width: 33%;
    min-width: 40px;
    overflow: hidden;
    height: fit-content;
    transition: 1s;
}

.l_chosenElement:hover {
    transform: scale(105%);
}

.l_closeButton {
    float: right;
    position: absolute;
    top: 0px;
    right: 0px;
    cursor: pointer;
    border-radius: 50px;
    background-color: red;
    color: white;
    width: 20px;
    height: 20px;
    font-size: 16px;
    text-align: center;
    background-image: url("../../../../global/media/icons/close.svg");
    border: none;
}


/* ---DownDropper--- */

@keyframes grow_popup {
    10% {
        height: 0vh;
    }
    100% {
        height: fit-content;
    }
}

@keyframes blur_background_popup {
    from {
        backdrop-filter: blur(0px);
        background-color: rgba(0, 0, 0, 0);
    }
    to {
        backdrop-filter: blur(4px);
        background-color: rgba(0, 0, 0, 0.8);
    }
}

@media only screen and (max-width: 850px) {
    body {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        margin: 0px;
    }
    .g_main_content {
        position: relative;
        margin-left: 16px;
        margin-right: 16px;
        padding-left: 0px;
        padding-right: 0px;
        width: calc(100% - 32px);
        height: calc(90% - 32px);
        top: 0px;
        padding-bottom: 16px;
        overflow: scroll;
        -ms-overflow-style: none;
        scrollbar-width: none;
        overflow-x: hidden;
        z-index: 5;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    .g_flex_container {
        padding-left: 0px;
        padding-right: 0px;
    }
    .g_headline_site {
        padding-left: 0px;
    }
    .g_input {
        width: 80vw;
    }
}

input[type="range"] {
    cursor: pointer;
}

.g_modalBottom {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: none;
    background-color: #282828;
    opacity: 1;
    transition: 1s;
    z-index: 51;
    overflow: hidden;
    -webkit-box-shadow: 0px -7px 15px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0px -7px 15px 3px rgba(0, 0, 0, 0.5);
}

.g_modalBottomContainer {
    width: 100%;
    box-sizing: border-box;
    padding: 0px 64px 0px 128px;
    color: white;
    height: 100%;
}

.g_modalBottomHeadline {
    margin-top: 64px;
    padding: 16px 0px;
    justify-content: space-between !important;
}

#g_modalBottomActions {
    margin-top: 16px;
}

.g_modalBottomInputsArea {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px 8px;
    margin-bottom: 8px;
}

.g_modalBottomInputsArea .gridSpan3 {
    grid-column: span 3
}

.g_modalBottomInputsArea .gridSpan4 {
    grid-column: span 4
}

.g_modalBottomInputsArea div {
    width: 100%;
}

.g_modalBottomFlex {
    display: flex;
    gap: 8px;
}

.g_inputDisabled {
    color: white;
    background-color: #B3B3B3;
    border: 1px solid #B3B3B3;
}

.toggle-checkbox input[type="checkbox"] {
    position: relative;
    width: 60px;
    height: 25px;
    -webkit-appearance: none;
    background: #c6c6c6;
    outline: none;
    border-radius: 20px;
    box-shadow: inset 0 0 5px rgba(255, 0, 0, 0.2);
    transition: 0.7s;
    cursor: pointer;
}

.toggle-checkbox input:checked[type="checkbox"] {
    background: #219B8C;
}

.toggle-checkbox input[type="checkbox"]:before {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 20px;
    top: 0;
    left: 0;
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: .5s;
}

.toggle-checkbox input:checked[type="checkbox"]:before {
    left: 40px;
}

.g_tags_container {
    width: 100%;
    height: 150px;
    max-height: 200px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.g_tagItem_container {
    width: 100%;
    height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    box-sizing: border-box;
    background-color: white;
    color: black;
    border-radius: 5px;
}

.g_tagItem_container p {
    padding: 2px;
    margin: 0px;
}

.g_addBtnTags {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: bold;
    padding: 2px 8px;
    margin: 0px 0px 0px 16px;
    background-color: #219B8C;
    color: white;
    border: 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.g_addBtnTags:hover {
    transition: all 0.25s;
    background-color: #a7a7a7;
}

.g_deleteBtnTags {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: bold;
    padding: 2px 8px;
    margin: 0px 0px 0px 16px;
    background-color: #E74C3C;
    color: white;
    border: 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.g_deleteBtnTags:hover {
    transition: all 0.25s;
    background-color: #a7a7a7;
}

.g_missing_input:not(:has(input)),
.g_missing_input input {
    background-Color: #f83f3f;
    color: white;
}