<!-- Upload Disclaimer Modal -->
<div v-if="showUploadDisclaimerModal" @click.self="cancelUploadDisclaimer" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
    <div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-2xl max-h-[80vh] flex flex-col overflow-hidden">
        <div class="flex-shrink-0 p-6 border-b border-[var(--border-primary)]">
            <div class="flex items-center justify-between">
                <div class="flex items-center gap-3">
                    <i class="fas fa-info-circle text-2xl text-[var(--text-accent)]"></i>
                    <h3 class="text-xl font-semibold text-[var(--text-primary)]" v-text="t('modal.uploadNotice')"></h3>
                </div>
                <button @click="cancelUploadDisclaimer" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">
                    <i class="fas fa-times text-xl"></i>
                </button>
            </div>
        </div>
        <div class="flex-1 overflow-y-auto p-6">
            <!-- Render markdown content -->
            <div class="ai-message text-[var(--text-secondary)]"
                 style="line-height: 1.6;">
                <div v-html="uploadDisclaimerHtml"></div>
            </div>
        </div>
        <div class="flex-shrink-0 p-6 border-t border-[var(--border-primary)] bg-[var(--bg-tertiary)] rounded-b-lg">
            <div class="flex justify-end gap-3">
                <button @click="cancelUploadDisclaimer"
                        class="px-6 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-secondary)] rounded-lg transition-colors border border-[var(--border-secondary)]">
                    ${ t('buttons.cancel') }
                </button>
                <button @click="acceptUploadDisclaimer"
                        class="px-6 py-2 bg-[var(--bg-accent)] text-white rounded-lg hover:bg-[var(--bg-accent-hover)] transition-colors">
                    <i class="fas fa-upload mr-2"></i>
                    <span v-text="t('modal.uploadFiles')"></span>
                </button>
            </div>
        </div>
    </div>
</div>
