// Quiz List Styles
.quiz-list-container {
    padding: 20px;

    .quiz-list-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;

        .header-content {
            h1 {
                display: flex;
                align-items: center;
                gap: 10px;
                margin: 0 0 10px 0;
                font-size: 28px;
                color: #1e293b;

                svg {
                    font-size: 32px;
                    color: #3b82f6;
                }
            }

            p {
                margin: 0;
                color: #64748b;
                font-size: 14px;
            }
        }

        .create-quiz-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            background: #3b82f6;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;

            &:hover {
                background: #2563eb;
                transform: translateY(-1px);
                box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
            }

            svg {
                font-size: 20px;
            }
        }
    }

    .quiz-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 60px 20px;
        color: #64748b;

        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #e2e8f0;
            border-top-color: #3b82f6;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-bottom: 16px;
        }
    }

    .no-quizzes {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 400px;

        .no-quizzes-content {
            text-align: center;
            max-width: 400px;

            .no-quizzes-icon {
                font-size: 80px;
                color: #cbd5e1;
                margin-bottom: 20px;
            }

            h3 {
                margin: 0 0 10px 0;
                font-size: 24px;
                color: #1e293b;
            }

            p {
                margin: 0 0 24px 0;
                color: #64748b;
                font-size: 14px;
            }

            .create-first-quiz-btn {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                padding: 12px 24px;
                background: #3b82f6;
                color: white;
                border: none;
                border-radius: 8px;
                font-size: 14px;
                font-weight: 500;
                cursor: pointer;
                transition: all 0.2s;

                &:hover {
                    background: #2563eb;
                    transform: translateY(-1px);
                    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
                }
            }
        }
    }

    .quiz-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 24px;

        .quiz-card {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 20px;
            transition: all 0.2s;

            &:hover {
                border-color: #3b82f6;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
                transform: translateY(-2px);
            }

            .quiz-card-header {
                display: flex;
                gap: 16px;
                margin-bottom: 20px;

                .quiz-icon {
                    flex-shrink: 0;
                    width: 48px;
                    height: 48px;
                    background: #eff6ff;
                    border-radius: 10px;
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    svg {
                        font-size: 24px;
                        color: #3b82f6;
                    }
                }

                .quiz-info {
                    flex: 1;
                    min-width: 0;

                    h3 {
                        margin: 0 0 6px 0;
                        font-size: 18px;
                        color: #1e293b;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                    }

                    .quiz-description {
                        margin: 0;
                        font-size: 13px;
                        color: #64748b;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                    }
                }
            }

            .quiz-stats {
                display: flex;
                flex-direction: column;
                gap: 8px;
                margin-bottom: 16px;
                padding: 12px;
                background: #f8fafc;
                border-radius: 8px;

                .stat {
                    display: flex;
                    justify-content: space-between;
                    font-size: 13px;

                    .stat-label {
                        color: #64748b;
                    }

                    .stat-value {
                        color: #1e293b;
                        font-weight: 500;
                    }
                }
            }

            .quiz-actions {
                display: flex;
                gap: 8px;
                margin-bottom: 16px;

                .action-btn {
                    flex: 1;
                    padding: 8px;
                    border: 1px solid #e2e8f0;
                    background: white;
                    border-radius: 6px;
                    cursor: pointer;
                    transition: all 0.2s;
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    svg {
                        font-size: 18px;
                    }

                    &.edit-btn {
                        color: #3b82f6;

                        &:hover {
                            background: #eff6ff;
                            border-color: #3b82f6;
                        }
                    }

                    &.results-btn {
                        color: #8b5cf6;

                        &:hover {
                            background: #f5f3ff;
                            border-color: #8b5cf6;
                        }
                    }

                    &.preview-btn {
                        color: #10b981;

                        &:hover {
                            background: #ecfdf5;
                            border-color: #10b981;
                        }
                    }

                    &.delete-btn {
                        color: #ef4444;

                        &:hover {
                            background: #fef2f2;
                            border-color: #ef4444;
                        }

                        &:disabled {
                            opacity: 0.5;
                            cursor: not-allowed;
                        }
                    }

                    .mini-spinner {
                        width: 18px;
                        height: 18px;
                        border: 2px solid #fee2e2;
                        border-top-color: #ef4444;
                        border-radius: 50%;
                        animation: spin 0.6s linear infinite;
                    }
                }
            }

            .quiz-shortcode {
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 10px;
                background: #f8fafc;
                border-radius: 6px;
                font-size: 12px;

                label {
                    color: #64748b;
                    font-weight: 500;
                }

                code {
                    flex: 1;
                    padding: 4px 8px;
                    background: white;
                    border: 1px solid #e2e8f0;
                    border-radius: 4px;
                    color: #3b82f6;
                    font-family: 'Courier New', monospace;
                }

                .copy-shortcode-btn {
                    padding: 4px 12px;
                    background: white;
                    border: 1px solid #e2e8f0;
                    border-radius: 4px;
                    color: #64748b;
                    font-size: 11px;
                    cursor: pointer;
                    transition: all 0.2s;

                    &:hover {
                        background: #3b82f6;
                        color: white;
                        border-color: #3b82f6;
                    }
                }
            }
        }
    }
}

