:root.highcontrast {
    /* Base colors */
    --text-color: black;
    --text-color-link: blue;
    --text-color-disabled: #999;
    --container-bg-color: white;
    --input-bg-color: white;
    --input-bg-color-disabled: white;
    --border-color: black;
    --color-active: blue;
    --focus-outline: 2px solid black;
    /* Tooltips */
    --tooltip-bg-color: rgba(0, 0, 0, 0.75);
    --tooltip-text-color: white;
    --tooltip-border-color: black;
    /* Map buttons */
    --map-button-bg-color: black;
    --map-button-text-color: white;
    --map-button-hover-bg-color: white;
    --map-button-hover-text-color: black;
    --map-button-active-bg-color: white;
    --map-button-active-text-color: black;
    /* Panels (topbar and bottom bar) */
    --panel-bg-color: rgba(255, 255, 255, 0.85);
    --panel-text-color: black;
    /* Titlebars */
    --titlebar-bg-color: black;
    --titlebar-text-color: white;
    /* Button */
    --button-bg-color: white;
    --button-bg-color-hover: #ddd;
    --button-bg-color-active: black;
    --button-bg-color-active-hover: #222;
    --button-bg-color-disabled: white;
    --button-text-color: black;
    --button-text-color-hover: black;
    --button-text-color-active: white;
    --button-text-color-active-hover: white;
    --button-text-color-disabled: #999;
    /* List */
    --list-bg-color: white;
    --list-section-bg-color: black;
    --list-section-text-color: white;
    --list-item-bg-color-even: #eee;
    --list-item-bg-color-hover: #ddd;
    --list-item-bg-color-active: #aaa;
    --list-item-bg-color-active-hover: #bbb;
    --list-item-text-color-hover: black;
    --list-item-text-color-active: black;
    --list-item-text-color-active-hover: black;
    /* App menu */
    --app-menu-bg-color: white;
    --app-menu-text-color: black;
    --app-menu-bg-color-hover: #ddd;
    --app-menu-text-color-hover: black;
    --app-submenu-bg-color: black;
    --app-submenu-text-color: white;
    --app-submenu-bg-color-hover: #222;
    --app-submenu-text-color-hover: white;
}

:root.dark {
    /* Base colors */
    --text-color: white;
    --text-color-link: #AAAAFF;
    --container-bg-color: #333;
    --input-bg-color: #3f3f3f;
    --input-bg-color-disabled: #252526;
    --text-color-disabled: #999;
    --border-color: #2c2c2c;
    --color-active: #AAAAFF;
    --focus-outline: 2px solid #007acc;
    /* Tooltips */
    --tooltip-bg-color: rgba(0, 0, 0, 0.75);
    --tooltip-text-color: white;
    --tooltip-border-color: black;
    /* Map buttons */
    --map-button-bg-color: #595959;
    --map-button-text-color: white;
    --map-button-hover-bg-color: #f2f2f2;
    --map-button-hover-text-color: #595959;
    --map-button-active-bg-color: #f2f2f2;
    --map-button-active-text-color: #595959;
    /* Panels (topbar and bottom bar) */
    --panel-bg-color: rgba(42, 46, 50, 0.85);
    --panel-text-color: white;
    /* Titlebars */
    --titlebar-bg-color: #475057;
    --titlebar-text-color: white;
    /* Button */
    --button-bg-color: #3f3f3f;
    --button-bg-color-hover: #3a3a3a;
    --button-bg-color-active: #202020;
    --button-bg-color-active-hover: #1a1a1a;
    --button-bg-color-disabled: #333;
    --button-text-color: white;
    --button-text-color-hover: white;
    --button-text-color-active: white;
    --button-text-color-active-hover: white;
    --button-text-color-disabled: #666;
    /* List */
    --list-bg-color: #3f3f3f;
    --list-section-bg-color: black;
    --list-section-text-color: white;
    --list-item-bg-color-even: #393939;
    --list-item-bg-color-hover: #292929;
    --list-item-bg-color-active: #1f1f1f;
    --list-item-bg-color-active-hover: #0f0f0f;
    --list-item-text-color-hover: white;
    --list-item-text-color-active: white;
    --list-item-text-color-active-hover: white;
    /* App menu */
    --app-menu-bg-color: #4f4f4f;
    --app-menu-text-color: white;
    --app-menu-bg-color-hover: #666;
    --app-menu-text-color-hover: white;
    --app-submenu-bg-color: #222;
    --app-submenu-text-color: white;
    --app-submenu-bg-color-hover: #404040;
    --app-submenu-text-color-hover: white;
}

