body{font-family:Arial,sans-serif;background:#f6f7fb;margin:0;padding:20px;}
h1,h2,h3{color:#222;}
#quizApp label{display:block;margin:6px 0;}
button{padding:10px 16px;background:#2b6ef6;color:#fff;border:none;border-radius:6px;cursor:pointer;}
button:disabled{background:#9ca3af;cursor:not-allowed;opacity:0.6;}
a{margin-right:10px;color:#2b6ef6;text-decoration:none;}
canvas{background:#fff;border:1px solid #ccc;padding:10px;margin-top:20px;}


.question-block {
    margin-bottom: 30px;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.question-text {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Modern Creative Rating System */
.rating-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    border: 2px solid #e2e8f0;
}

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rating-option:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.rating-option.hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.rating-option.selected {
    transform: translateY(-10px) scale(1.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #5a67d8;
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.rating-emoji {
    font-size: 3em;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.rating-option:hover .rating-emoji {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.rating-option.selected .rating-emoji {
    transform: scale(1.3);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.rating-text {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.rating-option.selected .rating-text {
    color: white;
    font-weight: 700;
}

.rating-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rating-option:hover .rating-bar {
    background: #cbd5e0;
    height: 6px;
}

.rating-option.selected .rating-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 6px;
}

.rating-option.selected .rating-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Selected Answer Display */
.selected-answer-display {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.selected-label {
    font-size: 14px;
    opacity: 0.9;
}

.selected-value {
    font-size: 16px;
    font-weight: 700;
}

/* Question Header Enhancements */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.question-indicator {
    display: flex;
    gap: 8px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    transition: all 0.3s ease;
}

.indicator-dot:nth-child(1) { animation: pulse 2s infinite; }
.indicator-dot:nth-child(2) { animation: pulse 2s infinite 0.5s; }
.indicator-dot:nth-child(3) { animation: pulse 2s infinite 1s; }

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Enhanced Navigation Buttons */
.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.nav-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.nav-btn.enabled {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.prev-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .rating-container {
        gap: 15px;
        padding: 15px;
    }
    
    .rating-option {
        min-width: 100px;
        padding: 15px 10px;
    }
    
    .rating-emoji {
        font-size: 2.5em;
    }
    
    .rating-text {
        font-size: 12px;
    }
    
    .question-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rating-container {
        gap: 10px;
        padding: 10px;
    }
    
    .rating-option {
        min-width: 80px;
        padding: 12px 8px;
    }
    
    .rating-emoji {
        font-size: 2em;
    }
    
    .rating-text {
        font-size: 11px;
    }
}

/* New Quiz Interface Styles */
.quiz-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.progress-bar-container {
    margin-bottom: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    color: #666;
    font-weight: 500;
    font-size: 1.1em;
}

.question-container {
    text-align: center;
}

.question-number {
    color: #667eea;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 600;
}

.question-text {
    font-size: 1.4em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333;
    font-weight: 400;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.nav-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.prev-btn {
    background: #6c757d;
    color: white;
}

.prev-btn:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
}

.prev-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .navigation-buttons {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .question-text {
        font-size: 1.2em;
    }
}