// Quiz Builder Styles
.quiz-builder-container {
    padding: 20px;

    .quiz-builder-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid #e2e8f0;

        .back-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            color: #64748b;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;

            &:hover {
                background: #f8fafc;
                color: #1e293b;
            }
        }

        h1 {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0;
            font-size: 24px;
            color: #1e293b;

            svg {
                font-size: 28px;
                color: #3b82f6;
            }
        }

        .header-actions {
            display: flex;
            gap: 12px;

            button {
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 10px 20px;
                border: none;
                border-radius: 6px;
                font-size: 14px;
                font-weight: 500;
                cursor: pointer;
                transition: all 0.2s;

                svg {
                    font-size: 18px;
                }
            }

            .preview-btn {
                background: white;
                border: 1px solid #e2e8f0;
                color: #64748b;

                &:hover {
                    background: #f8fafc;
                    color: #1e293b;
                }
            }

            .save-btn {
                background: #3b82f6;
                color: white;

                &:hover:not(:disabled) {
                    background: #2563eb;
                    transform: translateY(-1px);
                    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
                }

                &:disabled {
                    opacity: 0.6;
                    cursor: not-allowed;
                }
            }
        }
    }

    .quiz-builder-content {
        max-width: 900px;
        margin: 0 auto;

        .quiz-basic-info {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 24px;

            .form-group {
                margin-bottom: 20px;

                &:last-child {
                    margin-bottom: 0;
                }

                label {
                    display: block;
                    margin-bottom: 8px;
                    font-size: 14px;
                    font-weight: 500;
                    color: #1e293b;
                }

                input,
                textarea,
                select {
                    width: 100%;
                    padding: 10px 12px;
                    border: 1px solid #e2e8f0;
                    border-radius: 6px;
                    font-size: 14px;
                    color: #1e293b;
                    transition: all 0.2s;

                    &:focus {
                        outline: none;
                        border-color: #3b82f6;
                        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
                    }
                }

                small {
                    display: block;
                    margin-top: 6px;
                    font-size: 12px;
                    color: #64748b;
                }
            }
        }

        .quiz-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;

            .tab-btn {
                display: flex;
                align-items: center;
                gap: 8px;
                padding: 12px 20px;
                background: white;
                border: 1px solid #e2e8f0;
                border-radius: 8px 8px 0 0;
                color: #64748b;
                font-size: 14px;
                font-weight: 500;
                cursor: pointer;
                transition: all 0.2s;

                svg {
                    font-size: 18px;
                }

                &:hover {
                    background: #f8fafc;
                    color: #1e293b;
                }

                &.active {
                    background: white;
                    color: #3b82f6;
                    border-bottom-color: white;
                    position: relative;
                    z-index: 1;
                }
            }
        }

        .quiz-tab-content {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 0 12px 12px 12px;
            padding: 24px;
            margin-top: -1px;

            .questions-tab {
                .questions-header {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    margin-bottom: 24px;

                    h3 {
                        margin: 0;
                        font-size: 18px;
                        color: #1e293b;
                    }

                    .add-question-btn {
                        display: flex;
                        align-items: center;
                        gap: 6px;
                        padding: 8px 16px;
                        background: #3b82f6;
                        color: white;
                        border: none;
                        border-radius: 6px;
                        font-size: 13px;
                        font-weight: 500;
                        cursor: pointer;
                        transition: all 0.2s;

                        &:hover {
                            background: #2563eb;
                        }

                        svg {
                            font-size: 16px;
                        }
                    }
                }

                .questions-list {
                    display: flex;
                    flex-direction: column;
                    gap: 16px;
                }
            }
        }
    }
}

