﻿
.student-list-selector-modal {
    position: fixed;
    top: var(--navbar-height);
    height: calc(100vh - var(--navbar-height));
    background: rgba(0,0,0,0.75);
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 501;
}

.student-list-selector-wrapper-modal {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    width: 99vw;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.student-list-selector-modal .header {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(34, 36, 38, .15);
    display: flex;
    flex-direction: row;
    align-items: center;
    font-weight: bold;
    background: #f9fafb;
    position: relative;
    font-size: 16px;
}

    .student-list-selector-modal .header button {
        padding: 0px 20px;
        border: none;
        background: no-repeat;
        outline: none;
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        border-radius: 0;
        cursor: pointer;
    }

    .student-list-selector-modal .header button i {
        font-size: 22px;
        color: #ff6a00;
    }


.student-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    min-height: 200px;
    overflow: auto;
    max-height: calc(100vh - 300px);
    position: relative;
}

.student-list-item {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

    .student-list-item i {
        color: var(--primary-color, #ff6a00);
        margin-right: 9px;
        font-size: 20px;
    }

.student-list-item  img {
    margin-right: .25em;
    display: inline-block;
    width: 2em;
    height: 2em;
    border-radius: 500rem;
}

.student-list-item > div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
}

    .student-list-item .checkbox {
        position: relative;
        top: 2px;
    }

.student-list-selector-wrapper-modal .footer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    padding: 15px;
    gap: 10px;
    border-top: 1px solid rgba(34, 36, 38, .15);
    background: #f9fafb;
}

    .student-list-selector-wrapper-modal .footer button {
        padding: 10px 25px;
        border-radius: 5px;
        border: none;
        color: #fff;
        text-shadow: none;
        opacity: 0.9;
        transition-duration: 200ms;
        cursor: pointer;
        outline: none;
    }

    .student-list-selector-wrapper-modal .footer button:hover {
        opacity: 1;
    }

        .student-list-selector-wrapper-modal .footer button[data-action="save"] {
            background-color: #169334;
        }

        .student-list-selector-wrapper-modal .footer button[data-action="cancel"] {
            background-color: #d01919;
        }


.student-list-loading {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

    .student-list-loading i {
        font-size: 40px;
        animation-duration: 1s;
    }

.animated.student-list-selector-modal {
    animation-duration: 0.5s;
}