body {
    font-family: 'Press Start 2P', cursive; /* A retro-style font would be nice */
    background-color: #222;
    color: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

h1 {
    color: #0f0;
    text-shadow: 2px 2px #0a0;
}

#controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

button {
    background-color: #0a0;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #0f0;
}

input[type="number"] {
    background-color: #333;
    color: white;
    border: 1px solid #555;
    padding: 8px;
    border-radius: 3px;
    width: 60px;
    text-align: center;
}

#patternEditor {
    display: grid;
    grid-template-columns: repeat(4, auto); /* One column for step, three for channels */
    gap: 5px;
    border: 1px solid #555;
    padding: 10px;
    background-color: #333;
    border-radius: 5px;
}

.pattern-row {
    display: contents; /* Allows children to participate in the grid directly */
}

.step-number {
    background-color: #444;
    padding: 5px;
    text-align: center;
    color: #ccc;
    font-size: 0.8em;
}

.channel-cell {
    display: flex;
    gap: 2px;
}

.note-input, .octave-input, .instrument-input {
    width: 30px;
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.9em;
}

.note-input {
    width: 35px; /* For C#, F# etc. */
}

.octave-input {
    width: 25px;
}

.instrument-input {
    width: 25px;
}

.current-step {
    background-color: #004400 !important; /* Highlight current step */
}

