.cvt-container {
    max-width: 1200px;
}

/* 快速操作按钮 */
.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.quick-btn {
    padding: 0.5rem 1.5rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--ut-color-primary-500);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cvt-card {
    transition: all 0.3s ease;
}

.cvt-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.cvt-form-check-input:checked {
    background-color: var(--ut-color-primary-500);
    border-color: var(--ut-color-primary-500);
}

.cvt-btn-primary {
    background-color: var(--ut-color-primary-500);
    border-color: var(--ut-color-primary-500);
    transition: all 0.2s ease;
}

.cvt-btn-primary:hover {
    background-color: var(--ut-color-primary-600);
    border-color: var(--ut-color-primary-600);
    transform: translateY(-2px);
}

.cvt-btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    transition: all 0.2s ease;
}

.cvt-btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-2px);
}

.cvt-btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.cvt-btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.cvt-code-header {
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-sm {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.btn-icon-sm:hover {
    background-color: #e2e8f0;
    color: var(--ut-color-primary-500);
}

.code-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* 语言选择选项卡样式 */
.cvt-language-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.cvt-language-tab {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    background: none;
    color: #6c757d;
    position: relative;
    transition: all 0.2s ease;
}

.cvt-language-tab.active {
    color: var(--ut-color-primary-500);
}

.cvt-language-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--ut-color-primary-500);
}

.cvt-language-tab:hover {
    color: var(--ut-color-primary-500);
    background-color: rgba(37, 99, 235, 0.05);
}

textarea.cvt-textarea {
    resize: none;
}

/* 加载动画 */
.cvt-loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: var(--ut-color-primary-500);
    animation: cvt-spin 1s ease-in-out infinite;
    display: none;
}

@keyframes cvt-spin {
    to {
        transform: rotate(360deg);
    }
}

.cvt-loader.show {
    display: inline-block;
}

/* 选项卡片样式 */
.cvt-options-card {
    max-height: 400px;
    overflow-y: auto;
}

/* 通用选项布局 */
.cvt-general-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cvt-option-item {
    display: flex;
    flex-direction: column;
}

.cvt-option-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cvt-option-label {
    flex: 0 0 auto;
    margin-bottom: 0;
    white-space: nowrap;
}

.cvt-option-control {
    flex: 1 1 auto;
}

.cvt-form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cvt-form-check-label {
    margin-bottom: 0;
}

/* 输入输出区域布局 */
.cvt-io-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 769px) {
    .cvt-io-container {
        flex-direction: row;
    }

    .cvt-input-section, .cvt-output-section {
        flex: 1;
    }
}

/* 按钮工具栏 */
.cvt-button-toolbar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

.cvt-button-toolbar button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

/* 模态框样式 */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

#codeOutput {
    font-family: monospace;
    white-space: pre-wrap;
}

.hidden {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cvt-input-section, .cvt-output-section {
        margin-bottom: 1rem;
    }

    #sqlInput, #codeOutput {
        min-height: 200px;
    }

    .cvt-general-options {
        grid-template-columns: 1fr;
    }

    .cvt-option-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cvt-option-label {
        margin-bottom: 0.25rem;
    }

    .cvt-button-toolbar {
        gap: 0.5rem;
    }

    .cvt-button-toolbar button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .quick-actions {
        flex-direction: column;
    }

    .quick-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    #sqlInput, #codeOutput {
        min-height: 350px;
    }
}
