/* Rubric Review Section */
.rubric-review-section {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
}

.rubric-review-section.hidden {
    display: none;
}

.review-header {
    text-align: center;
    margin-bottom: 2rem;
}

.review-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.review-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.rubric-review-cards {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.rubric-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.rubric-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.rubric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.rubric-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rubric-card-title h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
}

.rubric-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rubric-badge.custom {
    background: #fef3c7;
    color: #d97706;
}

.rubric-card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit-rubric {
    padding: 0.5rem 1rem;
    background: white;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit-rubric:hover {
    background: var(--primary);
    color: white;
}

.rubric-card-body {
    color: var(--text);
}

.rubric-field {
    margin-bottom: 1rem;
}

.rubric-field-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.rubric-field-value {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

.rubric-field-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rubric-field-list li {
    padding: 0.5rem 0.75rem;
    background: var(--light-gray);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.85rem;
}

.rubric-field-list li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

.review-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.review-actions button {
    flex: 1;
    max-width: 250px;
}

/* Rubric Edit Modal Enhancements */
.rubric-edit-form {
    display: grid;
    gap: 1.5rem;
}

.rubric-edit-form .form-group {
    margin-bottom: 0;
}

.rubric-edit-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.rubric-edit-form input,
.rubric-edit-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.rubric-edit-form input:focus,
.rubric-edit-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.rubric-edit-form textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.pattern-list-edit {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pattern-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.pattern-item input {
    flex: 1;
}

.btn-remove-pattern {
    padding: 0.5rem 0.75rem;
    background: #fee2e2;
    border: 1.5px solid #ef4444;
    color: #dc2626;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-remove-pattern:hover {
    background: #ef4444;
    color: white;
}

.btn-add-pattern {
    padding: 0.5rem 1rem;
    background: var(--primary-bg);
    border: 1.5px dashed var(--primary);
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-add-pattern:hover {
    background: var(--primary);
    color: white;
    border-style: solid;
}