:root {
    --gray: #F4F5F9;
    --red: var(--color-red);
}

.icon-right-space {
    margin-right: 8px;
}

.icon-left-space {
    margin-left: 8px;
}

.button-left-space {
    margin-left: 16px;
}

.button-right-space {
    margin-right: 16px;
}

.wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.page-header {
    padding: 40px 32px;
}

    .page-header .title-and-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .page-header .title {
        margin-top: 16px;
        font-weight: bold;
    }

    .page-header .actions {
        display: flex;
    }

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

.transparent-button {
    background: transparent;
    border: 0;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

    .transparent-button:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .transparent-button.disabled {
        color: rgba(0, 0, 0, 0.5);
        cursor: default;
    }

        .transparent-button.disabled:hover {
            background-color: transparent;
        }

    .transparent-button.active {
        color: #276EF1;
        background-color: #EFF3FE;
    }

        .transparent-button.active:hover {
            background-color: #EFF3FE;
        }

    .transparent-button.with-text {
        padding: 10px 15px;
    }

/*Loader animation from https://loading.io/css/ */

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ellipsis div {
        position: absolute;
        top: 33px;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: #e11b22;
        animation-timing-function: cubic-bezier(0, 1, 1, 0);
    }

        .lds-ellipsis div:nth-child(1) {
            left: 8px;
            animation: lds-ellipsis1 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(2) {
            left: 8px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(3) {
            left: 32px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(4) {
            left: 56px;
            animation: lds-ellipsis3 0.6s infinite;
        }

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

.outer-card {
    flex-grow: 1;
    height: 100%;
    padding: 16px;
    background-color: #F0F0F0;
    border-radius: 12px;
}

.outer-card-header {
    margin-bottom: 16px;
}

.outer-card-title {
    font-size: 16px;
    font-weight: bold;
}

.inner-card {
    background: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
}

.inner-card-header {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.inner-card-title {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prevent-select {
    -webkit-user-select: none; /* Safari */
    -webkit-touch-callout: none; /* iOS Safari */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

canvas {
    border-radius: 8px;
}

.icon-button {
    position: relative;
    border: none;
    width: 32px;
    height: 32px;
    float: left;
    
    background: rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    transition: background-color .1s;
    cursor: pointer;
}
    .icon-button:hover {
        background: rgba(0, 0, 0, 0.11);
    }

    .icon-button:focus {
        outline-style: solid;
        outline-color: #276FEC;
        outline-width: 3px;
    }


    .icon-button i {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }



.icon-button-active {
    background: #276FEC;
    border-radius: 6px;
}

    .icon-button-active i {
        color: white
    }


    .icon-button-active:hover {
        background: #185BD1;
    }

    .icon-button-active:focus {
        outline-style: solid;
        outline-color: #276FEC;
        outline-width: 3px;
        outline-offset: 2px;
    }


.fade-in {
    opacity: 0;
    animation: fade-in 0.25s ease-in;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


.project-sidebar-section:last-child {
    flex-grow: 1;
}

.project-sidebar-section:not(:last-child) {
    padding-bottom: 5px;
    border-bottom: 1px solid #d6d5d5;
    margin-bottom: 5px;
}

.project-name {
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis; /* Truncate text if too large */
    max-width: 160px;
    -webkit-box-orient: vertical;
}

.runs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.selection-actions {
    margin: 10px 0;
}

.typography-primary {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-default-primary);
}

.typography-secondary {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-default-secondary);
}

.divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-border-default-secondary);
    grid-column: 1 / -1;
}

.vertical-divider {
    width: 1px;
    height: 100%;
    background: var(--color-border-default-secondary);
}

.circle {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    flex-shrink: 0;
    flex-grow: 0;
}
