/* Minimal custom styles - Pico.css handles most styling */

/* Utility classes */
.hidden {
    display: none !important;
}

/* Status indicator colors */
#status.loading {
    background-color: var(--pico-primary-background);
    color: var(--pico-primary);
    border-left: 4px solid var(--pico-primary);
}

#status.success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

#status.error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

#status {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--pico-border-radius);
}

/* Example buttons - wrap on smaller screens */
[role="group"] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

[role="group"] button {
    flex: 1 1 auto;
    min-width: 150px;
    margin: 0;
}

/* Results error styling */
#results-error {
    padding: 1rem;
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: var(--pico-border-radius);
    color: #991b1b;
}

/* Make table scrollable on small screens */
figure {
    overflow-x: auto;
}

/* Ace editor styling */
#sql-editor {
    border: 1px solid var(--pico-form-element-border-color);
    border-radius: var(--pico-border-radius);
    margin-bottom: 1rem;
    min-height: 200px;
}

#sql-editor .ace_editor {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
}
