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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
}

/* File Upload Styles */
.upload-section {
    margin-bottom: 30px;
    text-align: center;
}

.file-upload {
    margin-bottom: 20px;
}

.file-upload-label {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-upload-label:hover {
    background-color: #2980b9;
}

.file-upload input[type="file"] {
    display: none;
}

#fileName {
    margin-top: 10px;
    font-size: 14px;
    color: #7f8c8d;
}

/* Quiz Container Styles */
.quiz-container {
    margin-bottom: 30px;
}

.question {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.question h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.option:hover {
    background-color: #f0f0f0;
}

.option input {
    margin-right: 10px;
}

/* Controls Styles */
.controls {
    text-align: center;
    margin-bottom: 30px;
}

.btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #27ae60;
}

.btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Results Container Styles */
.results-container {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    display: none;
}

.results-container.show {
    display: block;
}

.score {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.result-details {
    margin-top: 20px;
}

.result-item {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: left;
}

.result-item.correct {
    background-color: rgba(46, 204, 113, 0.2);
    border-left: 4px solid #2ecc71;
}

.result-item.incorrect {
    background-color: rgba(231, 76, 60, 0.2);
    border-left: 4px solid #e74c3c;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .question {
        padding: 15px;
    }
}