@font-face {
    font-family: 'PaneoMontserrat';
    src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
}
@font-face {
    font-family: 'PaneoOpenSans';
    src: url('../fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
}
@font-face {
    font-family: 'PaneoCIAnek';
    src: url('../fonts/AnekDevanagari-VariableFont_wdth,wght.ttf') format('truetype');
}

/* define global variables for color etc for light- and dark-mode */
:root {
    --bg_dark: hsl(0, 0%, 94%);
    --bg_medium: hsl(0, 0%, 98%);
    --bg_light: hsl(0, 0%, 100%);
    --bg: var(--bg_light);
    --bg_header: var(--bg_light);

    --text_normal: hsl(0, 0%, 5%);
    --text_muted: hsl(0, 0%, 35%);
    --text_on_dark: hsl(0, 0%, 95%);
    --text_on_dark_muted: hsl(0, 0%, 85%);

    --success: hsl(131, 79%, 40%);
    --warning: hsl(61, 88%, 40%);
    --error: hsl(0, 88%, 40%);

    --accent_light: hsl(206, 76%, 80%);
    --accent_medium: hsl(210, 56%, 50%);
    --accent_dark: hsl(209, 68%, 30%);
    --accent_medium_balanced: hsl(210, 56%, 50%);
    --brightness_filter: 1;

    --inactive: hsl(0, 0%, 80%);
    --gray: hsl(0, 0%, 32%);

    --comment_node: hsl(47, 100%, 90%);

    --overlay: hsla(0, 0%, 0%, 0.25);
    --menu_transition: right 300ms ease;

    --hard_shadow: 1px 2px 2px hsla(0, 0%, 0%, 0.07);
    --soft_shadow: 2px 4px 4px hsla(0, 0%, 0%, 0.18);
    --thumb_overlay: rgba(255, 255, 255, 0.7);
    --thumb_overlay_hovered: hsla(206, 78%, 40%, 0.7);
}
body.dark{
    --bg_dark: hsl(0,0%,15%);
    --bg_medium: hsl(0,0%,20%);
    --bg_light: hsl(0,0%,30%);
    --bg: var(--bg_dark);
    --bg_header: var(--bg_medium);

    --text_normal: hsl(0,0%,95%);
    --text_muted: hsl(0,0%,80%);
    --text_on_dark: hsl(0,0%,95%);

    --success: hsl(131, 65%, 40%);
    --warning: hsl(61, 65%, 40%);
    --error: hsl(0, 65%, 40%);

    --accent_light: hsl(206, 64%, 44%);
    --accent_medium: hsl(210.7, 58.1%, 29%);
    --accent_dark: hsl(211, 72%, 15%);
    --accent_medium_balanced: hsl(210, 56%, 50%);

    --inactive: hsl(0, 0%, 22%);
    --gray: hsl(0, 0%, 29%);
    --comment_node: hsl(33, 73%, 35%);

    --brightness_filter: 2.7;

    --hard_shadow: 1px 2px 2px hsla(0, 0%, 0%, 0.45);
    --soft_shadow: 2px 4px 4px hsla(0, 0%, 0%, 0.45);
    --thumb_overlay: rgba(0, 0, 0, 0.7);
    --thumb_overlay_hovered: hsla(206, 78%, 40%, 0.7);
}

/* Status Indicators */
.status-indicator {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}
.status-indicator.online { background-color: var(--success); }
.status-indicator.editor-only { 
    background-color: transparent; 
    border: 1px solid var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.status-indicator.editor-only::before {
    content: "\f303"; /* fa-pencil-alt */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 8px;
    color: var(--success);
}
.status-indicator.player-only {
    background-color: var(--success);
    border: 1px solid var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.status-indicator.player-only::before {
    content: "\f04b"; /* fa-play */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 7px;
    color: white;
    margin-left: 1px;
}
.status-indicator.both { 
    background: linear-gradient(135deg, var(--success) 50%, transparent 50%);
    border: 1px solid var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.status-indicator.offline { background-color: var(--error); }
.status-indicator.no-connection { background-color: var(--warning); }

/* Download Status Styles */
.download-status-tag {
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
}
.download-status-tag.high { background-color: var(--success); color: white; }
.download-status-tag.mid { background-color: var(--warning); color: white; }
.download-status-tag.low { background-color: var(--accent_medium); color: white; }
.download-status-tag.downloaded { background-color: var(--success); color: white; }
.download-status-tag.not-loaded { background-color: var(--error); color: white; }

/* Status Tooltip (used for online user details) */
.user-status-cell {
    position: relative;
}
.status-tooltip {
    visibility: hidden;
    width: 250px;
    background-color: var(--bg_light);
    color: var(--text_normal);
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85em;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: var(--soft_shadow);
    border: 1px solid var(--accent_medium);
}
.status-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--accent_medium) transparent transparent transparent;
}
.user-status-cell:hover .status-tooltip {
    visibility: visible;
    opacity: 1;
}
.tooltip-item {
    border-bottom: 1px solid var(--inactive);
    padding-bottom: 4px;
    margin-bottom: 4px;
}
.tooltip-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.tooltip-label {
    font-weight: bold;
    color: var(--text_muted);
}

/* =========== GENERAL SETTINGS ============= */
html, body {
    overscroll-behavior: none;
}
body {
    background-color: var(--bg_dark);
    color: var(--text_normal);
    margin: 0;
    font-family: 'PaneoOpenSans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input, select, textarea, button, a {
    font-family: inherit;
    font-size: inherit;
    color: var(--text_normal);
}
button, a, select, input[type="submit"]{
    cursor: pointer;
}

.fa{
    color: var(--text_muted); /* use muted fa-icon color by default */
}

input, select, textarea {
    background-color: color-mix(in hsl, var(--bg_medium), var(--bg_light));
    color: var(--text_muted);
    border: 1px solid color-mix(in hsl, var(--text_muted) 50%, transparent);
    border-radius: 3px;
}
:is(input, select, textarea):focus {
    outline: none;
    background-color: var(--bg_light);
    color: var(--text_normal);
    border: 2px solid var(--accent_light);
}
:is(input, select):disabled {
    background-color: var(--inactive);
    border: 1px solid color-mix(in hsl, var(--text_muted) 20%, transparent);
}

/* hide clickable arrows in number inputs */
input[type=number] { /* on firefox */
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0;
}
input[type=number]::-webkit-inner-spin-button, /* on chrome */
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ================= BUTTONS ================ */
.primarybutton {
    background-color: var(--accent_dark);
    font-weight: 600; /* semi bold */
    border: none;
    color: var(--text_on_dark);
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    margin: 5px 0;
}
.secondarybutton {
    background-color: var(--gray);
    font-weight: 600; /* semi bold */
    border: none;
    color: var(--text_on_dark);
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    margin: 5px 0;
}
.primarybutton:has(> i), .secondarybutton:has(> i) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
/* override margin for this specific button so it's pushed to the right */
#createNewShareLinkBtn{
    margin-left: auto;
}
.primarybutton .fa, .secondarybutton .fa {
    color: var(--text_on_dark);
}

.primarybutton_small, .secondarybutton_small {
    padding: 8px 16px;
    border-radius: 3px;
}

.primarybutton_extra_small, .secondarybutton_extra_small {
    padding: 3px 5px;
    font-size: 0.875em;
    border-radius: 3px;
    margin: 2px 0;
}

.primarybutton_narrow {
    padding: 3px 5px;
    font-size: 0.875em;
    border-radius: 3px;
    margin: 2px 0;
    height: 40px;
}

.primarybutton:enabled:hover, .secondarybutton:enabled:hover {
    box-shadow: inset 0 0 0 1px var(--accent_dark);
    background-color: var(--accent_medium);
    color: var(--text_on_dark);
}
.secondarybutton:enabled:hover {
    box-shadow: inset 0 0 0 1px var(--gray);
    background-color: var(--text_muted);
}

.primarybutton:disabled, .secondarybutton:disabled {
    background-color: var(--inactive);
    cursor: not-allowed;
}

/* only used on profile */
.primarybutton_red {
    background-color: var(--error);
    color: var(--text_on_dark_muted);
}
/* TODO: colors... */
.primarybutton_red:disabled {
    background-color: var(--inactive);
    cursor: not-allowed;
    box-shadow: none;
    filter: none;
}
.primarybutton_red:enabled:hover {
    background-color: var(--error);
    filter: brightness(150%);
    color: var(--text_on_dark);
    box-shadow: inset 0 0 0 1px var(--error);
}

/* TODO: global button style: at least border: none, border-radius: 3px */
.squareIconBtn, .squareDeleteBtn, .addBtn {
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 3px;
    background-color: var(--accent_dark);
    color: var(--text_on_dark);
}
:is(.squareIconBtn, .squareDeleteBtn, .addBtn) .fa {
    color: var(--text_on_dark);
}
.squareDeleteBtn {
    background: var(--primary-color);
    color: var(--text_on_dark_muted);
}
.addBtn {
    font-size: 20px;
    font-weight: bold;
    height: 40px;
    width: 40px;
}

:is(.squareIconBtn, .addBtn):hover {
    background-color: var(--accent_medium);
}
.squareDeleteBtn:hover {
    background: var(--error);
    filter: brightness(150%);
}

/* TODO: make a general cancel button */
#cancelNewLinkBtn{
    background-color: var(--gray);
    color: var(--text_on_dark_muted);
}
#cancelNewLinkBtn:hover {
    background-color: color-mix(in hsl, var(--gray) 50%, transparent);
    color: var(--text_on_dark);
}

