:root {
    --backgroundColor: white;
    --textColor: black;
    --foregroundColor: rgba(204, 204, 204, 0.3);
    --accentColor: lavender;
}

@media (prefers-color-scheme: dark) {
    :root {
        --backgroundColor: black;
        --textColor: white;
        --foregroundColor: rgba(47, 47, 47, 0.3);
        --accentColor: indigo;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: left;
}

body {
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: var(--backgroundColor);
    height: 100vh;
    padding: 0.75rem;
    color: var(--textColor);
}

#container {
    display: flex;
    gap: 0.75rem;
    margin: 0 auto;
    height: 100%;
    background: var(--foregroundColor);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.autocomplete {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#audl {
    flex-grow: 1;
    background: var(--backgroundColor);
    color: var(--textColor);
    border: none;
    border-radius: 1rem;
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

#autocomplete-list {
    position: absolute;
    background: var(--foregroundColor);
    backdrop-filter: blur(1rem);
    border-radius: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: fit-content;
    min-width: 25rem;
    max-width: 35rem;
    padding: 0.5rem;
}

#autocomplete-list div {
    padding: 0.5rem 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 0.75rem;
}

#autocomplete-list div:hover,
#autocomplete-list div.selected {
    background: var(--accentColor);
}

#autocomplete-list div:last-child {
    border-bottom: none;
}

#output {
    background: rgba(0, 0, 0, 0.8);
    color: #00ff88;
    border-radius: 12px;
    padding: 20px;
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: pre-wrap;
    font-family: inherit;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow: scroll;
    max-height: 100%;
}
