.tool-workspace {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
}

.tool-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
}

.toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.error-msg {
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 500;
}
.success-msg {
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 500;
}
.info-msg {
    color: #0ea5e9;
    font-size: 0.9rem;
    font-weight: 500;
}

.split-pane-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pane {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pane-top {
    height: 250px;
}

.pane-bottom {
    min-height: 300px;
}

.pane label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

textarea {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: border-color var(--transition-fast);
}

textarea:focus {
    border-color: var(--accent-primary);
}

.table-responsive {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-style: italic;
    min-height: 200px;
}

/* Beautiful SQL HTML Table */
table.sql-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

table.sql-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-secondary);
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid var(--glass-border);
    white-space: nowrap;
}

table.sql-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    white-space: nowrap;
}

table.sql-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tip-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
}

.tip-card h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.tip-card code {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    background: rgba(0,0,0,0.4);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    white-space: pre-wrap;
    line-height: 1.4;
}
