/* SQL工具样式 */
.page-container {
    display: flex;
    gap: 20px;
}

.left-panel {
    width: 50%;
}

.right-panel {
    width: 50%;
}

.schema-section, .query-section, .result-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.schema-content {
    margin-top: 15px;
}

.table-info {
    margin-bottom: 20px;
}

.table-info h4 {
    color: #2196F3;
    margin-bottom: 10px;
}

.table-info pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    white-space: pre-wrap;
    font-size: 14px;
}

.query-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.query-actions {
    display: flex;
    gap: 10px;
}

.CodeMirror {
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.result-content {
    margin-top: 15px;
    min-height: 200px;
}

.placeholder {
    color: #666;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.result-table th, .result-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.result-table th {
    background-color: #f8f9fa;
    font-weight: 500;
}

.result-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.error-message {
    color: #d32f2f;
    padding: 10px;
    background-color: #ffebee;
    border-radius: 5px;
    margin-top: 10px;
}

.success-message {
    color: #388e3c;
    padding: 10px;
    background-color: #e8f5e9;
    border-radius: 5px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        width: 100%;
    }
} 