/**
 * CELPIP Pro Public Styles
 */

.celpip-student-dashboard,
.celpip-evaluator-dashboard {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.celpip-dashboard-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2271b1;
}

.celpip-dashboard-header h1 {
    margin: 0 0 10px;
}

.celpip-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.celpip-section h2 {
    margin: 0 0 15px;
    font-size: 20px;
    color: #2271b1;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Test Cards */
.celpip-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.celpip-test-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.celpip-test-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.celpip-test-card h3 {
    margin: 0 0 10px;
    color: #2271b1;
}

.celpip-test-card .test-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.celpip-test-card .test-actions {
    display: flex;
    gap: 10px;
}

.celpip-test-card .button {
    flex: 1;
    text-align: center;
}

/* Test Interface */
.celpip-test-interface {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.celpip-test-header {
    background: #2271b1;
    color: #fff;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.celpip-test-timer {
    font-size: 24px;
    font-weight: bold;
}

.celpip-test-progress {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #2271b1;
    transition: width 0.3s;
}

.celpip-question-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.celpip-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.celpip-question-content {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.celpip-question-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.celpip-option-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.celpip-option-item:hover {
    background: #f9f9f9;
    border-color: #2271b1;
}

.celpip-option-item input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
}

.celpip-question-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.celpip-answer-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.celpip-answer-textarea {
    min-height: 200px;
    resize: vertical;
}

/* Results Page */
.celpip-results-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.celpip-score-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.celpip-score-summary .score-value {
    font-size: 72px;
    font-weight: bold;
    margin: 20px 0;
}

.celpip-score-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.section-score {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.section-score h3 {
    margin: 0 0 10px;
    color: #2271b1;
}

.section-score .score {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

/* Evaluator Dashboard */
.celpip-evaluations-table {
    width: 100%;
    border-collapse: collapse;
}

.celpip-evaluations-table th,
.celpip-evaluations-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.celpip-evaluations-table th {
    background: #f9f9f9;
    font-weight: 600;
}

.celpip-evaluations-table tr:hover {
    background: #f9f9f9;
}

.celpip-evaluation-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
}

.evaluation-grading {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .celpip-tests-grid {
        grid-template-columns: 1fr;
    }
    
    .celpip-test-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .celpip-score-breakdown {
        grid-template-columns: 1fr;
    }
}
