﻿
/** Simple drag and drop with Blazor CSS **/

.jobs-container {
    display: flex;
    /* justify-content:space-between;*/
}

.jobs-list-header {
    position: sticky;
    top: 0px;
    backdrop-filter: blur(5px);
    background-color: rgba(230, 230, 230, 0.50);
    z-index: 5;
    border-radius:10px;
}

    .jobs-list-header h3 {
        margin:5px 10px;
    }

.job-status {
    display: flex;
    flex-direction: column;
    max-height: 78vh;
    overflow-y: auto;
    min-width: 250px;
    overflow-x: hidden;
   padding-right:17px;
    
}

    .job-status ul {
        flex: 1;
    }

.dropzone {
    padding: 15px;
    list-style: none;
}

.no-drop {
    border: 2px red;
}

.can-drop {
    border: 2px green;
}

.draggable {
    margin-bottom: 10px;
    padding: 10px 5px;
    border: 1px none #424d5c;
    cursor: grab;
    color: #231f7d;
    border-radius: 5px;
    background-color: whitesmoke;
    box-shadow: 1.5px 1.5px 7px rgba(74, 84, 108, 0.84);
    width: 200px;
}

    .draggable:hover {
        background-color: lightgray;
    }

    .draggable:active {
        cursor: grabbing;
    }

.dragging {
    cursor: grabbing;
}

.description {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    margin-top: 15px;
    word-wrap: break-word;
    word-break: break-all;
}

.last-updated_wrap {
    margin: 12px 0 0 0;
    padding: 0;
    display: flex;
    flex-flow: column;
    justify-self: end;
}

.last-updated {
    margin-top: 0;
    margin-bottom: 0px;
    font-size: 11px;
    color: #8eacff;
    font-weight: bold;
}

    .last-updated small {
        text-transform: uppercase;
        color: #c4cbd4;
        font-size: 11px;
    }

.last-updatedtime {
    margin: 0;
    font-size: 11px;
    color: #8eacff;
    font-weight: bold;
}
/* misc */
.contrib-card {
    padding: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .contrib-card img {
        height: 50px;
        width: 50px;
    }

.screenshot {
    text-align: center;
    display: block;
}

    .screenshot img {
        max-width: 100%;
    }

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui::before {
    margin: auto;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

#blazor-error-ui {
    z-index: 9999;
    display: none;
    background: #fff;
    margin: 0 auto;
    padding: 10px 20px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 8px 17px 0 rgba(0,0,0,.2), 0 6px 20px 0 rgba(0,0,0,.19) !important;
}

.checklist-btn {
    color: mediumslateblue;
    display: flex;
    align-self: end;
    font-size: 10px;
    padding: 0;
}

#checklist {
    --background: #ffffff;
    --text: #414856;
    --check: #4F29F0;
    --disabled: #C3C8DE;
    --width: 200px;
    --height: fit-content;
    --border-radius: 10px;
    background: var(--background);
    width: var(--width);
    height: var(--height);
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 3px 3px 5px darkgray;
    margin-bottom: 10px;
    padding: 15px 10px;
    display: grid;
    grid-template-columns: 35px auto;
    align-items: center;
}

    #checklist label {
        color: var(--text);
        position: relative;
        cursor: pointer;
        display: grid;
        align-items: center;
        width:fit-content;
        max-width:143px;
        transition: color 0.3s ease;
    }

        #checklist label::before, #checklist label::after {
            content: "";
            position: absolute;
        }

        #checklist label::before {
            height: 2px;
            width: 8px;
            left: -27px;
            background: var(--check);
            border-radius: 2px;
            transition: background 0.3s ease;
        }

        #checklist label:after {
            height: 4px;
            width: 4px;
            top: 8px;
            left: -25px;
            border-radius: 50%;
        }

    #checklist input[type=checkbox] {
        -webkit-appearance: none;
        -moz-appearance: none;
        position: relative;
        height: 15px;
        width: 15px;
        outline: none;
        border: 0;
        margin: 0 15px 0 0;
        cursor: pointer;
        background: var(--background);
        display: grid;
        align-items: center;
    }

        #checklist input[type=checkbox]::before, #checklist input[type=checkbox]::after {
            content: "";
            position: absolute;
            height: 2px;
            top: auto;
            background: var(--check);
            border-radius: 2px;
        }

        #checklist input[type=checkbox]::before {
            width: 0px;
            right: 60%;
            transform-origin: right bottom;
        }

        #checklist input[type=checkbox]::after {
            width: 0px;
            left: 40%;
            transform-origin: left bottom;
        }

        #checklist input[type=checkbox]:checked::before {
            -webkit-animation: check-01 0.4s ease forwards;
            animation: check-01 0.4s ease forwards;
        }

        #checklist input[type=checkbox]:checked::after {
            -webkit-animation: check-02 0.4s ease forwards;
            animation: check-02 0.4s ease forwards;
        }

        #checklist input[type=checkbox]:checked + label {
            color: var(--disabled);
            -webkit-animation: move 0.3s ease 0.1s forwards;
            animation: move 0.3s ease 0.1s forwards;
        }

            #checklist input[type=checkbox]:checked + label::before {
                background: var(--disabled);
                -webkit-animation: slice 0.4s ease forwards;
                animation: slice 0.4s ease forwards;
            }

