@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --accent: #2B5A5A;
    --hover: magenta;
    --highlight: #B8D637;
    --highlight-dark: #5BB65F;
    --text-main: black;
    --text-on-accent: white;
    --text-on-highlight: black;
    --background: #f0f0f0;
    --table-border: #9a989a;
    --good-green: #5BB65F;
    --bad-red: #E86848;
    --header-height: 135px;
    --button-height: 38px;
    --transition-time-short: 0.1s;
    --transition-time-long: 0.3s;
    --transfer-triangle-side-width: 50px;
}
.gradient-background-success {
    background-image: linear-gradient(180deg, rgba(184,214,55,1) 0%, rgba(91,182,95,1) 100%);
    background-size: cover; /* Full height */
    height: 100%;
    min-height: 100vh;
    margin: 0;
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
}

.gradient-background-error {
    background-image: linear-gradient(180deg, rgba(184, 12, 0) 0%, rgba(120, 9, 1) 100%);
    background-size: cover; /* Full height */
    height: 100%;
    min-height: 100vh;
    margin: 0;
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
}
@font-face {
    font-family: 'Museo Sans';
    src: url('../fonts/MuseoSans-100.otf');
    font-weight: 100;
}

@font-face {
    font-family: 'Museo Sans';
    src: url('../fonts/MuseoSans-300.otf');
    font-weight: 300;
}

@font-face {
    font-family: 'Museo Sans';
    src: url('../fonts/MuseoSans-500.otf');
    font-weight: 500;
}

@font-face {
    font-family: 'Museo Sans';
    src: url('../fonts/MuseoSans-700.otf');
    font-weight: 700;
}

@font-face {
    font-family: 'Museo Sans';
    src: url('../fonts/MuseoSans-900.otf');
    font-weight: 900;
}

.font100 {
    font-weight: 100;
}

.font300 {
    font-weight: 300;
}

.font500 {
    font-weight: 500;
}

.font700 {
    font-weight: 700;
}

.font900 {
    font-weight: 900;
}

html, body {
    font-family: 'Museo Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    text-transform: lowercase;
}

h1:focus {
    outline: none;
}

header {
    height: var(--header-height);
    background-color: white;
    padding: 2rem;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

article {
    background-color: var(--background);
    padding: 2rem;
    min-height: calc(100vh - var(--header-height));
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

a {
    text-decoration: none;
}

a, .btn-link {
    color: var(--accent);
    transition: var(--transition-time-short);
}

    a:hover, .btn-link:hover {
        color: var(--hover);
        transition: var(--transition-time-long);
    }

.btn {
    height: var(--button-height);
    border-radius: 2rem;
    transition: var(--transition-time-short);
    text-transform: lowercase;
    font-weight: 300;
}

    .btn:hover {
        transition: var(--transition-time-long);
    }

.btn-primary {
    color: var(--text-on-accent);
    background-color: var(--accent);
    border-color: var(--accent);
}

    .btn-primary:hover {
        background-color: var(--highlight);
        border-color: var(--highlight);
        color: var(--text-on-highlight);
    }

    .btn-primary.disabled, .btn-primary:disabled {
        background-color: grey;
        border-color: gray;
    }

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
}

    .btn-outline-primary:hover {
        color: var(--text-on-highlight);
        background-color: var(--highlight);
        border-color: var(--accent);
    }

    .btn-outline-primary.disabled, .btn-outline-primary:disabled {
        border-color: grey;
        color: grey;
    }

.btn-icon {
    margin: 1px;
    height: inherit;
    width: inherit;
    padding: 0px;
}

.btn-icon-normal-width {
    height: var(--button-height);
    width: var(--button-height);
}

.btn:active, .btn:focus {
    background-color: var(--highlight-dark);
    border-color: var(--accent);
    color: var(--text-on-highlight);
}

.btn-red-delete {
    background-color: var(--bad-red);
    border-color: var(--bad-red);
    color: var(--text-on-accent);
}

.button-spacer {
    height: var(--button-height);
}

label {
    font-weight: 500;
}

.form-check label {
    font-weight: 300;
}

input, textarea, select, option, .form-control {
    font-weight: 300;
}

    input[type="file"] {
        border-radius: 2rem .25rem .25rem 2rem;
        text-transform: lowercase;
    }

        input[type="file"]::file-selector-button {
            color: var(--text-on-accent);
            background-color: var(--accent);
            border-color: var(--accent);
            border-radius: 2rem 0 0 2rem;
            height: var(--button-height);
            border-radius: 2rem;
            transition: var(--transition-time-short);
            text-transform: lowercase;
        }

            input[type="file"]::file-selector-button:hover, .form-control:hover:not(:disabled):not([readonly])::file-selector-button {
                background-color: var(--highlight);
                border-color: var(--highlight);
                color: var(--text-on-highlight);
                transition: var(--transition-time-long);
            }

            input[type="file"]::file-selector-button:active, form-control:active:not(:disabled):not([readonly])::file-selector-button,
            input[type="file"]::file-selector-button:focus, form-control:focus:not(:disabled):not([readonly])::file-selector-button {
                background-color: var(--highlight-dark);
                border-color: var(--accent);
                color: var(--text-on-highlight);
            }

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.error {
    color: red !important;
}

#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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1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jcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.table {
    border-collapse: separate;
    border-spacing: 10px 0;
}

    .table td, .table th {
        border-bottom-color: var(--table-border);
    }

    .table > :not(:last-child) > :last-child > * {
        border-bottom-color: var(--text-main);
        border-bottom-width: 3px;
    }

