/* Enhanced Assessment Results Styles */

/* Modal base styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
}

.results-modal-content {
    max-width: 800px;
    padding: 0;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 20px;
}

.close:hover,
.close:focus {
    color: #000;
}

/* Results container */
.results-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
}

/* Overall score section */
.overall-score {
    text-align: center;
    margin-bottom: 40px;
}

.score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    position: relative;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
}

.score-label {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #666;
}

.readiness-level {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.readiness-message {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Category breakdown */
.category-breakdown {
    margin: 40px 0;
}

.category-breakdown h3 {
    margin-bottom: 20px;
    color: #333;
}

.category-item {
    margin-bottom: 20px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.category-name {
    font-weight: 600;
    color: #333;
}

.category-score {
    font-size: 14px;
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

/* Recommendations section */
.recommendations {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.recommendations h3 {
    margin-top: 0;
    color: #333;
}

.priority-items {
    list-style: none;
    padding: 0;
}

.priority-item {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: start;
}

.priority-item:last-child {
    border-bottom: none;
}

.priority-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Next steps section */
.next-steps {
    margin-top: 30px;
    padding: 20px;
    background-color: #e8f4f8;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.next-steps h4 {
    margin-top: 0;
    color: #333;
}

.next-steps ol {
    margin-bottom: 0;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.btn-primary {
    background-color: #2196F3;
    color: white;
}

.btn-primary:hover {
    background-color: #1976D2;
}

.btn-secondary {
    background-color: white;
    color: #2196F3;
    border: 2px solid #2196F3;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

/* Colour coding for scores */
.excellent { color: #4CAF50; }
.good { color: #8BC34A; }
.moderate { color: #FF9800; }
.poor { color: #F44336; }

.progress-excellent { background-color: #4CAF50; }
.progress-good { background-color: #8BC34A; }
.progress-moderate { background-color: #FF9800; }
.progress-poor { background-color: #F44336; }

/* Responsive design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px auto;
    }
    
    .results-container {
        padding: 20px;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    .score-text {
        font-size: 36px;
    }
    
    .readiness-level {
        font-size: 20px;
    }
    
    .recommendations {
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}