* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Card Styles */
.category-card, .quiz-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Quiz Container */
.quiz-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.question-text {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.option:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.option.selected {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Result Styles */
.correct-answer {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin-bottom: 15px;
}

.wrong-answer {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin-bottom: 15px;
}

.result-badge-correct {
    color: #28a745;
    font-weight: bold;
}

.result-badge-wrong {
    color: #dc3545;
    font-weight: bold;
}

.explanation {
    background: #fff3cd;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 14px;
}

/* Progress Bar */
.progress {
    height: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.progress-bar {
    transition: width 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-card {
        margin-bottom: 15px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .option {
        padding: 12px;
        font-size: 14px;
    }
    
    .quiz-container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Timer */
.timer {
    font-size: 24px;
    font-weight: bold;
    color: #dc3545;
    text-align: center;
    margin-bottom: 20px;
}

/* Score Card */
.score-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
}

.score-number {
    font-size: 48px;
    font-weight: bold;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: #007bff;
    color: white;
    padding: 12px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}