.grid-container {
    display: grid;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.grid-container.two-column {
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: stretch;  /* Make columns stretch full height */
}


.grid-container.three-column {
    grid-template-columns: 1fr 1fr 1fr; /* Changed from percentages to 1fr */
    gap: 1rem;
}

/* Add these new rules */
.grid-item {
    height: 100%;
}

.grid-item:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.grid-item:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.current-selections {
    flex: 1;
    overflow-y: auto;
}

.grid-image-column {
    width: 100%;
    box-sizing: border-box;
}

.grid-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Content columns */
.selections-column,
.review-column {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.selections-column h3,
.review-column h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #2d3748;
}

.selections-column .current-selections,
.review-column .current-selections {
    flex: 1;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

.selections-column .subject-item,
.review-column .subject-item {
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selections-column .subject-item:last-child,
.review-column .subject-item:last-child {
    margin-bottom: 0;
}

.selections-column .subject-name,
.review-column .subject-name {
    color: #1f2937;
    font-size: 0.875rem;
}

/* Button container */
.button-container {
    padding: 1rem;
    display: flex;
    justify-content: flex-start;
}

/* Button styling */
.btn-edit {
    width: 12rem;
    padding: 0.5rem 1rem;
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-edit:hover {
    background: #4338CA;
}

/* Selection date */
.selection-date {
    padding: 0 1rem 1rem;
    color: #000000;
    font-size: 14px;
}

/* New responsive styles */
@media (max-width: 1024px) {
    .grid-container.two-column,
    .grid-container.three-column {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .image-column img {
        max-height: 300px;
    }
    
    .selections-column,
    .review-column {
        margin-top: 1rem;
    }
}

/* ORIGINAL CSS BELOW - PRESERVED EXACTLY AS IS */
/* Core container styles */
.subject-selection-container {
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.image-column {
    height: 100%;   /* Fill whatever height Col2 creates */
}

.image-column img {
    width: 100%;
    height: 100%;  /* Fill the full height of its container */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.selections-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
}

.action-buttons button {
    margin-top: 24px;
    margin-right: 10px;
}

.action-buttons button:last-child {
    margin-right: 0;
}

.subject-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Right column - Recommendations */
.grid-item.recommendations-column {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.recommendations-column h3 {
    font-size: 24px;
    color: #1f2937;
    margin: 0 0 24px 0;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.recommendations-message {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    color: #6b7280;
    padding: 30px;
    line-height: 1.5;
}

.recommendations-message i {
    font-size: 24px;
    margin-right: 12px;
    color: #9ca3af;
}

/* Action buttons */
.btn-confirm, 
.btn-review {
    background: #4a90e2;    /* Same light blue */
    color: white;           /* Same white text */
    /* Keep our other existing styles */
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-confirm:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.btn-review:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Selection date */
.selection-date,
.review-date {
    margin-top: 24px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Modal base styles */
.sp_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.sp_modal_content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Modal header */
.sp_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.sp_modal_title {
    font-size: 18px;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

.sp_modal_close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
}

/* Body */
.sp_modal_body {
    padding: 24px;
}

/* Groups */
.sp_subject_group {
    margin-bottom: 20px;
}

.sp_subject_group h3 {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin: 0 0 8px 0;
}

/* Form elements */
.sp_subject_group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 8px;
}

.sp_error_message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

.sp_selected_subjects {
    margin-top: 12px;
}

.sp_count_message {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

/* Footer */
.sp_modal_footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Buttons */
.sp_modal_btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.sp_modal_btn_primary {
    background: #4267B2;
    color: white;
}

.sp_modal_btn_secondary {
    background: #E4E6EB;
    color: #374151;
}

/* Error styling */
.sp_error_message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 4px;
    padding: 8px;
    background-color: #fef2f2;
    border-radius: 4px;
}

/* Error field styling */
.sp_subject_group select.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* Subject selection modal specific */
.subject-group {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.subject-group h3 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

/* Form elements */
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #374151;
    background-color: white;
    margin-bottom: 12px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Selected subjects display */
.selected-subjects {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.selected-subject {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.selected-subject:hover {
    background-color: #fee2e2;
}

.selected-subject span {
    color: #1f2937;
    font-size: 15px;
}

.remove-subject {
    color: #dc2626;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.remove-subject:hover {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Status tags - REMOVED */

/* Error messages */
.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message i {
    font-size: 16px;
}

/* Modal footer */
.modal-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Responsive design */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .grid-item.image-column {
        min-height: 200px;
    }
    
    .grid-item.selections-column {
        padding-right: 0;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        padding: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    animation: fadeIn 0.3s ease-out;
}

.subject-item {
    animation: fadeIn 0.3s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Specific styles for Review Modal only - won't affect other modals */
#teacherReviewModal .sp_modal_content {
    width: 500px;
    background: white;
    border-radius: 8px;
    max-height: 85vh;
    overflow-y: scroll;
    padding-right: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#teacherReviewModal .sp_modal_header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    background: white;
}

#teacherReviewModal .sp_modal_header h2 {
    font-size: 18px;
    font-weight: 400;
    color: #111;
    margin: 0;
}

#teacherReviewModal .close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #666;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    line-height: 1;
}

#teacherReviewModal #reviewSubjects {
    padding: 0 20px;
}

#teacherReviewModal .section-label {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    margin-top: 16px;
    margin-bottom: 6px;
}

#teacherReviewModal .subject-line {
    font-size: 15px;
    font-weight: 400;
    color: #111;
    margin-bottom: 4px;
}

#teacherReviewModal .change-indicator {
    color: #2563eb;
    font-size: 8px;
    margin-left: 8px;
}

#teacherReviewModal .action-links {
    margin-bottom: 12px;
}

#teacherReviewModal .action-links a {
    font-size: 14px;
    text-decoration: none;
    margin-right: 12px;
    cursor: pointer;
}

#teacherReviewModal .suggest {
    color: #2563eb;
}

#teacherReviewModal .addelective {
    color: #2ddf8a;
}

#teacherReviewModal .remove {
    color: #dc2626;
}

/* Change Area Styles */
#teacherReviewModal .change-area {
    margin-top: 8px;
    margin-bottom: 16px;
}

#teacherReviewModal .subject-select,
#teacherReviewModal #newElectiveSelect {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

#teacherReviewModal .reason-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    min-height: 80px;
    resize: vertical;
    margin-bottom: 8px;
}

