/**
 * Academy Lesson Integration Styles
 */

.academy-peer-review-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.academy-peer-review-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.academy-peer-review-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.academy-peer-review-notice p {
    margin: 0;
    color: #856404;
}

/* Submission Form */
.academy-peer-review-submission-form {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.academy-peer-review-submission-form h4 {
    margin-top: 0;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

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

.btn-primary:hover {
    background: #005a87;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Submission Status */
.academy-peer-review-submission-status {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.academy-peer-review-submission-status h4 {
    margin-top: 0;
    color: #333;
}

.academy-peer-review-submission-status p {
    margin: 10px 0;
    color: #555;
}

.peer-review-info {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 4px;
    border-left: 4px solid #2196f3;
}

.peer-review-info h5 {
    margin-top: 0;
    color: #1976d2;
}

.peer-review-info p {
    margin: 8px 0;
    color: #1565c0;
}

/* Status indicators */
.status-submitted {
    color: #28a745;
    font-weight: 600;
}

.status-draft {
    color: #ffc107;
    font-weight: 600;
}

.status-pending {
    color: #17a2b8;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .academy-peer-review-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .academy-peer-review-submission-form,
    .academy-peer-review-submission-status {
        padding: 15px;
    }
    
    .form-actions {
        text-align: center;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.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 #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error messages */
.message {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Review form styles */
.academy-peer-review-form {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

.academy-peer-review-form h4 {
    margin-top: 0;
    color: #333;
}

.rubric-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.rubric-item h5 {
    margin-top: 0;
    color: #333;
}

.rubric-item p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.rubric-item input[type="number"] {
    width: 80px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.rubric-item textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 80px;
    margin-top: 10px;
}
