/* Grade Legend in Sidebar */
.grade-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.grade-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.grade-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: block;
}

.grade-legend-text {
    flex: 1;
}

.grade-legend-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.grade-legend-range {
    font-size: 11px;
    color: #666;
    font-family: 'Courier New', monospace;
}

/* Settings Page */
.settings-header {
    margin-bottom: 24px;
}

.settings-header h1 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 28px;
}

.settings-header .subtitle {
    color: #666;
    font-size: 15px;
    margin: 0;
}

.settings-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.settings-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.settings-section-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 24px 0;
}

/* Rubric Configuration */
.rubric-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rubric-config-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.rubric-config-header {
    color: white;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
}

.rubric-config-header h3 {
    margin: 0;
    font-size: 16px;
    color: white;
}

.rubric-config-body {
    padding: 20px;
}

.rubric-input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.rubric-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

.rubric-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.rubric-input:read-only {
    background: #f8f9fa;
    color: #666;
}

.rubric-helper-text {
    font-size: 12px;
    color: #666;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

/* Rubric Actions */
.rubric-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.rubric-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.rubric-btn-primary {
    background: #007bff;
    color: white;
}

.rubric-btn-primary:hover {
    background: #0056b3;
}

.rubric-btn-secondary {
    background: #6c757d;
    color: white;
}

.rubric-btn-secondary:hover {
    background: #5a6268;
}

/* Rubric Preview */
.rubric-preview {
    border-top: 1px solid #ddd;
    padding-top: 24px;
}

.rubric-preview h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.rubric-preview-scale {
    max-width: 600px;
}

.rubric-preview-bar {
    display: flex;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.rubric-preview-segment {
    flex: 1;
    transition: flex 0.3s;
}

.rubric-preview-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

/* Application Configuration */
.config-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.config-item {
    display: flex;
    flex-direction: column;
}

.config-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.config-input {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.config-input:read-only {
    background: #f8f9fa;
    color: #666;
}

.config-helper-text {
    font-size: 12px;
    color: #666;
    margin: 6px 0 0 0;
    line-height: 1.4;
}
