* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

h1 {
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
}

.panel {
    flex: 1;
    min-width: 300px;
    background-color: #f9fafc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.panel h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #eaecef;
    padding-bottom: 10px;
}

.query-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
    background-color: #f8f9fa;
}

.buttons {
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.run-btn {
    background-color: #3498db;
    color: white;
    flex: 2;
}

.run-btn:hover {
    background-color: #2980b9;
}

.example-btn {
    background-color: #2ecc71;
    color: white;
    flex: 1;
}

.example-btn:hover {
    background-color: #27ae60;
}

.clear-btn {
    background-color: #e74c3c;
    color: white;
    flex: 1;
}

.clear-btn:hover {
    background-color: #c0392b;
}

.result-section {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

th {
    background-color: #3498db;
    color: white;
    position: sticky;
    top: 0;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e8f4fc;
}

.error {
    color: #e74c3c;
    background-color: #fadbd8;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

.schema-section {
    margin-top: 20px;
}

.schema-table {
    background-color: #f1f8ff;
    border-radius: 6px;
    padding: 15px;
    margin-top: 10px;
}

.schema-table h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.feature-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    border-top: 1px solid #eaecef;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .panel {
        width: 100%;
    }
}
