
#staff {
  display: block;
  margin-bottom: 20px;
  margin-left:0px;
  
}

.white-key {
  fill: white;
  stroke: black;
}

.black-key {
  fill: black;
}
/*
.white-key.pressed {
  fill: #bbb !important;
}

.black-key.pressed {
  fill: #222!important;
}
*/
.white-key.wasPressed {
  fill: #ddd !important;
}

.black-key.wasPressed {
  fill: #444 !important;
}

rect.black-key.red-key {
  fill: #CF272C !important;
}

rect.black-key.blue-key {
  /*fill: #80A8B6 !important;*/
  fill: #4070c0 !important;
}                    
rect.white-key.red-key {
  fill: #FF474C !important;
}

rect.white-key.blue-key {
  fill: #80A0E6 !important;
}                    

  
.key-label {
  font-size: 10px;
  text-anchor: start;
  fill: black;
   pointer-events: none;
  user-select: none;
}

.octave-label {
  font-size: 12px;
  text-anchor: start;
  fill: darkgray;
}
body.dark-theme {
  background-color: #111;
  color: #eee;
}


body {
  transition: background-color 0.3s, color 0.3s;
}
html, body {
  transition: filter 0.3s ease;
}

#blackoutOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: black;
  display: none; /* hidden by default */
  z-index: 9999;
}
#blackoutOverlay.visible {
  display: block;
}
#tabs { margin: 20px; }
textarea { width: 90%; height: 130px; }
/*canvas { border: 1px solid #ccc; margin-top: 20px; }*/
svg { border: 1px solid #ccc; margin-top: 20px; }

/*li { padding: 0.25em 0; display: flex; align-items: center; justify-content: space-between; }*/

#session-systems-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 230px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
}
#session-systems-list li {
  list-style-type: none;
}

.system-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0.6em;
  border-bottom: 1px solid #eee;
}

.system-select {
  flex-shrink: 0;
  margin: 0;
}

.system-actions {
  display: flex;
  gap: 0.2em;
  flex-shrink: 0;
}

.icon-btn {
  /*background: none;*/
  border: none;
  padding: 0;
  cursor: pointer;
  width: 1.2em;
  height: 1.2em;
}

.icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.system-name {
  margin-left: 0.5em;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabHdg {
  font-size: 18px;
  font-weight: bold;
}
.system-item.selected {
  background-color: #e0f0ff;
  border-left: 4px solid #3399ff;
}
table input {
  padding: 2px 4px;
  margin: 0;
  height: 20px;
  font-size: 14px;
}
table input {
  height: 16px;
  font-size: 12px;
  padding: 0 2px;
}

table tr {
  line-height: 1;
  padding: 0;
  margin: 0;
}

table td {
  padding: 0px 2px;
}
    #system-table-wrapper {
      max-height: 160px;
      overflow-y: auto;
      border: 1px solid #ccc;
    }

    #noteTable {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
    }

    #noteTable thead th {
      position: sticky;
      top: 0;
      background: #fff;
      z-index: 1;
      border-bottom: 1px solid #ccc;
      padding: 2px;
    }

    #noteTable td {
      padding: 0;
      margin: 0;
    }

    #noteTable td input {
      width: 100%;
      box-sizing: border-box;
      padding: 1px 2px;
      margin: 0;
      height: 18px;
      font-family: monospace;
      font-size: 12px;
    }

    #noteTable tr {
      line-height: 1;
      margin: 0;
      padding: 0;
    }

    .col-num {
      width: 2em;
      text-align: center;
    }

    .col-status {
      width: 2em;
      text-align: center;
    }

    .col-delete {
      width: 2.5em;
      text-align: center;
    }

    .col-bass, .col-treble {
      width: 40ch;
    }

    #system-vexflow-canvas {
      width: 100%;
      /*padding-top:30px;*/
      
    }
    #system-buttons {
  margin-top: 1em;
  text-align: center;
}

