﻿.main-content-wrapper {
    display: grid;
    grid-template-columns: minmax(max-content, max-content);
    width: max-content;
    
    /* Center the content: */    
    margin-left: auto;
    margin-right: auto;
}

.main-content {
    background-color: #1d2b43;
    margin: 20px;
    width: 100%;
    min-width: 600px;
    padding-top: 1px; /* prevents margin collapse */
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#error-banner {
    display: none; /* Hidden by default. */
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #error-banner .error-message {
        display: inline-block;
        color: black;
    }

    #error-banner .error-actions {
        display: inline-block;
        float: right;
    }

    #error-banner .reload {
        white-space: nowrap;
        cursor: pointer;
        color: black;
    }

    #error-banner .dismiss {
        margin-left: 1rem;
        cursor: pointer;
        color: black;
    }

.loading-progress {
    position: relative;
    width: 50vw;
    margin: 20% auto 0.5em auto;
    text-align: center;
    font-family: 'Open Sans';
    white-space: nowrap;
    color: #c9cdcf;
}

    .loading-progress:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.loading-progress-bar {
    position: relative;
    width: 50vw;
    margin: 0% auto;
    background: #c9cdcf;
    height: 1rem;
    border-radius: 10rem;
    overflow: hidden;
}

    .loading-progress-bar:after {
        content: '';
        position: absolute;
        inset: 0;
        background: #3c73bb;
        scale: var(--blazor-load-percentage, 0%) 100%;
        transform-origin: left top;
        transition: scale ease-out 0.5s;
    }

code {
    color: #c02d76;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #131f34; /* asphalt400 */
    /* default text color and font properties */
    color: #ffffffe6;
    font-family: 'Open Sans';
    font-weight: 400; /* note: headers should have a weight of 800 */
    font-size: 14px;
    line-height: 150%;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3c73bb; /* blue500 */
    color: #ffffffe6;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    padding: 1px 12px 1px 12px;
    cursor: pointer;
    min-width: 73px;
    height: 28px;
    transition: opacity 0.3s ease;
}

    button:hover {
        opacity: 0.9;
    }

.button-login,
.button-secondary,
.button-primary {
}

.button-login:disabled,
.button-primary:disabled {
    background-color: #3c73bb;
    opacity: 0.4;
}

.button-secondary {
    background-color: #576574;
}

.button-login {
    margin-top: 20px;
    height: 40px;
    width: 180px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.spacing {
    margin: 20px;
}

.project-header {
    margin: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 21px;
    font-weight: 300;
}

.back-arrow {
    margin-right: 10px;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: #c9cdcf;
}

.tab-item {
    display: inline-block;
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

    .tab-item.active {
        color: #ffffffe6;
        border-color: #3d70d3;
    }

.custom-progress {
    height: 8px;
    width: 100%;
    margin-bottom: 5px;
    background-color: #4a5569;
    border: solid;
    border-color: #4a5569;
    border-width: 1px;
    border-radius: 4px;
    appearance: none;
}

    .custom-progress::-webkit-progress-bar {
        background-color: #4a5569;
        border-radius: 4px;
    }

    .custom-progress::-webkit-progress-value {
        background-color: #3fa64d;
        border-radius: 4px;
    }

    .custom-progress::-moz-progress-bar {
        background-color: #3fa64d;
        border-radius: 4px;
    }

    .custom-progress.indeterminate {
        position: relative;
        overflow: hidden;
    }

        .custom-progress.indeterminate::-webkit-progress-value {
            background-color: transparent;
        }

        .custom-progress.indeterminate::-moz-progress-bar {
            background-color: transparent;
        }

        .custom-progress.indeterminate::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            width: 30%;
            background-color: #3fa64d;
            border-radius: 4px;
            animation: indeterminate-ping-pong 2s ease-in-out infinite;
        }

@keyframes indeterminate-ping-pong {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(333.33%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 2px solid rgba(1, 1, 1, 0.1);
    border-top: 2px solid #679de4;
    border-right: 2px solid #679de4;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

.badge {
    background-color: #132642;
    color: #628CC1;
    border-radius: 0px;
    padding: 0px 5px;
    font-size: 10px;
    font-weight: 100;
    display: inline-block;
    margin: 0px 10px 0px 0px;
    opacity: 1;
}