/* Basic Reset & Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f0e8; /* Parchment-like background */
    color: #3a3a3a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container Styling */
.metronome-container {
    background-color: #fff;
    border: 5px solid #8b4513; /* Wood-like border */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    max-width: 450px;
    width: 100%;
    overflow: hidden; /* Keep content within rounded borders */
    display: flex;
    flex-direction: column;
}

/* Banner Styling */
.menu-banner {
    background-color: #6b3e2e; /* Darker wood tone */
    color: #f4f0e8; /* Off-white text */
    padding: 15px 20px;
    text-align: center;
    border-bottom: 3px solid #8b4513;
}

.menu-banner h1 {
    font-family: 'Playfair Display', serif; /* More ornate font for title */
    font-weight: 700;
    font-size: 1.8em;
}

/* Main Body */
.metronome-body {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Dial Styling */
.dial-container {
    margin-bottom: 30px;
    position: relative; /* For needle positioning */
}

.dial-face {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #fdfbf5 60%, #e0dccc); /* Creamy gradient */
    border: 8px solid #b8860b; /* Golden/Brass border */
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.15), 0 3px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Optional: Add markings using pseudo-elements */
.dial-face::before, .dial-face::after {
    content: '';
    position: absolute;
    background-color: #a0a0a0;
    z-index: 0;
}
/* Simple cross markings */
.dial-face::before { width: 2px; height: 90%; left: calc(50% - 1px); top: 5%; }
.dial-face::after { width: 90%; height: 2px; top: calc(50% - 1px); left: 5%; }


.dial-needle {
    width: 4px;
    height: 45%; /* Adjust height as needed */
    background-color: #333;
    position: absolute;
    bottom: 50%; /* Pivot point at center */
    left: calc(50% - 2px); /* Center the needle */
    transform-origin: bottom center; /* Rotation point */
    border-radius: 2px 2px 0 0;
    z-index: 2;
    transition: transform 0.1s linear; /* Smooth needle transition */
    /* Initial position (e.g., straight up for 120 BPM if range is centered) */
    transform: rotate(0deg);
}

.bpm-display-text {
    font-size: 0.8em;
    color: #666;
    margin-top: -20px; /* Adjust position */
    z-index: 1;
     font-family: 'Playfair Display', serif;
}


.bpm-display {
    font-size: 2.5em;
    font-weight: bold;
    color: #5a2d0c; /* Dark brown */
    z-index: 1; /* Above markings */
    margin-top: 5px;
     font-family: 'Playfair Display', serif;
}

/* Controls Styling */
.controls-container {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between controls */
    align-items: stretch; /* Make labels/inputs align well */
}

.control-group {
    display: flex;
    flex-direction: column; /* Label above control */
    gap: 5px;
}

.control-group label {
    font-weight: bold;
    font-size: 0.9em;
    color: #6b3e2e;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
    accent-color: #b8860b; /* Match dial border */
}

select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    background-color: #fdfbf5;
    cursor: pointer;
}

button {
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    color: #fff;
    background-color: #8b4513; /* Button color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

button:hover {
    background-color: #a0522d; /* Slightly lighter on hover */
}

button:active {
     background-color: #6b3e2e;
     box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}


/* Footer */
.metronome-footer {
    text-align: center;
    padding: 10px;
    font-size: 0.8em;
    color: #888;
    background-color: #ede8dd; /* Slightly different shade */
    border-top: 1px solid #dcdcdc;
}

/* Optional: Add subtle animations or more ornate details */