html, body{
    height: 100%;
    width: 100%;
}

body, h1, h2, h3, h4, h5, h6 {
    font-family: "Lato", sans-serif;
}

.w3-bar, h1, button {
    font-family: "Montserrat", sans-serif;
}

body{
    background-color:#cfd9df;
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}
div#app-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #5e5e5e;
}

div#bpm-container {
    width: 300px;
    height: 300px;
    padding: 5px;
    background: #30c7ec;
    background-image: radial-gradient(circle 248px at center, #16d9e3 0%, #30c7ec 47%, #46aef7 100%);
    border-radius: 100%;
    border: 12px dashed #008096;
}

div#bpm-container>span:nth-child(1) {
    font-size: 4rem;
    font-weight: 600;
    color: #006475;
    letter-spacing: 5px;
}

div#bpm-container>span:nth-child(2) {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #026070;
}

div.beatsText {
    font-size: 1.3rem;
    font-weight: 500;
}

button.beatsBTN{
    transition: transform .1s ease;
}
button.beatsBTN:active{
    transform: scale(.9);
}
#playMetronome{
    border: 6px dashed #006475;
    background: #66a6ff;
    background-image: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%);
    color: #006475;
}
#stopMetronome{
    display: none;
    border: 6px dashed #b14536;
    background: #fe9a8b;
    background-image: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%);
    color: #6e0d00;
}
button.controlBtns {
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
}

#metronomeVisualizer {
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(3, 80, 95, 0.08);
    border: 1px solid rgba(2, 96, 112, 0.3);
}

#metronomeVisualizer .viz-track {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 100, 117, 0.15) 0%, rgba(70, 174, 247, 0.4) 100%);
    overflow: hidden;
}

#metronomeVisualizer .viz-beat-dot {
    position: absolute;
    top: -4px;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #006475;
    box-shadow: 0 0 0 0 rgba(0, 100, 117, 0.4);
    transition: transform 120ms ease, background-color 120ms ease;
}

#metronomeVisualizer .viz-bars {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    align-items: end;
    height: 28px;
}

#metronomeVisualizer .viz-bar {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: #7ccfdd;
    transform-origin: bottom;
}

#metronomeVisualizer .viz-beat-dot.is-active {
    transform: scale(1.18);
    animation: dot-pulse 220ms ease-out;
}

#metronomeVisualizer .viz-beat-dot.is-downbeat {
    background: #b14536;
}

#metronomeVisualizer .viz-bar.is-active {
    animation: bar-jump 220ms ease-out;
    background: #009bb3;
}

#metronomeVisualizer .viz-bar.is-downbeat {
    animation: bar-jump-strong 240ms ease-out;
    background: #d95a47;
}

@keyframes dot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 100, 117, 0.45);
    }
    100% {
        box-shadow: 0 0 0 12px rgba(0, 100, 117, 0);
    }
}

@keyframes bar-jump {
    0% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(2.6);
    }
    100% {
        transform: scaleY(1);
    }
}

@keyframes bar-jump-strong {
    0% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(3.3);
    }
    100% {
        transform: scaleY(1);
    }
}

#playlistContainer .playlist-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(22, 100, 117, 0.12);
    border: 1px solid rgba(2, 96, 112, 0.35);
}

#playlistContainer .playlist-bpm-btn {
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    color: #004f5d;
    font-size: 0.8rem;
    font-weight: 700;
    background: #b8f4ff;
}

#playlistContainer .playlist-bpm-btn:hover {
    background: #8be9ff;
}

#playlistContainer .remove-playlist-btn {
    border: none;
    border-radius: 999px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    padding: 0;
    color: #7a2a20;
    background: #ffd7d1;
    font-weight: 700;
}

#playlistContainer .remove-playlist-btn:hover {
    background: #ffbcb2;
}

#playlistContainer .playlist-empty {
    width: 100%;
    color: #5d6c70;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}