.quiz-widget {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

.quiz-widget .quiz-title {
    color: #1D1D1D;
    text-align: center;
    font-size: 26px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 20px;
    text-align: center;
    margin-bottom: 50px;

}

.quiz-widget .slider-container {
    position: relative;
    margin: 30px 0;
}

.quiz-widget .slider-track {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.quiz-widget .slider-track.answered {
    background: linear-gradient(to right, #ff4444 0%, #ffaa00 25%, #4a7c59 50%, #4a7c59 50%, #ffaa00 75%, #ff4444 100%);
}

.quiz-widget .slider-thumb {
    position: absolute;
    top: -8px;
    width: 24px;
    height: 24px;
    background: #007bff;
    border-radius: 50%;
    cursor: grab;
    transition: background-color 0.3s ease;
    transform: translateX(-50%);
    z-index: 2;
}

.quiz-widget .slider-thumb:hover {
    background: #0056b3;
}

.quiz-widget .slider-thumb:active {
    cursor: grabbing;
}

.quiz-widget .slider-thumb.answered {
    background: #4a7c59;
}

.quiz-widget .slider-thumb.pulse {
    animation: quiz-pulse 2s infinite;
}

@keyframes quiz-pulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
    100% { transform: translateX(-50%) scale(1); }
}

.quiz-widget .slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.quiz-widget .answer-display {
    display: none;
    margin-top: 20px;
}

.quiz-widget .answer-display.show {
    display: block;
}

.quiz-widget .user-answer {
    position: absolute;
    top: -40px;
    font-weight: bold;
    font-size: 16px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
width: 41px;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 10px;
height: 24px;
border-radius: 24px;
background: #EFF7F9;
}

.quiz-widget .correct-answer {
    display: none;
    margin: 30px auto 0;
    padding: 12px 24px;
    background: #4a7c59;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px;
    text-align: center;
    max-width: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.quiz-widget .correct-answer.show {
    display: block;
}

.quiz-widget .answer-explanation {
    margin-top: 20px;
    padding: 15px;
    background: #E8F4F8;
    border-radius: 8px;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

.quiz-widget .check-answer-btn {
    background: var(--GoldGrad);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.quiz-widget .check-answer-btn:hover:not(:disabled) {
    background: var(--GoldGrad);
    color: #fff;
}

.quiz-widget .check-answer-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
