/* Assessment Styles */
:root {
    --primary-color: #2196f3;
    --primary-dark: #1976d2;
    --primary-light: #bbdefb;
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --background-light: #f8f9fa;
    --shadow-color: rgba(0,0,0,0.1);
}

.prt-assessment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Progress Bar */
.prt-progress-container {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.prt-progress {
    height: 100%;
    background-color: #4CAF50;
    width: 0;
    transition: width 0.3s ease;
}

.prt-progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 20px;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

/* Category Sections */
.prt-category-section {
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.prt-category-section.active {
    display: block;
}

.prt-category-section h3 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e5e5;
    color: #333;
}

/* Questions */
.prt-question {
    margin-bottom: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.prt-question-text {
    margin: 0 0 15px;
    font-size: 16px;
    color: #333;
    line-height: 1.4;
}

/* Answer Options */
.prt-answers {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
}

.prt-answer {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: 15px 10px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.prt-answer:hover {
    background: #f0f1f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.prt-answer input[type="radio"] {
    display: none;
}

.prt-radio {
    width: 36px;
    height: 36px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    margin-bottom: 8px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prt-radio:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.prt-answer input[type="radio"]:checked + .prt-radio {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.prt-answer input[type="radio"]:checked + .prt-radio:before {
    transform: scale(1);
}

.prt-answer input[type="radio"]:checked ~ .prt-label {
    color: #4CAF50;
    font-weight: 600;
}

.prt-answer input[type="radio"]:checked ~ .prt-radio {
    animation: pulse 0.3s ease-in-out;
}

.prt-label {
    font-size: 16px;
    color: #555;
    margin-top: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Add ripple effect on click */
.prt-answer:active {
    transform: scale(0.98);
}

/* Make the radio options more responsive on mobile */
@media (max-width: 600px) {
    .prt-answers {
        flex-direction: column;
        gap: 10px;
    }

    .prt-answer {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        width: 100%;
    }

    .prt-radio {
        margin-bottom: 0;
    }
}

/* Navigation */
.prt-navigation {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.prt-prev-btn,
.prt-next-btn,
.prt-submit-btn,
.prt-retake-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.prt-prev-btn {
    background-color: #f0f0f0;
    color: #333;
}

.prt-next-btn,
.prt-submit-btn {
    background-color: #4CAF50;
    color: white;
}

.prt-prev-btn:hover {
    background-color: #e0e0e0;
}

.prt-next-btn:hover,
.prt-submit-btn:hover {
    background-color: #45a049;
}

/* Results Section */
.prt-results-content {
    text-align: center;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.prt-results-content h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 32px;
}

.prt-overall-score {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.prt-overall-score h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

.prt-score {
    font-size: 64px;
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 10px;
}

.prt-level {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.prt-level-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.prt-category-scores {
    margin-bottom: 40px;
}

.prt-category-scores h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 24px;
}

.prt-category-score {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.prt-category-score:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.prt-category-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.prt-score-bar {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.prt-score-fill {
    height: 100%;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    position: relative;
}

.prt-score-value {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.prt-recommendations {
    text-align: left;
    margin-top: 40px;
}

.prt-recommendations h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

.prt-recommendation {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
    transition: transform 0.2s ease;
}

.prt-recommendation:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.prt-recommendation h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.prt-recommendation p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.prt-retake-btn {
    margin-top: 40px;
    padding: 12px 30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.prt-retake-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.prt-retake-btn:active {
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .prt-results-content {
        padding: 20px;
    }

    .prt-score {
        font-size: 48px;
    }

    .prt-level {
        font-size: 20px;
    }

    .prt-recommendation {
        padding: 15px;
    }
}