/* Electives Area */
#teacherReviewModal .add-elective-area {
    padding: 0 20px;
    margin-top: 16px;
}

#teacherReviewModal .selected-electives {
    background: #fef2f2;
    border-radius: 6px;
    margin-top: 8px;
    padding: 8px;
}

#teacherReviewModal .elective-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

#teacherReviewModal .remove-elective {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    padding: 0 4px;
    font-size: 16px;
}

#teacherReviewModal .elective-count {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

/* Error States */
#teacherReviewModal .error-message {
    color: #dc2626;
    font-size: 14px;
    padding: 8px;
    background: #fef2f2;
    border-radius: 4px;
    margin-bottom: 8px;
}

#teacherReviewModal .subject-select.error,
#teacherReviewModal .reason-input.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

/* Change Preview */
#teacherReviewModal .change-preview {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

/* Footer */
#teacherReviewModal .modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: white;
}

#teacherReviewModal .submit-btn,
#teacherReviewModal .cancel-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

#teacherReviewModal .submit-btn {
    background: #4267B2;
    color: white;
}

#teacherReviewModal .cancel-btn {
    background: #E4E6EB;
    color: #374151;
}

/* Loading State */
#teacherReviewModal .loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Add this to /customcss/manage_report_subjects.css */

/* Existing modal styles remain unchanged */

/* Comment Section Styles */
#changeCommentSection {
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid #eee;
}

#changeCommentSection h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.sp_change_comments {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.sp_change_comments:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.sp_change_comments.error {
    border-color: #dc3545;
}

/* Error Message Styles */
.sp_error_message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

/* Button States */
.sp_modal_btn_primary:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Loading State */
.sp_modal_btn_primary.loading {
    position: relative;
    color: transparent;
}

.sp_modal_btn_primary.loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: button-spinner .6s linear infinite;
}

