body {
    font-family: 'Poppins', sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    transition: background 0.5s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
    z-index: -1;
}

.container {
    width: 95%;
    max-width: 1000px;
    background: rgba(45, 52, 71, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 30px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

h2 {
    color: #e6e6e6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    font-size: 1.8rem;
    border-bottom: 2px solid #5a5a72;
    padding-bottom: 10px;
    margin-bottom: 25px;
    text-align: left;
}

.metronome-section {
    text-align: center;
    margin-bottom: 30px;
    background: #2d3447;
    padding: 15px;
    border-radius: 15px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
}

.metronome-section h2 {
    text-align: center;
    border-bottom: none;
    margin-bottom: 5px;
}

.metronome-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

#bpm-slider {
    width: 200px;
    height: 6px;
    -webkit-appearance: none;
    background: #5a5a72;
    border-radius: 5px;
    outline: none;
    transition: all 0.2s ease;
}

#bpm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #ffc107;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.8);
    transition: all 0.2s ease;
}

#bpm-slider::-webkit-slider-thumb:hover {
    background: #e0ac00;
    transform: scale(1.1);
}

#bpm-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc107;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.metronome-description {
    font-style: italic;
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-top: 5px;
}

.notes-section h2 {
    text-align: center;
    border-bottom: 2px solid #5a5a72;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.note-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #3d4358;
    border-radius: 10px;
    background: #2d3447;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.note-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.note-image {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 250px;
}

.note-image img {
    height: 60px;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4));
}

.note-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #c0c0c0;
}

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

.note-controls button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.note-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.note-controls button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.note-start-button {
    background-color: #28a745;
}

.note-stop-button {
    background-color: #dc3545;
}

.beat-squares-container {
    display: flex;
    gap: 10px;
}

.beat-square {
    position: relative;
    width: 35px;
    height: 35px;
    background: #5a5a72;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
    transition: background 0.1s ease, box-shadow 0.1s ease;
}

.beat-square.active {
    background: #ffc107;
    box-shadow: 0 0 15px #ffc107, inset 0 0 8px #ffc107;
    animation: pulse 0.5s ease-out forwards;
}

.note-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 25px;
    height: 25px;
    opacity: 0;
    transition: all 0.2s ease-out;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.note-symbol.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

footer {
    width: 100%;
    text-align: center;
    padding: 15px;
    background: #1a1a2e;
    color: #b0b0b0;
    margin-top: 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

footer a {
    color: #ffc107;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #e0ac00;
}