/* TODO: move this somewhere more appropriate (and find where that might be...) */
/* used in modalloginbox, and profile */
.basic_input {
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    box-sizing: border-box; /* important so that the margin gets added on the inside and doesn't push the input out of its parent container */
}
/* only used on profile */
.basic_input_m {
    padding: 12px 15px;
    margin: 8px 0;
    width: 60%;
}
.modal_setting_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--inactive);
    transition: background-color 0.2s;
    cursor: pointer;
    border-radius: 4px;
}

.modal_setting_row:hover {
    background-color: var(--bg_dark);
}

body.dark .modal_setting_row:hover {
    background-color: var(--bg_light);
}

.modal_setting_row:last-child {
    border-bottom: none;
}

.project_settings_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.project_settings_column h4 {
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--accent_medium);
    color: var(--text_normal);
}

@media (max-width: 600px) {
    .project_settings_grid {
        grid-template-columns: 1fr;
    }
}

.modal_checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.project_settings_title_container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.project_settings_name {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text_normal);
}

.project_settings_name_input {
    flex: 1;
    padding: 5px 10px;
    font-size: 1.1em;
    border: 1px solid var(--accent_medium);
    border-radius: 4px;
    background: var(--bg_light);
    color: var(--text_normal);
}

.project_settings_rename_btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text_muted);
    font-size: 1.1em;
    padding: 5px;
    transition: color 0.2s;
}

