#pdf-container       { width:100%;height:100%;border:1px solid #ccc;}
.page-container     {position:relative;}
.pdf-canvas,.overlay_canvas { display:block; }
.annotation-layer   { position:absolute; top:0; left:0; pointer-events:none; }

.note-box{
  position:absolute;
  pointer-events: auto;
  z-index: 10;              /* higher than overlay-canvas */
/*  border:1px solid red;*/
}

.full-note-box  { position:absolute; border:4px solid rgba(0,255,0,0.5); background:rgba(0,255,0,0.1); }

/*.tie-end  { position:absolute; border:1px solid blue;}*/
.missed_note{
  position: absolute;      /* you already set this inline */
  z-index: 20;
  border: 2px solid rgba(0,0,255,0.8);  /* or whatever color you like */
  /*border-radius: 50% / 25%;*/
  border-radius: 50%;
  box-sizing: border-box;
  background:#fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

}


#startBtn {
  position: relative; /* make sure this is set */
  /* your existing styles... */
}
#startBtn.midi_mode::after {
  content: "MIDI";
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-block;
  padding: 0 6px;
  font-size: 10px;
  line-height: 1.4;
  color: white;
  background: #4caf50;        /* green badge */
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  pointer-events: none;
}

.play-cursor {
position: absolute;
top: 0;
bottom: 0;
width: 4px;
background: rgba(0, 0, 255, 0.7);
pointer-events: none;
z-index: 1000;
transform: translateX(-50%);
transition: left 0.1s ease; /* smooth movement */
display:none;
}


/* top bar container */

#sheet_nav_top {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: #493c78;
  display: flex;
  justify-content: center;    /* center all buttons */
  align-items: center;
  gap: 1.5rem;                /* space between buttons */
  z-index: 1000;
}

/* leave room for the bar */
.with-top-nav {
  padding-top: 56px;
}

/* buttons */
.nav-btn {
  background: transparent;
  border: none;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: sans-serif;
  font-size: 12px;
  color: #fff;            /* light text/icon */
  padding: 6px 8px;
  border-radius: 4px;
  transition:
    background-color 0.2s,
    color 0.2s;
}

/* icon size */
.nav-btn .icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-bottom: 2px;
}

/* hover (only when not active) */
.nav-btn:not(.active):hover {
  color: #ffffff;
}

/* active state: white pill + purple text */
.nav-btn.active {
  background: #ffffff;
  color: #493c78;
}
/*note editing*/
.note-options-menu {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  padding: 8px;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.note-options-menu button {
  background: #f9f9f9;
  border: none;
  padding: 6px 8px;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
}
.note-options-menu button:hover {
  background: #eee;
}
.note-options-menu button.close {
  justify-self: end;
  background: transparent;
  font-size: 16px;
  padding: 2px 4px;
}


