body {
    background: transparent;
    color: #e5e7eb;
    font-family: 'Segoe UI', sans-serif;
    padding: 20px;
    margin: 0;
}

h1 {
    text-align: center;
    color: #38bdf8;
}

.editor-container {
    position: relative;
    width: 100%;
    height: 150px;
}

.editor-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: Consolas, monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    pointer-events: none;
    color: transparent;
    z-index: 1;
}

#code-highlights {
    color: transparent;
    white-space: pre-wrap;
    word-wrap: break-word;
}

textarea#code {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #e5e7eb;
    border: 1px solid transparent;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-family: Consolas, monospace;
    box-sizing: border-box;
    resize: none;
    outline: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
    margin: 0;
    z-index: 2;
}

.error-line {
    background-color: rgba(248, 113, 113, 0.3);
    border-radius: 3px;
    display: inline-block;
    min-width: 100%;
}



/* BUTTONS */
.btn-container {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

button {
    flex: 1;
    min-width: 120px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #1e293b;
    color: #cbd5f5;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #334155;
}

/* ACTIVE BUTTON */
button.active {
    background: #38bdf8;
    color: #020617;
    font-weight: bold;
}

/* OUTPUT AREAS */
#tokens, #symbols, #errors, #tac {
    margin-top: 10px;
    padding: 10px;
    background: #020617;
    border-radius: 8px;
    display: none;
}

table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

td, th {
    padding: 8px;
    border-bottom: 1px solid #334155;
}

canvas#tree, canvas#cfg, canvas#dfaCanvas {
    margin-top: 10px;
    background: #020617;
    border-radius: 8px;
    display: none;
}