.sys-btn {
  font-weight: bold;
  font-size: .8em;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sys-btn.cancel {
  background-color: #d9534f;  /* Bootstrap-style red */
  color: white;
  font-size: .8em;
  
}

.sys-btn.save {
  background-color: #5cb85c;  /* Bootstrap-style green */
  color: white;
  font-size: .8em;
}

.sys-btn.cancel:hover {
  background-color: #c9302c;
}

.sys-btn.save:hover {
  background-color: #449d44;
}
.drag-handle img {
  width: 16px  !important;
  height: 16px !important;
}
#importBtn {
  background-color: #007bff;
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.settings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.settings-box {
  flex: 1 1 250px; /* grows, shrinks, minimum width */
  border: 1px solid #666;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  /*background: #222;   /* matches dark theme */*/
}

.settings-box legend {
  font-weight: bold;
  padding: 0 0.5rem;
}

/* hide tabs until JS runs */
#tabs {
  display: none;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.results-table th, .results-table td {
  border: 1px solid var(--border-color, #444);
  padding: 4px 8px;
  text-align: center;
}

.results-table th {
  background-color: var(--header-bg, #333);
}

/* new for results-table:
/* Cursor and minimal highlighting */
.results-table th {
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.results-table th.sorted-col {
  background-color: #f0f4ff; /* light blue highlight */
  color: #003399;
}

.results-table th:hover {
  background-color: #e9eefc;
}

/* Optional: slightly dim sorted column cells */
.results-table td:nth-child(odd) {
  transition: background-color 0.2s ease;
}
.results-table th.sorted-col,
.results-table th.sorted-col ~ td {
  transition: background-color 0.2s ease;
}

/* Base table header style */
.results-table th {
  background-color: #e6e6e6;        /* light gray for readability */
  color: #111;                      /* dark text */
  font-weight: 600;
  padding: 6px 10px;
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover effect for all headers */
.results-table th:hover {
  background-color: #d5e0f4;        /* soft blue highlight on hover */
}

/* Currently sorted column */
.results-table th.sorted-col {
  background-color: #bcd2f6;        /* stronger blue */
  color: #000;
}


body.dark-theme .results-table th {
  background-color: #333;
  color: #eee;
}
body.dark-theme .results-table th.sorted-col {
  background-color: #4a6bbf;
  color: #fff;
}
body.dark-theme .results-table th:hover {
  background-color: #3e4e7e;
}

/* 3D look for pressed keys */
.white-key {
  stroke: #333;
  stroke-width: 1;
  fill: white;
  transition: all 0.05s ease;
}

.black-key {
  stroke: #111;
  stroke-width: 1;
  fill: black;
  transition: all 0.05s ease;
}

/* When pressed — slightly darker, inset shadow, and shifted */
.white-key.pressed {
  fill: #ddd;
  transform: translateY(2px);
  stroke: #222;
  filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.5));
}

.black-key.pressed {
  fill: #222;
  transform: translateY(2px);
  filter: drop-shadow(0px 1px 1px rgba(255, 255, 255, 0.2));
}

/* Optional: rounded edges for a smoother look */
.white-key, .black-key {
  rx: 2;
  ry: 2;
}

.black-key.pressed {
  fill: #111;
  transform: translateY(3px) scaleY(0.95);
  filter: none;
}

/* Loading indicator */
/* overlay covers entire viewport */
#pt-loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12,18,30,0.45);
  z-index: 9999;
}

/* hidden utility */
.pt-hidden { display: none !important; }

/* card with subtle blur/backdrop */
.pt-loading-card {
  background: rgba(255,255,255,0.98);
  padding: 18px 22px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 90%;
}

/* spinner (indeterminate) */
.pt-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.12);
  border-top-color: #2563eb; /* blue highlight */
  animation: pt-spin 0.85s linear infinite;
}
@keyframes pt-spin { to { transform: rotate(360deg); } }

/* message text */
.pt-msg {
  font-size: 15px;
  color: #0b2546;
  text-align: center;
}

/* progress bar container */
.pt-progress-container {
  width: 100%;
  height: 10px;
  background: #eef3fb;
  border-radius: 6px;
  overflow: hidden;
}

/* progress fill */
.pt-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width 160ms linear;
}