.project_settings_rename_btn:hover {
    color: var(--accent_medium);
}

.project_thumbnail_container {
    width: 200px;
    height: 120px;
    border: 2px dashed var(--inactive);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background-color: var(--bg_light);
    transition: border-color 0.2s, background-color 0.2s;
}

.project_thumbnail_container:hover {
    border-color: var(--accent_medium);
    background-color: var(--bg_dark);
}

.project_thumbnail_placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text_muted);
}

.project_thumbnail_placeholder i {
    font-size: 2em;
}

.project_thumbnail_preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove_thumbnail_btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.remove_thumbnail_btn:hover {
    background: var(--error);
}

.projectSettingsIcon {
    cursor: pointer;
    margin-right: 8px;
    color: var(--text_muted);
}

.projectSettingsIcon:hover {
    color: var(--accent_medium);
}

.confirmModal {
    display:none;
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    background: var(--bg_medium);
    color: var(--text_muted);
    padding:20px;
    border-radius:10px;
    box-shadow:0 0 20px rgba(0,0,0,0.2);
    z-index:10001;
    min-width:300px;
}
.confirmModalBtnBox {
    text-align:right;
}
#deleteModalOverlay {
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    background:rgba(0,0,0,0.5);
    z-index:10000;
}
/* probably only used on statistics.php */
.hidden {
    display: none !important;
}