:root.white {
    --shadows: 1px 2px 5px 0px rgba(60,64,67,0.5);
    --map-background-color: #f8f9fa;

    /* Base colors */
    --text-color: #595959;
    --text-color-link: #337ab7;
    --text-color-disabled: #999;
    --container-bg-color: white;
    --input-bg-color: white;
    --input-bg-color-disabled: #eee;
    --border-color: #bbb;
    --color-active: #078aa3;
    --focus-outline: 2px solid #3584e4;
    /* Tooltips */
    --tooltip-bg-color: rgba(0, 0, 0, 0.75);
    --tooltip-text-color: white;
    --tooltip-border-color: black;
    /* Map buttons */
    --map-button-bg-color: white;
    --map-button-text-color: var(--text-color);
    --map-button-hover-bg-color: #dcdcdc;
    --map-button-hover-text-color: var(--text-color);
    --map-button-active-bg-color: #f2f2f2;
    --map-button-active-text-color: var(--text-color);
    /* Panels (topbar and bottom bar) */
    --panel-bg-color: rgba(255, 255, 255, 0.75);
    --panel-text-color: var(--text-color);
    /* Titlebars */
    --titlebar-bg-color: var(--container-bg-color);
    --titlebar-text-color: var(--text-color);
    /* Button */
    --button-bg-color: #e9e9e9;
    --button-bg-color-hover: #dcdcdc;
    --button-bg-color-active: #078aa3;
    --button-bg-color-active-hover: #06798d;
    --button-bg-color-disabled: #e9e9e9;
    --button-text-color: var(--text-color);
    --button-text-color-hover: var(--text-color);
    --button-text-color-active: white;
    --button-text-color-active-hover: white;
    --button-text-color-disabled: #bbb;
    /* List */
    --list-bg-color: white;
    --list-section-bg-color: #ccc;
    --list-section-text-color: var(--text-color);
    --list-item-bg-color-even: #f0f0f0;
    --list-item-bg-color-hover: #dcdcdc;
    --list-item-bg-color-active: #078aa3;
    --list-item-bg-color-active-hover: #06798d;
    --list-item-text-color-hover: var(--text-color);
    --list-item-text-color-active: white;
    --list-item-text-color-active-hover: white;
    /* App menu */
    --app-menu-bg-color: var(--container-bg-color);
    --app-menu-text-color: var(--text-color);
    --app-menu-bg-color-hover: white;
    --app-menu-text-color-hover: var(--text-color);
    --app-submenu-bg-color: #808080;
    --app-submenu-text-color: white;
    --app-submenu-bg-color-hover: #a0a0a0;
    --app-submenu-text-color-hover: white;
}

:root.transparent #PluginsContainer #TopBar div.SearchBox > div.searchbox-field,
:root.transparent #PluginsContainer #TopBar div.SearchBox > div.searchbox-field .input-container-input {
    background-color: transparent;
}

:root.transparent #PluginsContainer #TopBar div.SearchBox {
    background-color: var(--map-button-bg-color);
}


:root.transparent #PluginsContainer div.AppMenu .appmenu-icon,
:root.transparent #PluginsContainer #TopBar div.SearchBox,
:root.transparent #PluginsContainer .Toolbar .icon,
:root.transparent #PluginsContainer button.map-button {
    backdrop-filter: blur(3px);
}

:root.transparent #PluginsContainer div.mapinfotooltip-window,
:root.transparent #PluginsContainer #MessageBar div.messagebar,
:root.transparent #PluginsContainer div.SearchBox > div.searchbox-results,
:root.transparent #PluginsContainer div.sidebar,
:root.transparent #PluginsContainer .resizeable-window,
:root.transparent #PluginsContainer div.AppMenu ul.appmenu-menu {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

:root.transparent #PluginsContainer .toolbox-results-container,
:root.transparent #PluginsContainer .MuiPaper-root,
:root.transparent #PluginsContainer .MuiTableRow-root:not(.Mui-selected),
:root.transparent #PluginsContainer .MuiToolbar-root,
:root.transparent #PluginsContainer div.identify-body,
:root.transparent #PluginsContainer div.qt-designer-form-frame,
:root.transparent #PluginsContainer div.input-container:not(.bottombar-scale-combo) .input-container-input {
    background-color: transparent;
}

:root.transparent #PluginsContainer #BottomBar input.bottombar-mousepos,
:root.transparent #PluginsContainer #BottomBar > span > select,
:root.transparent #PluginsContainer #BottomBar .bottombar-scale-combo > input,
:root.transparent #PluginsContainer #BottomBar div.bottombar-scale-combo {
    background-color: white;
}

