/* Test Nivel Styles */
.test-container {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin: 40px auto;
    max-width: 800px;
}

.test-intro-icon {
    font-size: 60px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

/* Progress Bar */
.test-progress-wrapper {
    margin-bottom: 30px;
}

.test-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--color-body);
}

.test-progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: #e6e6e6;
    border-radius: 10px;
    overflow: hidden;
}

.test-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 10px;
}

/* Quiz Question */
.test-question-container {
    margin-bottom: 30px;
}

.test-question-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 30px;
    line-height: 1.4;
}

/* Options */
.test-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.test-option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    background-color: #fff;
    color: var(--color-body);
}

.test-option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.test-option-btn.selected {
    color: #fff;
    box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.3);
}

.option-letter {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    margin-right: 15px;
    font-weight: 600;
}

.test-option-btn.selected .option-letter {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Navigation Buttons */
.test-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Results */
.test-results-container {
    text-align: center;
}

.result-level-badge {
    display: inline-block;
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(var(--color-primary-rgb), 0.3);
}

.result-level-title {
    font-size: 32px;
    color: var(--color-heading);
    margin-bottom: 10px;
}

.result-score {
    font-size: 18px;
    color: var(--color-body);
    font-weight: 500;
    margin-bottom: 30px;
}

.result-details {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.result-detail-box {
    margin-bottom: 20px;
}

.result-detail-box h4 {
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-detail-box.strengths h4 {
    color: #28a745;
}

.result-detail-box.weaknesses h4 {
    color: #dc3545;
}

.result-recommendations {
    text-align: left;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.result-recommendations-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.share-section {
    margin-top: 50px;
    padding: 30px;
    background: var(--color-primary-opacity);
    border-radius: 10px;
}

/* Circular Progress for Results */
.circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 80%;
    max-height: 250px;
}
.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}
.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease-out;
    stroke: var(--color-primary);
}
.percentage {
    fill: var(--color-heading);
    font-family: sans-serif;
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: bold;
}
.level-text {
    fill: var(--color-body);
    font-family: sans-serif;
    font-size: 0.15em;
    text-anchor: middle;
}

@media (max-width: 768px) {
    .test-container {
        padding: 20px;
        margin: 20px auto;
    }
    .test-question-text {
        font-size: 20px;
    }
    .test-option-btn {
        padding: 12px 15px;
        font-size: 16px;
    }
}