// Question Editor Styles
.question-editor {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;

    .question-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        background: white;
        border-bottom: 1px solid #e2e8f0;

        .question-title {
            display: flex;
            align-items: center;
            gap: 8px;

            .drag-handle {
                color: #cbd5e1;
                cursor: grab;

                &:active {
                    cursor: grabbing;
                }
            }

            h4 {
                margin: 0;
                font-size: 15px;
                color: #1e293b;
            }

            .collapse-btn {
                padding: 2px 8px;
                background: transparent;
                border: none;
                color: #64748b;
                font-size: 12px;
                cursor: pointer;
                transition: all 0.2s;

                &:hover {
                    color: #1e293b;
                }
            }
        }

        .question-actions {
            .delete-question-btn {
                padding: 6px;
                background: transparent;
                border: none;
                color: #ef4444;
                cursor: pointer;
                border-radius: 4px;
                transition: all 0.2s;

                &:hover {
                    background: #fef2f2;
                }

                svg {
                    font-size: 18px;
                }
            }
        }
    }

    .question-content {
        padding: 20px;

        .form-group {
            margin-bottom: 20px;

            &:last-child {
                margin-bottom: 0;
            }

            label {
                display: block;
                margin-bottom: 8px;
                font-size: 13px;
                font-weight: 500;
                color: #1e293b;
            }

            input,
            textarea {
                width: 100%;
                padding: 10px 12px;
                border: 1px solid #e2e8f0;
                border-radius: 6px;
                font-size: 14px;
                color: #1e293b;
                background: white;
                transition: all 0.2s;

                &:focus {
                    outline: none;
                    border-color: #3b82f6;
                    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
                }
            }

            .image-upload {
                .image-preview {
                    position: relative;
                    border: 1px solid #e2e8f0;
                    border-radius: 8px;
                    overflow: hidden;
                    background: white;
                    width: 60%;

                    img {
                        width: 100%;
                        height: auto;
                        display: block;
                    }

                    .image-actions {
                        position: absolute;
                        top: 8px;
                        right: 8px;
                        display: flex;
                        gap: 6px;

                        button {
                            padding: 6px 12px;
                            background: white;
                            border: none;
                            border-radius: 4px;
                            font-size: 12px;
                            cursor: pointer;
                            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                            transition: all 0.2s;

                            &.change-image-btn {
                                color: #3b82f6;

                                &:hover {
                                    background: #eff6ff;
                                }
                            }

                            &.remove-image-btn {
                                color: #ef4444;

                                &:hover {
                                    background: #fef2f2;
                                }
                            }
                        }
                    }
                }

                .upload-image-btn {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 8px;
                    width: 100%;
                    padding: 40px 20px;
                    background: white;
                    border: 2px dashed #e2e8f0;
                    border-radius: 8px;
                    color: #64748b;
                    font-size: 14px;
                    cursor: pointer;
                    transition: all 0.2s;

                    &:hover {
                        border-color: #3b82f6;
                        color: #3b82f6;
                        background: #eff6ff;
                    }

                    svg {
                        font-size: 24px;
                    }
                }
            }
        }

        .answers-section {
            .answers-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 12px;

                label {
                    font-size: 13px;
                    font-weight: 500;
                    color: #1e293b;
                }

                .add-answer-btn {
                    display: flex;
                    align-items: center;
                    gap: 4px;
                    padding: 6px 12px;
                    background: white;
                    border: 1px solid #e2e8f0;
                    border-radius: 4px;
                    color: #3b82f6;
                    font-size: 12px;
                    font-weight: 500;
                    cursor: pointer;
                    transition: all 0.2s;

                    &:hover {
                        background: #eff6ff;
                        border-color: #3b82f6;
                    }

                    svg {
                        font-size: 14px;
                    }
                }
            }

            .answers-list {
                display: flex;
                flex-direction: column;
                gap: 12px;

                .answer-item {
                    background: white;
                    border: 1px solid #e2e8f0;
                    border-radius: 6px;
                    padding: 12px;

                    .answer-header {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        margin-bottom: 8px;

                        .correct-answer-btn {
                            padding: 4px;
                            background: transparent;
                            border: none;
                            color: #cbd5e1;
                            cursor: pointer;
                            transition: all 0.2s;

                            &:hover {
                                color: #10b981;
                            }

                            &.correct {
                                color: #10b981;
                            }

                            svg {
                                font-size: 20px;
                            }
                        }

                        .answer-label {
                            flex: 1;
                            font-size: 12px;
                            font-weight: 500;
                            color: #64748b;
                        }

                        .delete-answer-btn {
                            padding: 4px;
                            background: transparent;
                            border: none;
                            color: #ef4444;
                            cursor: pointer;
                            border-radius: 4px;
                            transition: all 0.2s;

                            &:hover {
                                background: #fef2f2;
                            }

                            svg {
                                font-size: 16px;
                            }
                        }
                    }

                    .answer-content {
                        display: flex;
                        gap: 8px;
                        align-items: center;

                        input {
                            flex: 1;
                            padding: 8px 10px;
                            border: 1px solid #e2e8f0;
                            border-radius: 4px;
                            font-size: 13px;
                            color: #1e293b;
                            transition: all 0.2s;

                            &:focus {
                                outline: none;
                                border-color: #3b82f6;
                                box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
                            }
                        }

                        .answer-image {
                            flex-shrink: 0;
                            margin-top: -20px;

                            .answer-image-preview {
                                position: relative;
                                width: 60px;
                                height: 60px;
                                border: 1px solid #e2e8f0;
                                border-radius: 4px;
                                overflow: hidden;


                                img {
                                    width: 100%;
                                    height: 100%;
                                    object-fit: cover;
                                }

                                .remove-answer-image-btn {
                                    position: absolute;
                                    top: 2px;
                                    right: 2px;
                                    width: 18px;
                                    height: 18px;
                                    padding: 0;
                                    background: white;
                                    border: none;
                                    border-radius: 50%;
                                    color: #ef4444;
                                    font-size: 14px;
                                    line-height: 1;
                                    cursor: pointer;
                                    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
                                    transition: all 0.2s;

                                    &:hover {
                                        background: #fef2f2;
                                    }
                                }
                            }

                            .add-answer-image-btn {
                                width: 60px;
                                height: 60px;
                                padding: 0;
                                background: white;
                                border: 1px dashed #e2e8f0;
                                border-radius: 4px;
                                color: #cbd5e1;
                                cursor: pointer;
                                transition: all 0.2s;

                                &:hover {
                                    border-color: #3b82f6;
                                    color: #3b82f6;
                                    background: #eff6ff;
                                }

                                svg {
                                    font-size: 20px;
                                }
                            }
                        }
                    }
                }
            }

            .answers-hint {
                display: block;
                margin-top: 8px;
                font-size: 11px;
                color: #94a3b8;
                font-style: italic;
            }
        }
    }
}

