/**
 * [Senior Standard] SQL Formatter Style v1.0
 */

.sql-tool-container {
    max-width: 1200px;
    margin: 0 auto;
}

.formatter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    height: 600px;
}

.h-100 { height: 100%; display: flex; flex-direction: column; }

.panel-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px;
}
.panel-header h4 { margin: 0; color: #334155; font-size: 1rem; }

.btn-group { display: flex; gap: 10px; }
.btn-text-only { background: none; border: none; color: #64748b; cursor: pointer; font-size: 0.85rem; }
.btn-text-only:hover { color: #3b82f6; }

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.sql-textarea {
    flex: 1;
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    resize: none;
    background: #f8fafc;
    color: #334155;
    line-height: 1.5;
    box-sizing: border-box;
}
.sql-textarea:focus { outline: 2px solid #f59e0b; background: #fff; }

.sql-output {
    flex: 1;
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow: auto;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre;
}

/* Syntax Highlighting */
.sql-keyword { color: #f472b6; font-weight: 700; } /* Pink */
.sql-func { color: #60a5fa; } /* Blue */
.sql-string { color: #34d399; } /* Green */
.sql-number { color: #fbbf24; } /* Yellow */
.sql-comment { color: #94a3b8; font-style: italic; } /* Gray */

@media (max-width: 768px) {
    .formatter-grid { grid-template-columns: 1fr; height: auto; }
    .sql-textarea, .sql-output { min-height: 300px; }
}