.clickable-table tr {
    position: relative;
}

.clickable-table-button {
    z-index: 5;
    position: relative;
}

.table-cell-two-icon-buttons {
    min-width: 105px;
}

.table-drag-and-drop-position {
    border-top: 5px solid var(--highlight);
}

.table-drag-and-drop-bottom {
    border-bottom: 0;
}

.breadcrumb-item a {
    text-decoration: none;
}

.breadcrumb-item.active {
    font-weight: bold;
    color: var(--text-dark);
}

.breadcrumb-item::before, .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-dark);
    font-weight: 300;
}

.status-bubble-good, .status-bubble-bad {
    border-radius: 1em;
    padding: 2px 10px;
    text-align: center;
    color: var(--text-on-accent);
}

.status-bubble-good {
    background-color: var(--good-green);
}

.status-bubble-bad {
    background-color: var(--bad-red);
}

.form-check-input:checked {
    background-color: var(--highlight);
    border-color: var(--highlight);
}

.form-check-input:focus {
    border-color: var(--highlight);
    box-shadow: 0 0 0 .25rem transparent;
}

.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%235BB65F'/%3e%3c/svg%3e");
    /* the fill colour here does the colour of the toggle circle on focus */
}

.search-bar {
    background: url(../img/Search-icon.svg) 8px 50% no-repeat padding-box;
    padding-left: 40px;
    border-width: 1px;
    border-color: var(--accent);
    border-radius: 2em;
    width: 100%;
    height: var(--button-height);
}

    .search-bar.valid.modified:not([type=checkbox]) {
        outline: none;
    }

    .search-bar.invalid {
        outline: none;
    }

    .search-bar::placeholder {
        text-transform: lowercase;
    }

.allow-capitals {
    text-transform: initial;
}

.card {
    padding: 0;
    transition: var(--transition-time-short);
    border: 0;
}

    .card:hover {
        color: var(--hover);
        padding: 0 1%;
        transition: var(--transition-time-short);
    }

.hidden {
    display: none;
}

.alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

details > summary {
    list-style: none;
}
details > summary::marker, /* Latest Chrome, Edge, Firefox */ details > summary::-webkit-details-marker /* Safari */ {
    display: none;
}