@keyframes button-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Comment Section Styling */
.sp_comment_section {
    margin-top: 16px;
    padding: 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.sp_comment_section h4 {
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.sp_comment_section textarea.sp_change_comments {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.2s ease;
}

.sp_comment_section textarea.sp_change_comments:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sp_comment_section textarea.sp_change_comments::placeholder {
    color: #94a3b8;
}

/* Error states */
.sp_comment_section textarea.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.sp_comment_section .sp_error_message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 6px;
    padding: 4px 0;
}

/* Transition for showing/hiding comment sections */
.sp_comment_section {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out, margin 0.2s ease;
}

.sp_comment_section[style*="display: block"] {
    max-height: 300px;
    opacity: 1;
    margin-top: 16px;
}

.empty-state-container {
    text-align: center;
    padding: 48px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-state-icon {
    font-size: 24px;
    color: #4F46E5;
    margin-bottom: 16px;
}

.empty-state-container h3 {
    font-size: 20px;
    font-weight: 500;
    color: #111827;
    margin: 0 0 8px 0;
}

.empty-state-container p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

/* Force consistent header styles */
.selections-column h3,
.review-column h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #2d3748;
}

/* Force consistent subject item styles */
.selections-column .subject-item,
.review-column .subject-item {
    padding: 0.75rem !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
}

/* Force consistent container styles */
.selections-column .current-selections,
.review-column .current-selections {
    flex: 1 !important;
    padding: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

/* Remove any margin from the last subject item */
.selections-column .subject-item:last-child,
.review-column .subject-item:last-child {
    margin-bottom: 0 !important;
}

.subject-unchanged {
    background-color: #e6ffe6 !important; /* Light green */
}

.subject-changed {
    background-color: #e6f3ff !important; /* Light blue */
}

/* Comments Section Container */
.comments-section {
    grid-column: 1 / 3;
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

/* Section Header */
.comments-section h4 {
    margin-bottom: 10px;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 6px;
}

.comments-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #4299e1, #667eea);
    border-radius: 1px;
}

/* Individual Comment Cards */
.comments-section > div {
    margin-bottom: 8px;
    padding: 8px 10px;
    background-color: white;
    border-radius: 6px;
    border-left: 3px solid #4299e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease-out;
}

/* Comment Content */
.comments-section p {
    margin: 4px 0;
    line-height: 1.3;
    color: #4a5568;
    font-size: 0.9rem;
}

.comments-section p strong {
    color: #2b6cb0;
    font-weight: 600;
}

/* Reason/Comment Text */
.comments-section p:last-child {
    margin-left: 8px;
    padding: 6px 10px;
    background-color: #f7fafc;
    border-radius: 4px;
    font-style: italic;
    color: #718096;
    border: 1px solid #e2e8f0;
}

/* Status Indicators */
.comment-status-alternative {
    border-left-color: #f6ad55 !important;
}

.comment-status-approved {
    border-left-color: #48bb78 !important;
}

.comment-status-new {
    border-left-color: #667eea !important;
}

/* Animation Keyframes */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .comments-section {
        padding: 10px;
        margin-top: 12px;
    }
    
    .comments-section > div {
        padding: 8px;
    }
}

/* Add these new classes for elective count styling */
.sp_count_message {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
    transition: color 0.3s ease;
}

.sp_count_success {
    color: #10b981;
    font-weight: 500;
}

.sp_count_warning {
    color: #f59e0b;
    font-weight: 500;
}

.sp_count_max {
    color: #ef4444;
    font-weight: 500;
}

/* Styling for the elective instructions */
.sp_elective_instructions {
    margin-bottom: 12px;
    padding: 8px 12px;
    background-color: #f3f4f6;
    border-left: 3px solid #4f46e5;
    border-radius: 4px;
    font-size: 14px;
    color: #4b5563;
}

/* Max electives reached message */
#maxElectivesMessage {
    margin-top: 4px;
    padding: 6px 10px;
    background-color: #fee2e2;
    color: #b91c1c;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}

/* Disabled button styling */
.sp_modal_btn_disabled {
    background-color: #9ca3af !important;
    cursor: not-allowed !important;
}

/* Selected subjects with warning/success indicators */
.selected-subject {
    position: relative;
}

.selected-subject.warn {
    border-left: 3px solid #f59e0b;
}

.selected-subject.success {
    border-left: 3px solid #10b981;
}

/* Animation for new elements */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Info message styling */
.sp_info_message {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1e40af;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.sp_info_message:before {
    content: "ℹ️";
    margin-right: 8px;
    font-size: 14px;
}

/* Style the elective instructions exactly like the React mockup */
.sp_elective_instructions {
    background-color: #fff8e6 !important; /* Light yellow background from mockup */
    border: 1px solid #ffeeba !important; /* Light yellow border from mockup */
    color: #856404 !important; /* Yellow-brown text from mockup */
    padding: 10px 15px !important;
    margin: 10px 0 15px 0 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    display: block !important;
}