// Quiz Settings Styles
.quiz-settings {
    .settings-section {
        margin-bottom: 32px;

        &:last-child {
            margin-bottom: 0;
        }

        h3 {
            margin: 0 0 16px 0;
            font-size: 16px;
            color: #1e293b;
            padding-bottom: 12px;
            border-bottom: 1px solid #e2e8f0;
        }

        .form-group {
            margin-bottom: 20px;

            &:last-child {
                margin-bottom: 0;
            }

            label {
                display: block;
                margin-bottom: 8px;
                font-size: 13px;
                font-weight: 500;
                color: #1e293b;
            }

            input,
            select {
                width: 100%;
                padding: 10px 12px;
                border: 1px solid #e2e8f0;
                border-radius: 6px;
                font-size: 14px;
                color: #1e293b;
                transition: all 0.2s;

                &:focus {
                    outline: none;
                    border-color: #3b82f6;
                    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
                }
            }

            small {
                display: block;
                margin-top: 6px;
                font-size: 12px;
                color: #64748b;
            }

            &.checkbox-group {
                label {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    cursor: pointer;
                    font-weight: 400;

                    input[type="checkbox"] {
                        width: auto;
                        margin: 0;
                        cursor: pointer;
                    }
                }
            }
        }
    }

    .settings-section.pro-locked {
        opacity: 0.8;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


// Poll Styles (reusing quiz styles with poll-specific overrides)
.poll-list-container {
    @extend .quiz-list-container;
}

.poll-loading {
    @extend .quiz-loading;
}

.no-polls {
    @extend .no-quizzes;
}

.no-polls-content {
    @extend .no-quizzes-content;
}

.no-polls-icon {
    @extend .no-quizzes-icon;
}

.create-first-poll-btn {
    @extend .create-first-quiz-btn;
}

.poll-grid {
    @extend .quiz-grid;
}

.poll-card {
    @extend .quiz-card;

    .poll-featured-image {
        width: 100%;
        height: 180px;
        overflow: hidden;
        border-radius: 8px 8px 0 0;
        margin: -20px -20px 16px -20px;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

.poll-card-header {
    @extend .quiz-card-header;
}

.poll-icon {
    @extend .quiz-icon;
}

.poll-info {
    @extend .quiz-info;
}

.poll-description {
    @extend .quiz-description;
}

.poll-stats {
    @extend .quiz-stats;
}

.poll-actions {
    @extend .quiz-actions;
}

.poll-shortcode {
    @extend .quiz-shortcode;
}

.create-poll-btn {
    @extend .create-quiz-btn;
}

.poll-list-header {
    @extend .quiz-list-header;
}

// Poll Builder Styles
.poll-builder-container {
    @extend .quiz-builder-container;
}

.poll-builder-header {
    @extend .quiz-builder-header;
}

.poll-builder-content {
    @extend .quiz-builder-content;
}

.poll-basic-info {
    @extend .quiz-basic-info;
}

.poll-tabs {
    @extend .quiz-tabs;
}

.poll-tab-content {
    @extend .quiz-tab-content;
}

// Poll Answer Editor Styles
.answer-editor {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;

    .answer-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;

        .drag-handle {
            color: #cbd5e1;
            cursor: grab;

            &:active {
                cursor: grabbing;
            }
        }

        .answer-number {
            flex: 1;
            font-size: 14px;
            font-weight: 500;
            color: #64748b;
        }

        .delete-answer-btn {
            padding: 6px;
            background: transparent;
            border: none;
            color: #ef4444;
            cursor: pointer;
            border-radius: 4px;
            transition: all 0.2s;

            &:hover {
                background: #fef2f2;
            }

            svg {
                font-size: 18px;
            }
        }
    }

    .answer-content {
        display: flex;
        flex-direction: column;
        gap: 12px;

        .answer-text-field {
            input {
                width: 100%;
                padding: 10px 12px;
                border: 1px solid #e2e8f0;
                border-radius: 6px;
                font-size: 14px;
                color: #1e293b;
                transition: all 0.2s;

                &:focus {
                    outline: none;
                    border-color: #3b82f6;
                    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
                }
            }
        }

        .answer-image-field {
            .answer-image-preview {
                position: relative;
                border: 1px solid #e2e8f0;
                border-radius: 8px;
                overflow: hidden;
                background: white;

                img {
                    width: 100%;
                    height: 200px;
                    object-fit: cover;
                    display: block;
                }

                .image-actions {
                    position: absolute;
                    top: 8px;
                    right: 8px;
                    display: flex;
                    gap: 6px;

                    button {
                        padding: 6px 12px;
                        background: white;
                        border: none;
                        border-radius: 4px;
                        font-size: 12px;
                        cursor: pointer;
                        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                        transition: all 0.2s;

                        &.change-image-btn {
                            color: #3b82f6;

                            &:hover {
                                background: #eff6ff;
                            }
                        }

                        &.remove-image-btn {
                            color: #ef4444;

                            &:hover {
                                background: #fef2f2;
                            }
                        }
                    }
                }
            }

            .add-image-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                width: 100%;
                padding: 40px 20px;
                background: white;
                border: 2px dashed #e2e8f0;
                border-radius: 8px;
                color: #64748b;
                font-size: 14px;
                cursor: pointer;
                transition: all 0.2s;

                &:hover {
                    border-color: #3b82f6;
                    color: #3b82f6;
                    background: #eff6ff;
                }

                svg {
                    font-size: 24px;
                }
            }
        }
    }
}

.answers-tab {
    .answers-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;

        h3 {
            margin: 0;
            font-size: 18px;
            color: #1e293b;
        }

        .add-answer-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background: #3b82f6;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;

            &:hover {
                background: #2563eb;
            }

            svg {
                font-size: 16px;
            }
        }
    }

    .answers-list {
        display: flex;
        flex-direction: column;
    }
}

