@charset "UTF-8";
/* Estilos básicos para la estructura inicial */
:root {
  --global-font-size: 0.8rem;
  font-family: 'Verdana', sans-serif;
}
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #111;
  color: #fff;
  font-family: inherit;
  font-size: var(--global-font-size);
}

#app-title {
  margin: 20px 0 10px;
  font-size: 2.5rem;
  font-weight: 700;
}

#top-menu,
#bottom-menu {
  display: flex;
  gap: 10px;
  margin: 10px;
  background: #1a1a1a;
  padding: 10px;
  border-radius: 6px;
}

/* Layout específico para el menú inferior para mantener
   un formato organizado y simétrico */
#bottom-menu {
  justify-content: center;
  align-items: center;
}

#bottom-menu #instrument-select,
#bottom-menu #family-select,
#bottom-menu #developer-mode {
  flex: 1;
  min-width: 150px;
}

#bottom-menu #toggle-family-panel {
  flex: 0 0 40px;
  text-align: center;
  padding: 6px;
}

#bottom-menu select,
#bottom-menu button {
  width: 100%;
  text-align: center;
}

button,
select,
input {
  background: #333;
  border: 1px solid #555;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: inherit;
  font-family: inherit;
  transition: background 0.2s;
}

button:hover,
select:hover,
input:hover {
  background: #444;
  cursor: pointer;
}

#family-config-panel {
  display: none;
  gap: 10px;
  margin: 0 10px 10px;
  background: #222;
  padding: 10px;
  width: calc(100% - 20px);
  justify-content: center;
  font-size: inherit;
  grid-template-columns: 1fr 1fr;
}

#family-config-panel.active {
  display: grid;
}

#developer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
  justify-content: center;
  font-size: inherit;
  grid-column: 1 / -1;
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inst-section {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dev-control {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #333;
  padding: 5px;
}

.dev-control label {
  min-width: 120px;
}

.family-config-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #333;
  padding: 5px;
}

.family-config-item label {
  min-width: 150px;
}

#visualizer {
  border: 1px solid #444;
  height: 720px;
  background-color: #000;
}

#assignment-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
}

#assignment-modal .modal-content {
  background: #222;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-columns {
  display: flex;
  gap: 20px;
}

.instruments-column,
.families-column {
  flex: 1;
  max-height: 400px;
  overflow-y: auto;
}

#modal-instrument-list,
.family-zone ul {
  list-style: none;
  padding: 0;
}

.instrument-item {
  padding: 5px;
  margin: 2px 0;
  background: #333;
  cursor: grab;
}

.instrument-item.selected {
  background: #555;
}

.family-zone {
  border: 1px dashed #555;
  padding: 5px;
  margin-bottom: 10px;
}

.family-zone h4 {
  margin: 0 0 5px;
}

.hidden {
  display: none;
}

.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  pointer-events: none;
  z-index: 1000;
}

#toggle-fps.active {
  background-color: #444;
  color: #fff;
}