:root.transparent:not(.Portal) {
    --bg-color: rgba(255, 255, 255, 0.8);
    --item-color: rgba(255, 255, 255, 0.6);

    --shadows: 1px 2px 5px 0px rgba(60,64,67,0.5);
    --map-background-color: #f8f9fa;
    --searchbox-color: var(--bg-color);

    /* Base colors */
    --text-color: #404040;
    --text-color-link: #337ab7;
    --text-color-disabled: #666;
    --container-bg-color: var(--bg-color);
    --input-bg-color: var(--item-color);
    --input-bg-color-disabled: #eee;
    --border-color: #bbb;
    --color-active: #078aa3;
    --focus-outline: 2px solid #3584e4;
    /* Tooltips */
    --tooltip-bg-color: rgba(0, 0, 0, 0.75);
    --tooltip-text-color: white;
    --tooltip-border-color: black;
    /* Map buttons */
    --map-button-bg-color: var(--bg-color);
    --map-button-text-color: var(--text-color);
    --map-button-hover-bg-color: #dcdcdc;
    --map-button-hover-text-color: var(--text-color);
    --map-button-active-bg-color: #f2f2f2;
    --map-button-active-text-color: var(--text-color);
    /* Panels (topbar and bottom bar) */
    --panel-bg-color: rgba(255, 255, 255, 0.75);
    --panel-text-color: var(--text-color);
    /* Titlebars */
    --titlebar-bg-color: var(--item-color);
    --titlebar-text-color: var(--text-color);
    /* Button */
    --button-bg-color: #e9e9e9;
    --button-bg-color-hover: #dcdcdc;
    --button-bg-color-active: #078aa3;
    --button-bg-color-active-hover: #06798d;
    --button-bg-color-disabled: #e9e9e9;
    --button-text-color: var(--text-color);
    --button-text-color-hover: var(--text-color);
    --button-text-color-active: white;
    --button-text-color-active-hover: white;
    --button-text-color-disabled: #bbb;
    /* List */
    --list-bg-color: var(--item-color);
    --list-section-bg-color: #ccc;
    --list-section-text-color: var(--text-color);
    --list-item-bg-color-even: rgba(220, 220, 220, 0.6);
    --list-item-bg-color-hover: #dcdcdc;
    --list-item-bg-color-active: #078aa3;
    --list-item-bg-color-active-hover: #06798d;
    --list-item-text-color-hover: var(--text-color);
    --list-item-text-color-active: white;
    --list-item-text-color-active-hover: white;
    /* App menu */
    --app-menu-bg-color: var(--container-bg-color);
    --app-menu-text-color: var(--text-color);
    --app-menu-bg-color-hover: white;
    --app-menu-text-color-hover: var(--text-color);
    --app-submenu-bg-color: #808080;
    --app-submenu-text-color: white;
    --app-submenu-bg-color-hover: #a0a0a0;
    --app-submenu-text-color-hover: white;
}

:root.giswater {
    /* --gw-color: #334993; */
    --gw-color: #0065ae;

    --shadows: 0 1px 2px rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --searchbox-border: 3px solid var(--gw-color);
    --map-background-color: white;

    /* Base colors */
    --text-color: #595959;
    --text-color-link: #337ab7;
    --text-color-disabled: #999;
    --container-bg-color: #f8f8f8;
    --input-bg-color: white;
    --input-bg-color-disabled: #eee;
    --border-color: #bbb;
    --color-active: #078aa3;
    --focus-outline: 2px solid #3584e4;
    /* Tooltips */
    --tooltip-bg-color: rgba(0, 0, 0, 0.75);
    --tooltip-text-color: white;
    --tooltip-border-color: black;
    /* Map buttons */
    --map-button-bg-color: var(--gw-color);
    --map-button-text-color: white;
    --map-button-hover-bg-color: #419fe4;
    --map-button-hover-text-color: white;
    --map-button-active-bg-color: white;
    --map-button-active-text-color: var(--text-color);
    /* Panels (topbar and bottom bar) */
    --panel-bg-color: rgba(255, 255, 255, 0.75);
    --panel-text-color: var(--text-color);
    /* Titlebars */
    --titlebar-bg-color: var(--map-button-bg-color);
    --titlebar-text-color: var(--map-button-text-color);
    /* Button */
    --button-bg-color: #e9e9e9;
    --button-bg-color-hover: #dcdcdc;
    --button-bg-color-active: var(--map-button-bg-color);
    --button-bg-color-active-hover: var(--map-button-hover-bg-color);
    --button-bg-color-disabled: #e9e9e9;
    --button-text-color: var(--text-color);
    --button-text-color-hover: var(--text-color);
    --button-text-color-active: white;
    --button-text-color-active-hover: white;
    --button-text-color-disabled: #bbb;
    /* List */
    --list-bg-color: white;
    --list-section-bg-color: #ccc;
    --list-section-text-color: var(--text-color);
    --list-item-bg-color-even: #f0f0f0;
    --list-item-bg-color-hover: #dcdcdc;
    --list-item-bg-color-active: #078aa3;
    --list-item-bg-color-active-hover: #06798d;
    --list-item-text-color-hover: var(--text-color);
    --list-item-text-color-active: white;
    --list-item-text-color-active-hover: white;
    /* App menu */
    --app-menu-bg-color: var(--container-bg-color);
    --app-menu-text-color: var(--text-color);
    --app-menu-bg-color-hover: white;
    --app-menu-text-color-hover: var(--text-color);
    --app-submenu-bg-color: #808080;
    --app-submenu-text-color: white;
    --app-submenu-bg-color-hover: #a0a0a0;
    --app-submenu-text-color-hover: white;
}
