body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #0a0a0a;
    color: #00ff00;
    display: flex;
    flex-direction: row; 
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

/* BLOCCO 1: CONTROLLI (SINISTRA) */
.sidebar-controls-block {
    width: 300px;
    background-color: #141414;
    border-right: 2px solid #00ff00;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    box-sizing: border-box;
}

.controls-title {
    text-align: center; 
    margin-top: 0; 
    font-size: 14px; 
    text-transform: uppercase; 
    border-bottom: 1px solid #00ff00; 
    padding-bottom: 10px; 
    letter-spacing: 1px;
}

/* BLOCCO 2: CANVAS E FORMULA (CENTRO) */
.main-player-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: #141414;
    box-sizing: border-box;
}

.player-card {
    width: 100%;
    max-width: 550px;
    background-color: #1a1a1a;
    border: 2px solid #00ff00;
    padding: 25px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    text-align: center;
}

.main-title {
    margin-top: 0; 
    letter-spacing: 2px; 
    font-size: 20px;
}

canvas {
    width: 100%;
    height: 180px;
    background-color: #000;
    border: 1px solid #00ff00;
    margin-bottom: 20px;
    box-shadow: inset 0 0 10px rgba(0,255,0,0.2);
}

.formula-label {
    font-size: 12px; 
    display: block; 
    text-align: left; 
    margin-bottom: 5px;
}

/* BLOCCO 3: PRESET LIBRERIA (DESTRA) */
.sidebar-presets-block {
    width: 280px;
    background-color: #111;
    border-left: 2px solid #00ff00;
    display: flex;
    flex-direction: column; 
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.sidebar-presets-block h3 {
    text-align: center;
    margin-top: 0;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 10px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* INPUT ED ELEMENTI DELLA FORM */
input[type="text"] {
    width: 100%;
    padding: 12px;
    background-color: #000;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-size: 16px;
    text-align: center;
    font-family: inherit;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.settings-column-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.settings-column-layout label {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

select {
    background-color: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
}

/* PULSANTI */
button {
    background-color: #00ff00;
    color: #121212;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
}

button:hover {
    background-color: #121212;
    color: #00ff00;
    outline: 1px solid #00ff00;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.controls button {
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
}

.preset-btn {
    background-color: #222;
    color: #00ff00;
    border: 1px solid #00ff00;
    text-align: left;
    font-size: 11px;
    margin: 5px 0;
    padding: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    box-sizing: border-box;
}

.preset-btn:hover {
    background-color: #00ff00;
    color: #121212;
}
