﻿html, body {
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
}

/* ################################################################################################################## */

.file-progress-bar {
    display: block;
    height: 100%;
    background-image: linear-gradient(to right, transparent 0, #6fbb6ae0 100%);
    position: relative;
    overflow: hidden;
    transition: width 0.5s;
}

.file-progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
            -45deg,
            rgba(255, 255, 255, .2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, .2) 50%,
            rgba(255, 255, 255, .2) 75%,
            transparent 75%,
            transparent
    );
    z-index: 1;
    background-size: 50px 50px;
    animation: move 10s linear infinite;
    overflow: hidden;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}


/* ################################################################################################################## */

html {
    font-size: 14px;
}

label {
    margin-bottom: 0 !important;
}

body ::-webkit-scrollbar, html ::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}

body ::-webkit-scrollbar-thumb, html ::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, .20);
    -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .13);
}

/* ################################################################################################################## */

.btn.focus, .btn:focus {
    box-shadow: unset !important;
}

/* ################################################################################################################## */

.loading-spinner-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-spinner-container .loading-spinner-text {
    text-align: center;
    font-size: 1.5rem;
}

.loading-spinner-container .loading-spinner {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.loading-spinner-container .loading-spinner:before {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #1664a7d1 transparent #1664a7d1 transparent;
    animation: loading-spinner 1.2s linear infinite;
}

@keyframes loading-spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ################################################################################################################## */

.dialog {
    display: none;
}

.dialog .dialog-backdrop {
    position: fixed;
    z-index: 90000001;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.dialog.show {
    display: block;
}

.dialog .dialog-content {
    z-index: 90000001;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 60%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    max-height: 80vh;
    overflow: hidden;
}

.dialog .dialog-header {
    padding: 1rem;
    background-color: #1664a7d1;
    color: #fff;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 3.2rem;
}

.dialog .dialog-header .icon-left {
    flex-basis: 2rem;
    height: 2rem;
    width: 2rem;
    font-size: 2rem;
    margin-right: 1rem;
}

.dialog .dialog-header h2 {
    flex: 1;
    font-size: 1.5rem;
    margin: 0;
}

.dialog .dialog-header .icon.icon-close {
    text-align: right;
    cursor: pointer;
}

.dialog .dialog-header .icon.icon-close::before {
    color: white;
}

.dialog .dialog-body {
    padding: 1rem;
    color: black;
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: calc(80vh - 3.2rem - 3.2rem);
}

.dialog .dialog-body p {
    margin: 0;
}

.dialog .dialog-footer {
    padding: 0.5rem;
    background-color: #1664a7d1;
    color: white;
    text-align: right;
    height: 3.2rem;
}

.dialog .dialog-footer .btn {
    padding: 0.5rem !important;
    border: unset;
    margin-left: 1rem;
    font-size: 0.8rem;
}

/* ################################################################################################################## */
