body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
}

section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.metronome-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 30px;
    margin-bottom: 20px;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn.running {
    background-color: #e74c3c;
}

.btn.running:hover {
    background-color: #c0392b;
}

.tempo-control {
    flex: 1;
}

#tempoSlider {
    width: 100%;
    margin-top: 5px;
}

.staff-info {
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.beat-option {
    margin-top: 10px;
    font-size: 14px;
}

.beat-option label {
    display: block;
    cursor: pointer;
}

.beat-option label + label {
    margin-top: 6px;
}

.beat-option input {
    margin-right: 5px;
}

.toggle-group {
    margin-bottom: 12px;
}

.toggle-group-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 6px;
}

.toggle-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.toggle-list label {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.toggle-list input {
    margin-right: 6px;
}

#abcNotation {
    width: 100%;
    background-color: #fafafa;
    border: 1px solid #ddd;
    min-height: 200px;
    padding: 10px;
}
