.quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #0a0a0a;
    min-height: 100vh;
    margin-top: 5%;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-header h1 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.quiz-header p {
    color: #888;
    font-size: 1.1em;
}

.quiz-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.quiz-card {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(26, 176, 78, 0.2);
    border-color: #1AB04E;
}

.quiz-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quiz-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1AB04E 0%, #158f3f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
}

.quiz-card-title h3 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.5em;
}

.quiz-difficulty {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.difficulty-easy {
    background: rgba(26, 176, 78, 0.2);
    color: #1AB04E;
}

.difficulty-medium {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.difficulty-hard {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.quiz-card-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2a2a2a;
}

.quiz-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.quiz-description {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.start-quiz-btn {
    width: 100%;
    padding: 12px 24px;
    background: #1AB04E;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-quiz-btn:hover {
    background: #158f3f;
    transform: scale(1.02);
}

.quiz-section {
    display: none;
    background: #1a1a1a;
    border-radius: 15px;
    padding: 40px;
    border: 1px solid #2a2a2a;
}

.quiz-section.active {
    display: block;
}

.quiz-progress {
    background: #0f0f0f;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    color: #888;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1AB04E 0%, #158f3f 100%);
    transition: width 0.3s ease;
}

.question-container {
    margin-bottom: 30px;
}

.question-number {
    color: #1AB04E;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 10px;
}

.question-text {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 25px;
    line-height: 1.5;
}

.answers-grid {
    display: grid;
    gap: 15px;
}

.answer-option {
    background: #0f0f0f;
    border: 2px solid #2a2a2a;
    border-radius: 10px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #aaa;
    font-size: 1em;
}

.answer-option:hover {
    border-color: #1AB04E;
    background: #1a1a1a;
    color: #fff;
}

.answer-option.selected {
    border-color: #1AB04E;
    background: rgba(26, 176, 78, 0.1);
    color: #fff;
}

.answer-option.correct {
    border-color: #1AB04E;
    background: rgba(26, 176, 78, 0.2);
    color: #1AB04E;
}

.answer-option.incorrect {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.answer-option.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn {
    background: #2a2a2a;
    color: #fff;
}

.prev-btn:hover {
    background: #3a3a3a;
}

.next-btn, .submit-btn {
    background: #1AB04E;
    color: #000;
}

.next-btn:hover, .submit-btn:hover {
    background: #158f3f;
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quiz-results {
    display: none;
    background: #1a1a1a;
    border-radius: 15px;
    padding: 40px;
    border: 1px solid #2a2a2a;
    text-align: center;
}

.quiz-results.active {
    display: block;
}

.results-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.results-title {
    color: #fff;
    font-size: 2em;
    margin-bottom: 10px;
}

.results-score {
    font-size: 3em;
    font-weight: bold;
    color: #1AB04E;
    margin: 20px 0;
}

.results-message {
    color: #aaa;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.results-breakdown {
    background: #0f0f0f;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
    color: #aaa;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    color: #888;
}

.breakdown-value {
    font-weight: 600;
    color: #fff;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.retry-btn, .back-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn {
    background: #1AB04E;
    color: #000;
}

.retry-btn:hover {
    background: #158f3f;
}

.back-btn {
    background: #2a2a2a;
    color: #fff;
}

.back-btn:hover {
    background: #3a3a3a;
}

@media (max-width: 768px) {
    .quiz-container {
        padding: 20px 15px;
    }
    
    .quiz-header h1 {
        font-size: 2em;
    }
    
    .quiz-list {
        grid-template-columns: 1fr;
    }
    
    .quiz-section, .quiz-results {
        padding: 25px 20px;
    }
    
    .question-text {
        font-size: 1.1em;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .retry-btn, .back-btn {
        width: 100%;
    }
}