* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #1a1a2e;
    color: #eaeaea;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #008de4;
    margin-bottom: 5px;
}

header p {
    color: #888;
    margin: 0;
}

section {
    background: #16213e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

section h2 {
    margin-top: 0;
    color: #008de4;
    border-bottom: 1px solid #0f3460;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #0f3460;
    border-radius: 4px;
    background: #1a1a2e;
    color: #eaeaea;
    font-size: 14px;
}

input:focus, select:focus {
    outline: none;
    border-color: #008de4;
}

input::placeholder {
    color: #666;
}

button {
    background: #008de4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

button:hover:not(:disabled) {
    background: #006bb3;
}

button:disabled {
    background: #555;
    cursor: not-allowed;
}

.button-group {
    display: flex;
    gap: 10px;
}

.button-group button {
    flex: 1;
}

.status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.status.initializing {
    background: #0f3460;
    color: #4da6ff;
}

.status.ready {
    background: #0f3460;
    color: #4da6ff;
}

.status.connecting {
    background: #3d3d00;
    color: #ffff00;
}

.status.connected {
    background: #003d00;
    color: #00ff00;
}

.status.error {
    background: #3d0000;
    color: #ff4444;
}

pre {
    background: #0f3460;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
}

.query {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s;
}

.query.enabled {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .button-group {
        flex-direction: column;
    }

    section {
        padding: 15px;
    }
}
