.sql-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sql-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
}

.description {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

.sql-form-section {
    margin-bottom: 2rem;
}

.sql-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
}

.sql-input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.sql-input:focus {
    outline: none;
    border-color: #4a90e2;
}

textarea.sql-input {
    min-height: 150px;
    resize: vertical;
    font-family: monospace;
}

.sql-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.sql-option {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.sql-button {
    padding: 0.75rem 1.5rem;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.sql-button:hover {
    background-color: #357abd;
}

.sql-button.secondary {
    background-color: #6c757d;
}

.sql-button.secondary:hover {
    background-color: #5a6268;
}

.sql-error {
    display: none;
    padding: 1rem;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.sql-result {
    display: none;
    margin-top: 2rem;
}

.formatted-sql {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
}

#formatted-sql-output {
    margin: 0;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}

@media (max-width: 768px) {
    .sql-container {
        padding: 1rem;
    }
    
    .sql-options {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
} 