body {
    font-family: Arial, sans-serif;
    max-width: 1050px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

header {
    text-align: center;
    margin-bottom: 2em;
}

.controls-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 2em;
    width: 100%;
}

.controls-container, .tuning-section {
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

.controls {
    display: flex;
    flex-direction: column;
    padding: 1em;
    background-color: rgb(220, 220, 220);
    border-radius: 5px;
    width: 100%;
}

h3.control-header {
    margin: 0;
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
}

.tuning-section {
    margin-bottom: 3em;
}

.visualization {
    width: 100%;
    margin: 20px 0;
    background-color: rgb(220, 220, 220);
    overflow: auto;
}

#heatmap {
    width: 100%;
}

.note {
    cursor: pointer;
    transition: opacity 0.2s;
}

.note:hover {
    opacity: 0.8;
}

.note.active {
    stroke: #000;
    stroke-width: 2px;
}

.editable-select {
    width: 150px;
    padding: 4px;
    cursor: pointer;
}

.tuning-system-control select {
    padding: 4px;
}

@media (max-width: 1200px) {
    .visualization {
        height: 80vh;
    }
}

.range-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    padding-bottom: 40px;
}

.range-slider-container input[type="range"] {
    width: 100%;
    margin: 0;
}

.range-ticks {
    width: 100%;
    height: 20px;
    position: absolute;
    top: calc(50% + 1px);
    display: flex;
    justify-content: space-between;
    padding: 0;
    font-size: 12px;
    color: #666;
}

.range-value {
    font-size: 14px;
    color: #333;
    position: absolute;
    bottom: 0px;
    text-align: center;
    width: 100%;
}

/* Remove spinner arrows from number input */
.no-spinner::-webkit-inner-spin-button, 
.no-spinner::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

.no-spinner {
    -moz-appearance: textfield;
}

.combo-input {
    background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 5px center;
    padding-right: 25px !important;
    cursor: pointer;
}

.tonic-control,
.tuning-system-control,
.visualization-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.controls label {
    text-align: center;
    margin-bottom: 4px;
}

/* Style for active note cells */
.active-note {
    stroke: rgb(0, 0, 0) !important;
    stroke-width: 3px !important;
    stroke-dasharray: 4, 4;
    stroke-opacity: 1 !important;
}

button {
    padding: 8px 16px;
    margin-right: 10px;
}

.square-button {
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 4px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
}

.volume-control {
    display: flex;
    flex-direction: column;
    align-items: top;
    gap: 8px;
    min-width: 100px;
    margin: 0 1px;
    min-height: 103px;
}

.volume-control input[type="range"] {
    width: 100px;
    margin: 0;
}

.volume-control label {
    margin-bottom: 4px;
}

.playback-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

#saveState {
    white-space: nowrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.control-group label {
    margin-bottom: 5px;
}

.section-title {
    font-size: 1.1em;
    font-weight: 800;
    margin-bottom: 0.5em;
    text-align: left;
} 