/* used in new project, edit, share modal and orga page*/
.modal_input_label {
    margin: 20px 0 5px 0;
    font-weight: 500;
}
.modal_input {
    font-size: 16pt;
    width: 100%;
    min-width: 230px;
    height: 40px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* search field and + button to add user to orga/classroom/share-table... */
.addUserDiv {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}
.addUserDiv input {
}
.modal_search_field {
    width: 250px;
    box-sizing: border-box;
}
/* currently only used in share modal, but could be useful in classrooms/orga page as well */
.search-wrapper {
    position: relative; /* establishes positioning context for suggestions */
    height: 100%;
    display: inline-block; /* keep wrapper tight around input */
}

.search_suggestions {
    position: absolute;
    top: 100%;         /* directly below the input */
    left: 0;           /* aligned with input’s left edge */
    width: 100%;       /* match input width */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2),
    0 6px 20px rgba(0,0,0,0.19);
    display: none;     /* shown when needed */
    background: white; /* so suggestions are visible */
    z-index: 10;       /* keep it above other elements */
}

.modal_search_field:focus + .search_suggestions {
    display: block;
}

.search_suggestions:hover, .search_suggestions:focus, .search_suggestions:active {
    display: block;
}

.searchResultEntry {
    background: var(--bg_medium);
    color: var(--text_normal);
    cursor: pointer;
    width: 234px;
    padding: 10px 15px;
    border-style: solid;
    border-width: 0 0 1px 0;
    border-color: #666;
    display: block;
}

.searchResultEntry > i {
    margin-right: 5px;
}

.searchResultEntry:hover {
    background: var(--accent_light);
}

/*** - HEADER - ***/
header{
    position: fixed; /* header always stays on top */
    width: 100%;
    padding: 6px 20px;
    background-color: var(--bg_header);
    box-shadow: 0 4px 8px var(--overlay);
    z-index: 200;
    box-sizing: border-box; /* so that padding is applied 'inside' */
    font-family: 'PaneoMontserrat', sans-serif;
}

#app_version {
    position: absolute;
    left: 85px;
    font-size: 0.755em;
    top: 48px;
    font-weight: 200;
    font-family: 'PaneoCIAnek', sans-serif;
}

.header_wrapper{
    height: 53px;
    width: min(1900px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.header_wrapper button,
#header_centerMenu a,
#header_rightMenu a,
#header_rightMenu select{
    display: flex;
    gap: 7px;
    align-items: center;
    border: none;
    border-radius: 8px;
    background-color: var(--bg_header);
    color: var(--text_normal);
    padding: 18px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    font-weight: 400;
    box-sizing: border-box;
    max-height: calc(2*18px + 1.2em); /* make sure height doesn't get too large if username breaks */
}

.header_wrapper button:disabled{
    /* background-color: var(--bg_medium); */
    cursor: default;
}

.header_wrapper button:disabled:hover{
    background-color: unset;
}

#header_rightMenu select{
    -webkit-appearance: none;
    -moz-appearance: none;
}

.header_wrapper button:hover,
#header_centerMenu a:hover,
#header_rightMenu a:hover,
#header_rightMenu select:hover{
    background-color: var(--accent_medium);
}

.header_wrapper .fa{
    font-size: 1.2em;
    color: var(--text_muted);
}

.header_wrapper :is(a, button):hover .fa{
    color: var(--text_normal);
}

.header_logo{
    display: flex;
    align-items: center;
    height: auto;
    max-height: 40px;
}

#header_darkModeToggle .fa:last-of-type{
    display: none;
}
.dark #header_darkModeToggle .fa:last-of-type{
    display: block;
}
.dark #header_darkModeToggle .fa:first-of-type{
    display: none;
}

