body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1e1e1e;
    color: #f0f0f0;
    margin: 0;
}

.metronome {
    background-color: #2c2c2c;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    max-width: 500px;
}

.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: flex-end;
}

.bpm-control label,
.time-signature-control label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

.bpm-control input,
.time-signature-control select {
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: #f0f0f0;
    width: 80px;
}

.controls button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #0d47a1;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.controls button:hover {
    background-color: #1565c0;
}

.beat-toggles {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 20px;
}

.beat-toggle {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.1s;
    border: 2px solid transparent;
}

.beat-toggle.first-beat {
    background-color: #0d47a1; /* Primary color */
}

.beat-toggle.other-beat {
    background-color: #555;
}

.beat-toggle.disabled {
    background-color: #333;
    border-color: #444;
}

.beat-toggle.active {
    border-color: #FFFFFF; /* White border for active beat */
    transform: scale(1.1);
}
