* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timer-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.timer-icon {
    font-size: 1.5rem;
}

.timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    min-width: 80px;
    text-align: center;
}

.timer.warning {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0.5;
    }
}

.instructions {
    background: linear-gradient(135deg, #f6f8fc 0%, #e9ecf5 100%);
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.instructions p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Questions Container */
.questions-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.question-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.question-header {
    margin-bottom: 15px;
}

.question-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.6;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.option:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateX(5px);
}

.option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option input[type="radio"]:checked+.option-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.option input[type="radio"]:checked~.option-text {
    font-weight: 600;
    color: #2d3748;
}

.option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: white;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #667eea;
    transition: all 0.2s ease;
}

.option-text {
    flex: 1;
    font-size: 1rem;
    color: #4a5568;
}

/* Correct and Wrong Answer Highlighting */
.option.correct {
    background: #d4edda !important;
    border-color: #28a745 !important;
    animation: correctPulse 0.5s ease;
}

.option.correct .option-label {
    background: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
}

.option.wrong {
    background: #f8d7da !important;
    border-color: #dc3545 !important;
    animation: wrongShake 0.5s ease;
}

.option.wrong .option-label {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

@keyframes correctPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes wrongShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.option.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Submit Button */
.submit-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.3rem;
}

/* Result Container */
.result-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: linear-gradient(135deg, #f6f8fc 0%, #e9ecf5 100%);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.result-card.correct {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.result-card.wrong {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
}

.result-card.unattempted {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.result-label {
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 500;
}

.final-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.score-label {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
}

.score-value {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 20px;
    }

    .title {
        font-size: 1.5rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .timer-container {
        width: 100%;
        justify-content: center;
    }

    .question-card {
        padding: 20px;
    }

    .question-text {
        font-size: 1rem;
    }

    .option {
        padding: 12px 15px;
    }

    .option-label {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .option-text {
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 14px 36px;
        font-size: 1rem;
        width: 100%;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .result-value {
        font-size: 2rem;
    }

    .score-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.3rem;
    }

    .timer {
        font-size: 1.2rem;
    }

    .instructions p {
        font-size: 0.85rem;
    }

    .question-number {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .question-text {
        font-size: 0.95rem;
    }
}