#header_centerMenu{
    display: flex;
}
#header_rightMenu{
    display: flex;
    margin-left: auto;
}
#header_rightMenu .navbar_text{
    display: none;
}
#header_userSubMenuBtn .navbar_text{
    display: block;
}
#header_openMediaBtns{
    display: none;
}
#header_userSubMenuBtn.clicked{
    background-color: var(--accent_medium);
}
#header_userSubMenu{
    display: flex;
    flex-direction: column;
    position: fixed;
    /* padding of header + button + size of icon in button */
    /* top: calc(6px * 2 + 18px * 2 + 1.2rem); */
    top: 65px;
    right: -100%;
    /*width: min(10em, 100%);*/
    background-color: var(--bg_light);
    box-shadow: -3px 3px 8px var(--overlay);
    z-index: 99;
    transition: var(--menu_transition);
}
#header_userSubMenu.show{
    right: 0;
}

#header_mediaSubMenuContainer {
    position: relative;
    display: flex;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

#header_mediaSubMenuContainer:hover #header_openMediaBtns {
    display: flex;
    right: 0;
}

#header_mediaSubMenuBtn .fa-caret-down {
    font-size: 0.8em;
    margin-left: 2px;
}

#header_mediaSubMenuBtn .fa-folder {
    color: var(--text_muted);
}

#header_mediaSubMenuContainer:hover #header_mediaSubMenuBtn .fa {
    color: var(--text_normal);
}

.header_subMenu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 58px;
    background-color: var(--bg_light);
    box-shadow: -3px 3px 8px var(--overlay);
    z-index: 99;
    min-width: 200px;
    left: 0;
}

#header_userSubMenu a, .header_subMenu button {
    border-radius: 0;
    width: 100%;
}

#header_userSubMenuOverlay, #header_mobileMenuOverlay{
    background-color: var(--overlay);
    position: fixed;
    display: none;
    z-index: 98; /* just below the submenu, but above everything else (except for header) */
    inset: 0;
}
#header_mobileMenuOverlay{
    z-index: 96;
}
#header_userSubMenu.show ~ #header_userSubMenuOverlay{
    display: block;
}

#header_mobileMenuBtn{
    display: none;
}
#header_rightMenu.show ~ #header_mobileMenuOverlay{
    display: block;
}

/*** - ALERT used in editor and classroom - ***/
#alertBox {
    top: 50px;
    position: fixed;
    display: none;
    height: auto;
    min-height: 25px;
    max-width: 400px;
    word-wrap: break-word;
    white-space: normal;
    z-index: 60;
}

/*** - TABLES - ***/
.styled-table {
    border-collapse: collapse;
    margin: 5px 0 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    width: 100%;
}

.styled-table thead tr {
    background-color: var(--accent_dark);
    color: var(--text_on_dark);
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 8px;
}

.styled-table-xl th,
.styled-table-xl td {
    border-collapse: collapse;
    margin: 5px 0 25px 0;
    font-size: 0.9em;
    min-width: 50px;
}

.styled-table .icon_col {
    padding-right: 0;
}

.styled-table tbody tr {
    /*border-bottom: 1px solid var(--text_muted);*/
    background-color: color-mix(in hsl, var(--bg_medium), var(--bg_light) 70%);
    cursor: pointer;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: var(--bg_light);
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--accent_medium);
}

.styled-table tbody tr.active-row {
    font-weight: bold;
    color: var(--text_normal);
    background-color: var(--accent_medium);
}

.styled-table select {
    border: none;
    padding: 5px;
    margin: 0;
    font-size: 14px;
    background: transparent;
    cursor: pointer;
    color: var(--text_normal);
}

.styled-table select:hover {
    box-shadow: inset 0 0 0 1px var(--accent_light);
}

.styled-table span {
    padding: 5px;
}

.modal_table {
    box-shadow: none;
}

/* ====================================================== */
/* TOOLTIPS - so far only used in header
TODO: check if we can use this for other tooltips as well
 */
