.vlx-trivia-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Editor Mode - Show everything immediately without animations */
.vlx-trivia-editor .vlx-trivia-question-index,
.vlx-trivia-editor .vlx-trivia-score,
.vlx-trivia-editor .vlx-trivia-results-title,
.vlx-trivia-editor .vlx-trivia-question-container,
.vlx-trivia-editor .vlx-trivia-answer,
.vlx-trivia-editor .vlx-trivia-nav-btn,
.vlx-trivia-editor .vlx-trivia-results-container,
.vlx-trivia-editor .vlx-trivia-result-item,
.vlx-trivia-editor .vlx-trivia-result-prev,
.vlx-trivia-editor .vlx-trivia-result-next {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.vlx-trivia-editor .vlx-trivia-results-container::before {
    opacity: 1 !important;
    transition: none !important;
}

.vlx-trivia-wrapper * {
    box-sizing: border-box;
}

/* Information Bar */
.vlx-trivia-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vlx-trivia-question-index,
.vlx-trivia-score,
.vlx-trivia-results-title {
    font-size: 18px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vlx-trivia-question-index {
    transform: translateX(-20px);
}

.vlx-trivia-score {
    transform: translateX(20px);
}

.vlx-trivia-score.vlx-score-updating {
    animation: vlx-score-pulse 0.6s ease-in-out;
}

@keyframes vlx-score-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.vlx-trivia-results-title {
    width: 100%;
    text-align: center;
    transform: translateY(-10px);
}

.vlx-trivia-question-index.vlx-animate-in,
.vlx-trivia-score.vlx-animate-in,
.vlx-trivia-results-title.vlx-animate-in {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Main Content Area */
.vlx-trivia-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.vlx-trivia-question-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.vlx-trivia-question-container.vlx-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.vlx-trivia-question {
    font-size: 24px;
    font-weight: 600;
    padding: 20px;
}

/* Answers */
.vlx-trivia-answers {
    display: flex;
    flex-direction: column;
}

.vlx-trivia-answer {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    opacity: 0;
    transform: translateX(-15px);
}

.vlx-trivia-answer.vlx-animate-in {
    opacity: 1;
    transform: translateX(0);
}

.vlx-trivia-answer:hover:not(.disabled):not(.correct):not(.incorrect) {
    opacity: 0.8;
}

.vlx-trivia-answer.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vlx-trivia-answer.selected {
    /* Styles applied via Elementor controls */
}

.vlx-trivia-answer.correct {
    /* Styles applied via Elementor controls */
}

.vlx-trivia-answer.incorrect {
    /* Styles applied via Elementor controls */
}

/* Checkbox */
.vlx-trivia-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #ccc;
    background: #fff;
    margin-right: 12px;
}

.vlx-trivia-checkbox i {
    display: none;
}

.vlx-trivia-answer.selected .vlx-trivia-checkbox i,
.vlx-trivia-answer.correct .vlx-trivia-checkbox i,
.vlx-trivia-answer.incorrect .vlx-trivia-checkbox i {
    display: block;
}

/* Hide checkbox when disabled */
.vlx-trivia-no-checkbox .vlx-trivia-checkbox {
    display: none !important;
}

/* Hide navigation when disabled */
.vlx-trivia-no-nav .vlx-trivia-navigation {
    display: none !important;
}

.vlx-trivia-answer-text {
    flex: 1;
    font-size: 18px;
}

/* Navigation */
.vlx-trivia-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.vlx-trivia-navigation.vlx-nav-hidden {
    height: 0 !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 0;
    display: none !important;
}

.vlx-trivia-nav-action {
    cursor: pointer;
    user-select: none;
}

.vlx-trivia-nav-action.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.vlx-trivia-nav-btn {
    padding: 12px 24px;
    font-size: 16px;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(15px);
}

.vlx-trivia-nav-btn i,
.vlx-trivia-nav-btn svg {
    background: none !important;
}

.vlx-trivia-nav-btn.vlx-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.vlx-trivia-nav-btn:hover:not(.disabled) {
    opacity: 0.8;
}

.vlx-trivia-prev {
    margin-right: auto;
    transition-delay: 0.2s;
}

.vlx-trivia-next {
    margin-left: auto;
    transition-delay: 0.25s;
}

/* Results */
.vlx-trivia-results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    background-repeat: no-repeat;
    position: relative;
}

/* Background fade-in animation (applied to ::before pseudo-element) */
.vlx-trivia-results-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    background-repeat: inherit;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

.vlx-trivia-results-container.vlx-animate-in::before {
    opacity: 1;
}

.vlx-trivia-result-item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.vlx-trivia-results-container.vlx-animate-in .vlx-trivia-result-item {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.vlx-trivia-result-content {
    padding: 20px;
}

.vlx-trivia-result-content h1,
.vlx-trivia-result-content h2,
.vlx-trivia-result-content h3,
.vlx-trivia-result-content h4,
.vlx-trivia-result-content h5,
.vlx-trivia-result-content h6 {
    margin-top: 0;
}

.vlx-trivia-result-content h1 {
    font-size: 220%;
}

.vlx-trivia-result-content h2 {
    font-size: 180%;
}

.vlx-trivia-result-content h3 {
    font-size: 150%;
}

.vlx-trivia-result-content h4 {
    font-size: 125%;
}

.vlx-trivia-result-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.vlx-trivia-result-button:hover {
    opacity: 0.8;
}

/* Results Navigation */
.vlx-trivia-result-prev,
.vlx-trivia-result-next {
    font-size: 24px;
    padding: 0;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vlx-trivia-result-prev i,
.vlx-trivia-result-prev svg,
.vlx-trivia-result-next i,
.vlx-trivia-result-next svg {
    background: none !important;
}

.vlx-trivia-result-prev.vlx-animate-in,
.vlx-trivia-result-next.vlx-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.vlx-trivia-result-prev:hover,
.vlx-trivia-result-next:hover {
    opacity: 0.7 !important;
}

.vlx-trivia-result-prev {
    transition-delay: 0.2s;
}

.vlx-trivia-result-next {
    transition-delay: 0.25s;
}

.vlx-trivia-result-bullets {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.vlx-trivia-result-bullet {
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vlx-trivia-result-bullet:hover {
    opacity: 0.7;
}

/* Empty State */
.vlx-trivia-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vlx-trivia-question {
        font-size: 20px;
        padding: 15px;
    }

    .vlx-trivia-answer {
        padding: 12px 15px;
    }

    .vlx-trivia-answer-text {
        font-size: 16px;
    }

    .vlx-trivia-nav-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

