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

.dual-panel {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ccc;
  overflow-y: auto;
}

.panel:last-child {
  border-right: none;
}

.panel-header {
  background: #007bff;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.file-button {
  background: white;
  color: #007bff;
  padding: 5px 5px;
  font-size: 12 px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 2px;
  margin-bottom: 0px;
  margin-top: 0px;
}

.song-container {
  padding: 0 2px;
}

.song-group {
  border: 1px solid #555;
  border-radius: 4px;
  margin: 1px 0;
  background-color: white;
  overflow: hidden;
}

.letter {
  border: 2px solid black;
  border-radius: 4px;
  margin: 5px 0;
  background-color: white;
}

.arrow {
  margin-left: 10px;
}

.indexSpan {
  width: 15px;
  margin-right: 5px;
  border-right: 1px black solid;
  color: #444;
  font-size: 12px;
}

.indented {
}

.group-header {
  padding: 5px 5px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ddd;
}

.group-header.green {
  background-color: #b8f5b8;
}

.group-header.darkgreen {
  background-color: #9ed69e;
}

.group-header.yellow {
  background-color: #fff7b3;
}

.group-header.red {
  background-color: #f5b8b8;
}

.group-title {
  font-size: 12px;
  color: #000;
  text-transform: uppercase;
}

.group-meta {
  font-size: 12px;
  color: #666;
  margin-left: 0px;
}

.group-header button.delete-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: red;
  cursor: pointer;
  margin-left: 10px;
}
.expand-arrow {
  margin-right: 15px;
  display: none;
}
.combi-row {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-top: 1px solid #ccc;
}

.combi-row.green-row {
  background-color: #b8f5b8;
}

.combi-row.red-row {
  background-color: #f5b8b8;
}

.combi-row label {
  width: 40px;
}

.combi-row input {
  flex-grow: 1;
  font-size: 14px;
  padding: 4px;
}

.combi-row.readonly input {
  background: #eee;
  border: none;
  color: #555;
}

.hidden {
  display: none;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-box {
  background: white;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 320px;
}

.modal-box p {
  margin-bottom: 16px;
  font-size: 16px;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.modal-buttons button {
  flex: 1;
  padding: 2px 2px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-buttons .cancel-btn {
  background: #ccc;
}

.modal-buttons .confirm-btn {
  background: #d9534f;
  color: white;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  font-size: 16px;
}

.group-title {
  font-weight: bold;
}

.group-meta {
  margin-left: auto;
  text-align: right;
  font-weight: 600;
  color: #444;
}

.group-meta small {
  font-size: 0.75em;
  color: #666;
  margin-left: 6px;
}

.delete-btn {
  margin-left: 10px;
  background: none;
  border: none;
  color: red;
  font-size: 16px;
  cursor: pointer;
}

.drag-handle {
  cursor: grab;
  display: inline-flex;
  align-items: center;
  padding: 0 0px;
  font-size: 1.2em;
  user-select: none;
  margin-right: 6px;
}
.drag-handle:active {
  cursor: grabbing;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal.hidden {
  display: none;
}
.modal-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
}

#leftPanel {
  flex: 1;
  min-width: 0;
}

#rightPanel {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    flex-basis 0.25s ease,
    width 0.25s ease,
    opacity 0.25s ease;
}

#rightPanel.open {
  flex: 1;
  width: 50%;
  opacity: 1;
}

#rightPanel.open {
  transform: translateX(0);
}
#setlistHeader {
  position: relative;
}

#masterListBtn {
  position: absolute;
  right: 5px;
}

#pdfImportWelcome {
  display: flex;
  justify-content: center;
  padding: 40px 0px;
  width: 100%;
}

.pdf-main-button {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 5px 20px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

#pdfImportWelcome.hidden {
  display: none;
}
