/* CSS styles for the granular restoration control */

/* Student selection section */
.student-selection {
    margin-bottom: 20px;
}

/* Selection controls */
.selection-controls {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.selection-controls button {
    padding: 5px 10px;
    font-size: 0.85rem;
}

.selection-filter {
    margin-left: auto;
}

.selection-filter select {
    min-width: 150px;
}

/* Student list container */
.student-list-container {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

/* Student list header */
.student-list-header {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #495057;
    padding: 10px;
}

.student-checkbox-header {
    width: 60px;
    text-align: center;
}

.student-name-header {
    flex: 2;
}

.student-class-header {
    flex: 2;
}

.student-status-header {
    width: 120px;
    text-align: center;
}

/* Student list */
.student-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Student list item */
.student-list-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.student-list-item:last-child {
    border-bottom: none;
}

.student-list-item:hover {
    background-color: #f8f9fa;
}

.student-checkbox-cell {
    width: 60px;
    text-align: center;
}

.student-name-cell {
    flex: 2;
    font-weight: 500;
}

.student-class-cell {
    flex: 2;
    color: #6c757d;
    font-size: 0.9em;
}

.student-status-cell {
    width: 120px;
    text-align: center;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-add {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-remove {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.status-unchanged {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

/* Selection summary */
.selection-summary {
    text-align: right;
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 10px;
}

#selectedStudentCount {
    font-weight: 600;
    color: #007bff;
}

/* No students message */
.no-students {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Restoration options */
.restoration-options .preview-section-content {
    padding: 15px;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: background-color 0.2s, border-color 0.2s;
}

.radio-option:hover {
    background-color: #f8f9fa;
}

.radio-option input[type="radio"] {
    margin-top: 3px;
    margin-right: 10px;
}

.radio-option input[type="radio"]:checked + label {
    color: #007bff;
}

.radio-option input[type="radio"]:checked + label .radio-title {
    color: #007bff;
    font-weight: 600;
}

.radio-title {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.radio-description {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .student-list-header, .student-list-item {
        font-size: 0.9em;
    }
    
    .student-checkbox-header, .student-checkbox-cell {
        width: 40px;
    }
    
    .student-status-header, .student-status-cell {
        width: 100px;
    }
    
    .selection-controls {
        flex-wrap: wrap;
    }
    
    .selection-filter {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}
