body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.version-header {
    color: #666;
    font-size: 12px;
    margin-bottom: 20px;
}

.form-container, .results-container {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
}

textarea.drag-over {
    border: 2px dashed #4CAF50;
    background-color: #f0fff0;
}

textarea.results {
    background-color: #f8f9fa;
    min-height: 200px;
    margin-top: 10px;
    font-family: monospace;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #45a049;
}

.columns-container {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.columns-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.columns-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.column-item {
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    color: #495057;
    cursor: grab;
    user-select: none;
    position: relative;
}

.column-item:active {
    cursor: grabbing;
}

.column-item.dragging {
    opacity: 0.5;
}

.column-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
    margin-bottom: 5px;
}

.column-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.column-item:hover .column-tooltip {
    visibility: visible;
    opacity: 1;
}

select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.sql-query {
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    white-space: pre-wrap;
    border: 1px solid #ddd;
}

.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading:after {
    content: "Processing...";
    animation: dots 1.5s steps(5, end) infinite;
}

.version {
    position: fixed;
    bottom: 10px;
    right: 10px;
    color: #666;
    font-size: 12px;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

h2 {
    color: #444;
    margin-top: 0;
}

/* Token count styles */
.token-count {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    text-align: right;
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
    float: right;
}

.token-count.warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

.token-count.danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

@keyframes dots {
    0%, 20% { content: "Processing"; }
    40% { content: "Processing."; }
    60% { content: "Processing.."; }
    80% { content: "Processing..."; }
}