// Poll Settings Styles
.poll-settings {
    @extend .quiz-settings;
}

// Quiz Results View Styles
.quiz-results-view,
.poll-results-view {
    padding: 20px;

    h2 {
        margin: 0 0 20px 0;
        font-size: 24px;
        color: #1e293b;
        display: flex;
        align-items: center;
        gap: 10px;

        svg {
            font-size: 28px;
            color: #3b82f6;
        }
    }

    button {
        padding: 10px 20px;
        background: #3b82f6;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;

        &:hover {
            background: #2563eb;
        }
    }

    .results-container {
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 24px;
        margin-top: 20px;

        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid #e2e8f0;

            h3 {
                margin: 0;
                font-size: 18px;
                color: #1e293b;
            }

            .results-stats {
                display: flex;
                gap: 24px;

                .stat-item {
                    text-align: center;

                    .stat-value {
                        display: block;
                        font-size: 24px;
                        font-weight: 700;
                        color: #3b82f6;
                    }

                    .stat-label {
                        display: block;
                        font-size: 12px;
                        color: #64748b;
                        margin-top: 4px;
                    }
                }
            }
        }

        .results-table {
            width: 100%;
            border-collapse: collapse;

            thead {
                background: #f8fafc;

                th {
                    padding: 12px;
                    text-align: left;
                    font-size: 13px;
                    font-weight: 600;
                    color: #64748b;
                    border-bottom: 2px solid #e2e8f0;
                }
            }

            tbody {
                tr {
                    border-bottom: 1px solid #e2e8f0;
                    transition: all 0.2s;

                    &:hover {
                        background: #f8fafc;
                    }

                    td {
                        padding: 12px;
                        font-size: 14px;
                        color: #1e293b;

                        &.score-cell {
                            font-weight: 600;

                            &.passed {
                                color: #10b981;
                            }

                            &.failed {
                                color: #ef4444;
                            }
                        }

                        &.date-cell {
                            color: #64748b;
                            font-size: 13px;
                        }
                    }
                }
            }
        }

        .results-chart {
            margin-top: 24px;
            padding: 20px;
            background: #f8fafc;
            border-radius: 8px;

            h4 {
                margin: 0 0 16px 0;
                font-size: 16px;
                color: #1e293b;
            }

            .chart-bars {
                display: flex;
                flex-direction: column;
                gap: 16px;

                .chart-bar-item {
                    .bar-label {
                        display: flex;
                        justify-content: space-between;
                        margin-bottom: 6px;
                        font-size: 13px;

                        .label-text {
                            color: #1e293b;
                            font-weight: 500;
                        }

                        .label-value {
                            color: #64748b;
                        }
                    }

                    .bar-container {
                        width: 100%;
                        height: 24px;
                        background: #e2e8f0;
                        border-radius: 12px;
                        overflow: hidden;

                        .bar-fill {
                            height: 100%;
                            background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
                            transition: width 0.6s ease;
                            display: flex;
                            align-items: center;
                            justify-content: flex-end;
                            padding-right: 8px;

                            span {
                                color: white;
                                font-size: 11px;
                                font-weight: 600;
                            }
                        }
                    }
                }
            }
        }

        .no-results {
            text-align: center;
            padding: 60px 20px;
            color: #64748b;

            svg {
                font-size: 64px;
                color: #cbd5e1;
                margin-bottom: 16px;
            }

            h4 {
                margin: 0 0 8px 0;
                font-size: 18px;
                color: #1e293b;
            }

            p {
                margin: 0;
                font-size: 14px;
            }
        }

        .export-actions {
            margin-top: 24px;
            padding-top: 16px;
            border-top: 1px solid #e2e8f0;
            display: flex;
            gap: 12px;

            button {
                padding: 8px 16px;
                background: white;
                border: 1px solid #e2e8f0;
                color: #64748b;
                border-radius: 6px;
                font-size: 13px;
                cursor: pointer;
                transition: all 0.2s;

                &:hover {
                    background: #f8fafc;
                    border-color: #3b82f6;
                    color: #3b82f6;
                }

                svg {
                    margin-right: 6px;
                    font-size: 16px;
                }
            }
        }
    }
}

// Responsive
@media (max-width: 768px) {

    .quiz-results-view,
    .poll-results-view {
        .results-container {
            .results-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;

                .results-stats {
                    width: 100%;
                    justify-content: space-around;
                }
            }

            .results-table {
                display: block;
                overflow-x: auto;
            }
        }
    }
}