body {
      margin: 0;
      font-family: sans-serif;
      display: flex;
      height: 100vh;
      background: #f0f0f0;
      
    }


img {
  max-width: 160px;  /* adjust size as needed */
  height: auto;
  
}

.sidebar {
    width: 250px;
    padding: 1em;
    background: #ffffff;
    border-right: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: center;
}

.overlay-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none; /* hidden by default */
  z-index: 9999;
}

.overlay-screen.active {
  display: block;
}

/* Blur background */
.overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.4);
}

/* Popup content */
.overlay-content {
  position: relative;
  z-index: 10000;
  background: white;
  border-radius: 12px;
  max-width: 700px;
  padding: 2em;
  margin: 5% auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: popIn 0.4s ease-out;
}

/* Close button */
.close-overlay {
  position: absolute;
  top: 1em;
  right: 1em;
  font-size: 2em;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  color: #333;
}

/* Pop animation */
@keyframes popIn {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.loading-bar-container {
  width: 100%;
  height: 6px;
  background: #eee;
  margin-top: 0.5em;
  border-radius: 3px;
  overflow: hidden;
  display: none; /* hidden by default */
}

.loading-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #00bfff, #00ff9c);
  transition: width 1.2s ease;
}


#graph {
    overflow: visible;
}

.graph-container {
    overflow: visible;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
}

.graph-container img {

    max-width: 500px;
    margin-top: -2em;
    margin-bottom: 3.5em;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

svg {
    background: #ffffff;
    border: 1px solid #ccc;
}

label {
    font-weight: bold;
    margin-bottom: 0.25em;
}

input {
    padding: 0.5em;
    font-size: 1em;
}

.inputs {
  position: absolute;
  top: 1em;
  right: 1em;
  background: #fff;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 240px;
}

.song-input,
.playlist-input
.clear-input {
  margin-bottom: 1.5em;
}

.inputs input {
  display: block;
  margin-bottom: 0.5em;
  padding: 0.5em;
  width: 100%;
  box-sizing: border-box;
}

.inputs button {
  padding: 0.5em 1em;
  width: 100%;
  cursor: pointer;
  box-sizing: border-box;
}

.song-input input[type="color"] {
  width: 100%;
  height: 2em;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

.playlist-input input[type="color"] {
  width: 100%;
  height: 2em;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

.spinner {
  margin-top: 1em;
  width: 24px;
  height: 24px;
  border: 3px solid #ccc;
  border-top: 3px solid #00bfff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.song-label {
  transition: transform 0.15s ease;
  pointer-events: none;
}