/* Test Management Styles */

/* Debug Info Styles */
.debug-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}
.debug-info h3 {
    margin: 0 0 10px 0;
    color: #495057;
}
.debug-info pre {
    background: #e9ecef;
    padding: 10px;
    border-radius: 4px;
    margin: 0;
    font-size: 12px;
    overflow-x: auto;
}

/* Test Detail Styles */
.test-detail {
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.test-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.test-detail-header h3 {
    margin: 0;
    color: #495057;
}

.test-detail-content {
    padding: 20px;
}

.test-question-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.test-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.test-question-id {
    font-weight: bold;
    color: #007bff;
}

.test-question-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #6c757d;
}

.test-question-text {
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.5;
}

.test-question-options {
    margin-top: 10px;
}

.test-detail-info {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.test-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.test-detail-meta span {
    font-size: 0.9em;
    color: #495057;
}

.test-detail-description {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #6c757d;
    font-style: italic;
}

/* Points Management Styles */
.total-points-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.total-points-info, .points-per-question-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.total-points-label, .points-per-question-label {
    font-weight: 500;
    color: #495057;
}

.total-points-value {
    font-weight: bold;
    font-size: 1.1em;
    color: #007bff;
}

.points-per-question-value {
    font-weight: 500;
    color: #6c757d;
}

.question-points-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9em;
}

.question-points-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.selected-question-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.selected-question-info {
    flex: 1;
    margin-right: 15px;
}

.selected-question-title {
    font-weight: 500;
    color: #495057;
    margin-bottom: 4px;
}

.selected-question-meta {
    font-size: 0.85em;
    color: #6c757d;
}

.selected-question-points {
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-label {
    font-size: 0.9em;
    color: #495057;
}

/* Edit Test Styles */
.test-detail-actions {
    display: flex;
    gap: 10px;
}

.edit-test-section {
    margin-top: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.edit-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.edit-test-header h3 {
    margin: 0;
    color: #495057;
}

.edit-test-content {
    padding: 20px;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
    border: 1px solid #ffc107;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.test-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.test-list-header h2 {
    margin: 0;
}
