/* Result Page Styles - Updated to match other pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fb;
    color: #333;
    min-height: 100vh;
    /* padding-top: 70px; */
    /* Account for fixed navbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.results-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #4361ee;
}

.results-title {
    font-size: 2.5rem;
    color: #4361ee;
    margin-bottom: 0.5rem;
}

.results-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.results-summary {
    margin-bottom: 2rem;
}

.summary-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.summary-item {
    text-align: center;
    padding: 1rem;
}

.label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #4361ee;
}

.results-details {
    margin-bottom: 2rem;
}

.results-details h2 {
    font-size: 1.8rem;
    color: #4361ee;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.question-result {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.question-result:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.question-result.correct {
    border-left: 4px solid #4cc9f0;
    background: rgba(76, 201, 240, 0.05);
}

.question-result.incorrect {
    border-left: 4px solid #f72585;
    background: rgba(247, 37, 133, 0.05);
}

.question-text {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.user-answer {
    color: #4361ee;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.user-answer.correct {
    color: #4cc9f0;
}

.user-answer.incorrect {
    color: #f72585;
}

.correct-answer {
    color: #4cc9f0;
    font-weight: bold;
}

.answer-label {
    font-weight: bold;
    color: #666;
    margin-right: 0.5rem;
}

.results-actions {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    margin: 0.5rem;
    background: #4361ee;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 180px;
    text-align: center;
}

.btn:hover {
    background: #3a0ca3;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: #3a0ca3;
}

.btn-secondary:hover {
    background: #4361ee;
}

/* Performance indicator styling */
.performance-indicator {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.performance-score {
    font-size: 4rem;
    font-weight: bold;
    color: #4361ee;
    margin: 1rem 0;
}

.performance-message {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.performance-message.excellent {
    color: #4cc9f0;
}

.performance-message.good {
    color: #4cc9f0;
}

.performance-message.average {
    color: #fbbf24;
}

.performance-message.improve {
    color: #f72585;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .summary-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .results-container {
        margin: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .results-container {
        margin: 1rem;
        padding: 1rem;
    }

    .results-title {
        font-size: 2rem;
    }

    .summary-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .value {
        font-size: 1.8rem;
    }

    .results-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        margin: 0.25rem 0;
    }

    .performance-score {
        font-size: 3rem;
    }

    .performance-message {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .results-title {
        font-size: 1.8rem;
    }

    .results-subtitle {
        font-size: 1rem;
    }

    .summary-item {
        padding: 0.8rem;
    }

    .value {
        font-size: 1.5rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .performance-score {
        font-size: 2.5rem;
    }

    .performance-message {
        font-size: 1.1rem;
    }

    .question-result {
        padding: 1rem;
    }
}