/* ==========================================================================
   Popups and Modals
   ========================================================================== */

   .popup {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-content {
    background-color: white;
    border-radius: 5px;
    width: 60%;
    max-width: 600px;
    margin: 100px auto;
    padding: 20px;
    position: relative;
    z-index: 1001;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close {
    cursor: pointer;
}

.popup-body {
    margin-top: 20px;
}

.event-tooltip {
    position: fixed;
    z-index: 1005;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    max-width: 300px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
}

.event-tooltip strong {
    font-weight: bold;
}

.event-tooltip em {
    font-style: italic;
}

.event-tooltip br {
    margin-bottom: 5px;
}

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 80%;
    width: 100%;
    max-height: 90%;
    height: 90%;
    overflow: auto;
    margin-left: 150px;
}

.form-container,
.form-wrapper {
    max-width: 600px;
    margin: auto;
}

.form-row,
.user-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.form-field,
.management-list .form-field {
    flex: 1 1 45%;
    margin-right: 10px;
}

.form-field label,
.management-list .form-field label {
    display: block;
    margin-bottom: 5px;
}

.form-field input,
.form-field select,
.management-list .form-field input,
.management-list .form-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-field input[type="checkbox"],
.management-list .form-field input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 20px;
}

.drop-area,
.dropbox,
.user-assessment-modal-dropbox {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    color: #999;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.drop-area:hover,
.dropbox:hover,
.user-assessment-modal-dropbox:hover {
    border-color: #aaa;
    background-color: #f9f9f9;
}

.drop-area.dragover,
.dropbox.dragover,
.user-assessment-modal-dropbox.dragover {
    border-color: #333;
    background-color: #e6e6e6;
}

.image-preview img,
.user-previewImage {
    max-width: 100%;
    height: auto;
}

.user-previewImage {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* ==========================================================================
   User Assessments and Modals
   ========================================================================== */

   .user-assessment-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.user-assessment-modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.user-assessment-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.user-assessment-modal-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.user-assessment-modal-user-profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.core-group {
    margin-bottom: 20px;
    font-size: 0.7em;
}

.user-assessment-modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.user-assessment-modal-table th,
.user-assessment-modal-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.user-assessment-modal-table th {
    background-color: #f2f2f2;
}

.user-assessment-modal-green-bgcol {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

.user-assessment-modal-score-highly-proficient {
    color: rgb(34, 37, 82);
    font-weight: bold;
}

.user-assessment-modal-score-proficient {
    color: #008000;
    font-weight: bold;
}

.user-assessment-modal-score-approaching-proficient {
    color: #bb9f0b;
    font-weight: bold;
}

.user-assessment-modal-score-below-proficient {
    color: #b22222;
    font-weight: bold;
}

.user-assessment-modal-score-pending {
    color: #a9a9a9;
    font-weight: bold;
}

.arrow-selector {
    display: flex;
}

.arrow {
    cursor: pointer;
    font-size: 24px;
    padding: 5px;
    transition: color 0.3s ease;
}

.arrow.active {
    color: orange;
}


@media (max-width: 768px) {
    .modal-content {
        margin-left: 0px;
        max-width: 95%;
        margin-top: 50px;
    }
}