/*            #checklist input[type=checkbox]:checked + label::after {
                -webkit-animation: firework 0.5s ease forwards 0.1s;
                animation: firework 0.5s ease forwards 0.1s;
            }*/

@-webkit-keyframes move {
    50% {
        padding-left: 8px;
        padding-right: 0px;
    }

    100% {
        padding-right: 4px;
    }
}

@keyframes move {
    50% {
        padding-left: 8px;
        padding-right: 0px;
    }

    100% {
        padding-right: 4px;
    }
}

@-webkit-keyframes slice {
    60% {
        width: 100%;
        left: 4px;
    }

    100% {
        width: 100%;
        left: -2px;
        padding-left: 0;
    }
}

@keyframes slice {
    60% {
        width: 100%;
        left: 4px;
    }

    100% {
        width: 100%;
        left: -2px;
        padding-left: 0;
    }
}

@-webkit-keyframes check-01 {
    0% {
        width: 4px;
        top: auto;
        transform: rotate(0);
    }

    50% {
        width: 0px;
        top: auto;
        transform: rotate(0);
    }

    51% {
        width: 0px;
        top: 8px;
        transform: rotate(45deg);
    }

    100% {
        width: 5px;
        top: 8px;
        transform: rotate(45deg);
    }
}

@keyframes check-01 {
    0% {
        width: 4px;
        top: auto;
        transform: rotate(0);
    }

    50% {
        width: 0px;
        top: auto;
        transform: rotate(0);
    }

    51% {
        width: 0px;
        top: 8px;
        transform: rotate(45deg);
    }

    100% {
        width: 5px;
        top: 8px;
        transform: rotate(45deg);
    }
}

@-webkit-keyframes check-02 {
    0% {
        width: 4px;
        top: auto;
        transform: rotate(0);
    }

    50% {
        width: 0px;
        top: auto;
        transform: rotate(0);
    }

    51% {
        width: 0px;
        top: 8px;
        transform: rotate(-45deg);
    }

    100% {
        width: 10px;
        top: 8px;
        transform: rotate(-45deg);
    }
}

@keyframes check-02 {
    0% {
        width: 4px;
        top: auto;
        transform: rotate(0);
    }

    50% {
        width: 0px;
        top: auto;
        transform: rotate(0);
    }

    51% {
        width: 0px;
        top: 8px;
        transform: rotate(-45deg);
    }

    100% {
        width: 10px;
        top: 8px;
        transform: rotate(-45deg);
    }
}

@-webkit-keyframes firework {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 -2px #4F29F0, 0 0 0 -2px #4F29F0, 0 0 0 -2px #4F29F0, 0 0 0 -2px #4F29F0, 0 0 0 -2px #4F29F0, 0 0 0 -2px #4F29F0;
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        box-shadow: 0 -15px 0 0px #4F29F0, 14px -8px 0 0px #4F29F0, 14px 8px 0 0px #4F29F0, 0 15px 0 0px #4F29F0, -14px 8px 0 0px #4F29F0, -14px -8px 0 0px #4F29F0;
    }
}

@keyframes firework {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 -2px #4F29F0, 0 0 0 -2px #4F29F0, 0 0 0 -2px #4F29F0, 0 0 0 -2px #4F29F0, 0 0 0 -2px #4F29F0, 0 0 0 -2px #4F29F0;
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        box-shadow: 0 -15px 0 0px #4F29F0, 14px -8px 0 0px #4F29F0, 14px 8px 0 0px #4F29F0, 0 15px 0 0px #4F29F0, -14px 8px 0 0px #4F29F0, -14px -8px 0 0px #4F29F0;
    }
}
