/* Score resultaat opmaak */

.main-content {
    margin-left: 200px; /* Ruimte voor sidenav */
    padding: 20px;
    max-width: 1200px;
}

@media screen and (max-width: 768px) {
    .main-content {
        margin-left: 10px; 
        margin-right: 10px;
        padding: 10px;
    }
    /* Andere responsieve stijlregels... */
}

.score-result {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
}

.score.passed {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
}

.score.failed {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid #F44336;
}

.score.passed .score-result {
    color: #2E7D32;
    background-color: rgba(76, 175, 80, 0.2);
}

.score.failed .score-result {
    color: #C62828;
    background-color: rgba(244, 67, 54, 0.2);
}

/* Voortgangsbalk voor de quiz */
.question-progress {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background-color: #28AFB0;
    transition: width 0.3s ease;
}

/* Foutmelding stijlen */
.error-container {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.error-container h3 {
    color: #c62828;
    margin-top: 0;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.loading:after {
    content: "";
    display: inline-block;
    width: 12px;
    text-align: left;
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60% { content: "..."; }
    80%, 100% { content: ""; }
}

/* Quiz container styling */
.quiz-container {
    background-color: #ffffff;
    padding: 30px;
    margin: 200px, 0px, 0px, 0px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.welcome-screen {
    text-align: center;
    padding: 20px;
}

.welcome-screen h2 {
    color: #333333;
    margin-bottom: 20px;
}

.welcome-screen p {
    color: #555555;
    margin-bottom: 15px;
    font-size: 16px;
}

.exam-tips {
    text-align: left;
    background-color: #f9f9f9;
    border-left: 4px solid #28AFB0;
    padding: 15px;
    margin-top: 30px;
    border-radius: 0 5px 5px 0;
}

.exam-tips h3 {
    color: #333;
    margin-top: 0;
}

.exam-tips ul {
    padding-left: 20px;
}

.exam-tips li {
    margin-bottom: 10px;
}

/* Question styling */
.quiz-question {
    animation: fadeIn 0.5s;
}

.category-name {
    display: inline-block;
    background-color: #efde93;
    color: #333333;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.quiz-question h3 {
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.answer {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.answer:hover {
    border-color: #28AFB0;
    background-color: #f9f9f9;
}

.answer.selected {
    border-color: #28AFB0;
    background-color: rgba(40, 175, 176, 0.1);
}

.answer input[type="radio"] {
    margin-right: 15px;
}

.answer label {
    cursor: pointer;
    flex: 1;
}

.navigation {
    display: flex;
    justify-content: flex-end;
}

.navigation button {
    background-color: #28AFB0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s ease;
}

.navigation button:hover {
    background-color: #1d8a8b;
}

.navigation button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Result styling */
.quiz-results {
    animation: fadeIn 0.5s;
}

.quiz-results h2 {
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
}

.results-details h3 {
    color: #333333;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.result-item {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #ddd;
}

.result-item.correct {
    border-left-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

.result-item.incorrect {
    border-left-color: #F44336;
    background-color: rgba(244, 67, 54, 0.05);
}

.result-item .question {
    font-weight: bold;
    margin-bottom: 10px;
}

.result-item .your-answer {
    margin-bottom: 5px;
}

.result-item .correct-answer {
    color: #4CAF50;
    font-weight: bold;
}

.actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.primary-button {
    background-color: #28AFB0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.primary-button:hover {
    background-color: #1d8a8b;
}

.primary-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Quiz Settings */
.quiz-settings {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.setting-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.setting-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333333;
}

.setting-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    background-color: #f9f9f9;
}

/* Responsive design for mobile */
@media screen and (max-width: 768px) {
    .quiz-settings {
        flex-direction: column;
        align-items: stretch;
    }
    
    .setting-group {
        width: 100%;
    }
    
    .primary-button {
        width: 100%;
    }
    
    .quiz-container {
        padding: 15px;
    }
    
    .answer {
        padding: 10px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}