/**
 * Scoring Rubric Styles
 * Provides color-coded visual styling for scoring rubrics
 */

/* Main rubric container */
.scoring-rubric {
    margin: 20px 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header section */
.scoring-rubric-header {
    margin-bottom: 15px;
}

.scoring-rubric-header h1,
.scoring-rubric-header h2,
.scoring-rubric-header h3,
.scoring-rubric-header h4,
.scoring-rubric-header h5,
.scoring-rubric-header h6 {
    margin: 0;
    color: #1a1a1a;
}

/* Content wrapper */
.scoring-rubric-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual score items */
.score-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.score-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

/* Score badge (point range display) */
.score-badge {
    min-width: 120px;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Score content (description) */
.score-content {
    flex: 1;
}

.score-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.score-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* Color scale based on score ranges */

/* Excellent: 25-21 points - Green */
.score-item:nth-child(1) {
    border-left-color: #22c55e;
    background-color: #f0fdf4;
}

.score-item:nth-child(1) .score-badge {
    background-color: #22c55e;
    color: white;
}

/* Good: 20-16 points - Light Green/Blue */
.score-item:nth-child(2) {
    border-left-color: #3b82f6;
    background-color: #eff6ff;
}

.score-item:nth-child(2) .score-badge {
    background-color: #3b82f6;
    color: white;
}

/* Satisfactory: 15-11 points - Yellow */
.score-item:nth-child(3) {
    border-left-color: #eab308;
    background-color: #fefce8;
}

.score-item:nth-child(3) .score-badge {
    background-color: #eab308;
    color: #1a1a1a;
}

/* Needs Improvement: 10-6 points - Orange */
.score-item:nth-child(4) {
    border-left-color: #f97316;
    background-color: #fff7ed;
}

.score-item:nth-child(4) .score-badge {
    background-color: #f97316;
    color: white;
}

/* Insufficient: 5-1 points - Red */
.score-item:nth-child(5) {
    border-left-color: #ef4444;
    background-color: #fef2f2;
}

.score-item:nth-child(5) .score-badge {
    background-color: #ef4444;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .score-item {
        flex-direction: column;
        align-items: stretch;
    }

    .score-badge {
        margin-right: 0;
        margin-bottom: 10px;
        min-width: auto;
    }
}
