
:root {
    /* Common */
    --accent: #0668B3;
    --accent-rgb: 6, 104, 179;
    --sidebar-background: #121212;
    --nav-item-foreground: #d7d7d7;
    --link: var(--accent);
    --accent-gradient-frames: #8ed5ed 0%, #3c9bc0 51%, #0668b3 100%;
    --accent-gradient-frames-neg: #0668b3 0%, #3c9bc0 51%, #8ed5ed 100%;
    --accent2-gradient: linear-gradient(90deg, #8ed5ed 0%, #3c9bc0 51%, #0668b3 100%);
    --accent-gradient: linear-gradient(to right, var(--accent-gradient-frames));
    --accent-gradient-neg: linear-gradient(to left, var(--accent-gradient-frames));
    --vertical-gradient: linear-gradient(to top, #93D0E6, #0668B2);
    --sidebar-height: 56px;
    --notification-foreground: #ffffff;
    --selection-title-background: rgba(0,0,0,0.5);
    --auth-background: #044a80;
    --auth-background-hover: var(--accent);
    /* Light */
    --background: #ffffff;
    --background-hover: #eeeeee;
    --designer-background: #cccccc;
    --foreground: #333333;
    --foreground-hover: #ffffff;
    --foreground-selected: #ffffff;
    --highlight: #eeeeee;
    --highlight-2: #cccccc;
    --separator-color: #cccccc;
    --button-foreground-hover: #ffffff;
    --button-background-disabled: rgba(0,0,0,125);
    --input-border: #cccccc;
    --signin-background: #ffffff;
    --modal-background: rgba(255,255,255,0.7);
    --alert-background: #f8d7dabb;
    --alert-border: #f5c6cb;
    --alert-foreground: #721c24;
    --alert-info-background: #d1ecf1;
    --alert-info-border: #bee5eb;
    --alert-info-foreground: #0c5460;
}

.dark-theme {
    /* Dark */
    --background: #1D1D1D;
    --background-hover: #444444;
    --designer-background: #444444;
    --background-forminput: #252526;
    --foreground: #d7d7d7;
    --foreground-selected: #d1d1d1;
    --foreground-hover: #d1d1d1;
    --highlight: #444444;
    --highlight-2: #555555;
    --separator-color: #3e3e42;
    --button-foreground-hover: var(--foreground);
    --button-background-disabled: rgba(255,255,255,125);
    --input-border: #3e3e42;
    --signin-background: #161616;
    --modal-background: rgba(0,0,0,0.7);
    --alert-background: aa232088;
    --alert-border: #bb0000;
    --alert-foreground: #d1d1d1;
    --alert-info-background: #226622;
    --alert-info-border: #113311;
    --alert-info-foreground: #d1f1d1;
    --form-background-disabled: #252526;
}

::selection {
    background-color: var(--accent);
}

html {
    height: 100vh;
    height: -webkit-fill-available;
}

body {
    height: 100%;
    max-height: -webkit-fill-available;
}

div.main {
    background-color: var(--background);
    color: var(--foreground);
}

/*Full height minus margin top/bottom*/
.content {
    flex: 1;
}

a, .btn-link {
    color: var(--link);
}

.valid.modified:not([type=checkbox]) {
    outline: 0;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.form-control {
    background-color: var(--background-forminput);
    color: var(--foreground);
    border: 1px solid var(--input-border);
}

    .form-control:focus {
        color: var(--foreground);
        background-color: var(--background);
        border-color: var(--input-border);
        outline: 0;
        box-shadow: 0 0 0 .1rem rgba(123,123,123,.25)
    }

    .form-control:disabled {
        background-color: var(--form-background-disabled);
        color: var(--foreground);
    }

.no-select {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


/*Firefox scrollbar*/
@-moz-document url-prefix() {
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
    }
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: none;
    background-color: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar {
    width: 13px;
    background-color: transparent;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background-image: var(--vertical-gradient);
}

::-webkit-scrollbar-thumb:hover {
    background-image: var(--vertical-gradient);
}

::-webkit-scrollbar-corner {
    background-color: transparent;
}

.ellipsize-left {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
    text-align: left;
}

.force-center {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.alert-danger {
    color: var(--alert-foreground);
    background-color: var(--alert-background);
    border-color: var(--alert-border);
}

.alert-info {
    color: var(--alert-info-foreground);
    background-color: var(--alert-info-background);
    border-color: var(--alert-info-border);
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba
}

.context-menu-default {
    background: var(--background) !important;
    color: var(--foreground);
}

.context-menu-item-default {
    background: var(--background);
    color: var(--foreground);
}

/*Sense Table*/

.sense-table thead {
    background: var(--accent2-gradient);
    color: white;
}

.sense-table th {
    border: 0;
}

.sense-table td {
    vertical-align: middle;
}

.sense-table tbody tr td {
    border-top: 1px solid var(--accent)
}

.sense-table {
    color: var(--foreground);
}

/*Sense Dropdown*/

.sense-dropdown {
    padding: 1px;
    color: var(--foreground);
    background: var(--accent2-gradient);
    border-radius: 2px;
    box-shadow: 0 0 1px 0 var(--background) inset, 0 0 1px 0 var(--background);
}

.sense-dropdown-disabled {
    background: var(--button-background-disabled);
    pointer-events: none;
    opacity: 0.5;
}

.sense-dropdown button.sense-dropdown-button {
    padding: 0.3rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .20rem;
    border: 0;
    border-radius: 2px;
    background: var(--background);
    color: var(--foreground);
    box-shadow: none;
}

.sense-dropdown button:hover.sense-dropdown-button {
    background: transparent;
    color: var(--button-foreground-hover);
}

.sense-dropdown button:focus.sense-dropdown-button {
    outline: 0;
}

.sense-dropdown .sense-dropdown-menu {
    padding: 0;
    background: var(--accent2-gradient);
    border-radius: 2px;
}

.sense-dropdown .sense-dropdown-item {
    color: var(--foreground);
    background: var(--background);
}

    .sense-dropdown .sense-dropdown-item:hover {
        background: var(--accent2-gradient);
        color: var(--button-foreground-hover);
        transition: all .2s ease;
    }

.sense-dropdown .sense-dropdown-open-icon {
    top: 0;
}

/*Slider input*/

input[type="range"] {
    -webkit-appearance: none;
}

    input[type="range"]:focus {
        outline: none;
    }

    input[type="range"]::-webkit-slider-runnable-track {
        background: var(--accent-gradient-neg);
        height: 5px;
    }

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 15px;
        width: 15px;
        background: var(--accent);
        margin-top: -5px;
        border-radius: 50%;
    }
