/* Assessment Popup Styles */
.assessment-overlay {
    display: flex;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent background scroll */
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.assessment-modal {
    background-color: #fff;
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 90vh;
    /* Max height of viewport */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s;
    font-family: 'Noto Sans Thai', sans-serif;
    /* Ensure font consistency */
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.assessment-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.assessment-modal-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close-custom {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-custom:hover {
    color: #333;
}

.assessment-modal-body-scroll {
    overflow-y: auto;
    padding: 20px;
    flex-grow: 1;
}

.assessment-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.assessment-question-item {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.assessment-question-item:last-child {
    border-bottom: none;
}

/* Star Rating */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    /* For CSS hover magic */
    justify-content: flex-end;
    gap: 5px;
}

.star-rating span {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

/* Hover and Active states for Stars */
.star-rating span:hover,
.star-rating span:hover~span,
.star-rating span.active,
.star-rating span.active~span {
    color: #ffc107;
}

/* Likert Scale */
.likert-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.likert-option {
    text-align: center;
    flex: 1;
}

.likert-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    cursor: pointer;
    gap: 5px;
}

.likert-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Notification Styles */
.assessment-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.assessment-notification i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.assessment-notification-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.assessment-notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.assessment-notification-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.assessment-notification-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}