body {
    font-family: Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

h1 {
    color: #333;
    margin: 0;
    flex: 1;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    gap: 20px;
}

.status-section {
    text-align: right;
    padding-right: 10px;
}

.query-section {
    margin-bottom: 20px;
}

.query-input {
    box-sizing: border-box;
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
}

.btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
}

.btn:hover {
    background: #0056b3;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.success {
    color: #155724;
}

.error {
    color: #721c24;
}

.loading {
    color: #856404;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.results-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.results-table tr:nth-child(even) {
    background: #f9f9f9;
}

.sample-queries {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.sample-queries h4 {
    margin-top: 0;
    color: #333;
}

.sample-query {
    background: white;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sample-query:hover {
    background: #f8f9fa;
    border-left-color: #0056b3;
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.sample-queries-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    color: #333;
    transition: color 0.2s ease;
}

.sample-queries-header:hover {
    color: #007bff;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
    color: #666;
}

.toggle-icon.expanded {
    transform: rotate(90deg);
}

.sample-queries-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.sample-query .comment {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sample-query .sql {
    display: block;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
}