.tooltip_element {
    display: inline-block;
    position: relative;
    cursor: pointer;
}
.tooltip_element:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg_light);
    color: var(--text_normal);
    border: 1px solid var(--accent_medium);
    border-radius: 2px;
    padding: 8px;
    box-shadow: 0 4px 8px var(--overlay);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* more complex old tooltip...
   check if this can be replaced by the one above...
   not sure because of the position relative the new one needs...
 */

/* Tooltip text */
.inline-tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    font-size: 12px;
    visibility: hidden;
    width: 120px;
    background-color: var(--bg_light);
    color: var(--text_normal);
    text-align: center;
    padding: 5px 4px;
    border-radius: 6px;
    border: 1px solid var(--accent_medium);

    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;
    top: -16px;
    left: 122%;
    pointer-events: none;
    box-shadow: var(--soft_shadow);
}

.tooltip .tooltiptext.tooltip_position_right_close {
    left: 90%;
}

/* This creates the little black triangle */
.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    top: 70%;
    right: 100%; /* To the left of the tooltip */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent var(--accent_medium) transparent transparent;
}

.tooltip .tooltiparrow_upperleft::after {
    top: 30%;
    right: 100%;
}

.tooltip .tooltiparrow_upperright::after {
    top: 70%;
    right: 0;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
}


@media only screen and (max-width: 1350px){
    .navbar_text,
    #header_userSubMenuBtn .navbar_text{
        display: none;
    }
}

@media only screen and (max-width: 820px){
    #header_rightMenu{
        position: fixed;
        /* padding of header + button + size of text in button */
        /* top: calc(6px * 2 + 18px * 2 + 1.2rem); */
        top: 65px;
        right: -100%;
        display: flex;
        flex-direction: column-reverse;
        width: min(200px, 100%);
        z-index: 97;
        transition: var(--menu_transition);
        box-shadow: -3px 3px 8px var(--overlay);
    }
    #header_rightMenu.show{
        right: 0;
    }
    #header_rightMenu .navbar_text{
        display: block;
    }
    #header_rightMenu button,
    #header_rightMenu a,
    #header_rightMenu select{
        border-radius: 0;
    }
    #header_mobileMenuBtn{
        display: block;
        margin-left: auto;
    }
    #header_mobileMenuBtn.clicked{
        background-color: var(--accent_medium);
    }
    #header_rightMenu button#read_only{
        display: none;
    }
}

@media only screen and (max-width: 680px){
    .header_logo{
        max-height: 30px;
    }
    #header_rightMenu{
        box-shadow: none;
        /* box-shadow: -3px 0 8px var(--overlay); */
    }
    #header_openMediaBtns{
        position: fixed;
        top: 345px; /* Adjust if needed */
        right: -100%;
        z-index: 97;
        display: none;
        flex-direction: column;
        width: min(200px, 100%);
        transition: var(--menu_transition);
        box-shadow: 0 3px 5px var(--overlay);
    }
    #header_mediaSubMenuBtn {
        display: none;
    }
    #header_openMediaBtns.show{
        display: flex;
        right: 0;
    }
    #header_openMediaBtns .navbar_text{
        display: block;
    }
    #header_openMediaBtns button{
        border-radius: 0;
    }
    #header_openMediaBtns > button:first-child{
        border-top: 1px dashed var(--accent_medium);
    }
    #app_version {
        left: 55px;
        top: 48px;
    }
}

@media only screen and (max-width: 420px){
    .header_logo{
        max-height: 25px;
    }
    .header_wrapper{
        gap: 8px;
    }
    #app_version {
        left: 35px;
        top: 45px;
        font-size: 0.5em;
    }
}
.sort-icon {
	margin-left: 8px;
	font-size: 0.8em;
	color: var(--text_muted);
}

.sortable:hover .sort-icon {
	color: var(--text_normal);
}

.search-container {
	display: flex;
	align-items: center;
	gap: 10px;
}

.table-search-input, .modal_search_field {
	padding: 8px 12px;
	border-radius: 5px;
	border: 1px solid var(--bg_dark);
	background-color: var(--bg_light);
	color: var(--text_normal);
	width: 250px;
}

body.dark .table-search-input, body.dark .modal_search_field {
	border-color: #444;
}
