/**
 * 文本按列截取工具样式
 */

.text-column-cut-container {
    padding: 15px 0;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.input-group .help-text {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.query-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

.query-textarea:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.column-inputs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.column-input-item {
    flex: 1;
    min-width: 150px;
}

.column-input-item input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.column-input-item input:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.options-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.option-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.option-item label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.shortcut-hint {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.shortcut-hint kbd {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #ddd;
    font-family: inherit;
}

.button {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.button-primary {
    background: linear-gradient(135deg, #4a90d9, #357abd);
    color: white;
}

.button-primary:hover {
    background: linear-gradient(135deg, #357abd, #2a5f8f);
    transform: translateY(-1px);
}

.button-secondary {
    background: #f0f0f0;
    color: #333;
}

.button-secondary:hover {
    background: #e0e0e0;
}

.result-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.result-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.result-stats {
    font-size: 13px;
    color: #666;
}

.result-actions {
    display: flex;
    gap: 8px;
}

.copy-btn {
    padding: 6px 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #218838;
}

.result-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
    resize: vertical;
    box-sizing: border-box;
}

.result-textarea:focus {
    outline: none;
    border-color: #4a90d9;
}

.error-message {
    padding: 12px 15px;
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    color: #c62828;
    margin-top: 15px;
}

.tips-section {
    margin-top: 20px;
    padding: 15px;
    background: #fff8e1;
    border-radius: 8px;
    border: 1px solid #ffecb3;
}

.tips-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #f57c00;
}

.tips-section ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #666;
}

.tips-section li {
    margin-bottom: 5px;
}

.example-section {
    margin-top: 15px;
    padding: 12px;
    background: #e3f2fd;
    border-radius: 6px;
    font-size: 13px;
}

.example-section strong {
    color: #1565c0;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: #333;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
