/**
 * EOM Partituras Interactivas - Estilos del Editor Visual de Melodías y Teclado
 * Escuela Online de Música
 */

/* Contenedor del Editor Visual */
.eom-visual-editor-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

/* Barra superior de ajustes (Compás, Clave, Tonalidad) */
.eom-editor-settings-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}

.eom-editor-setting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eom-editor-setting label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

.eom-editor-setting select {
  padding: 0.35rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
}

.eom-editor-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eom-btn-ed-tool {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s ease;
}

.eom-btn-ed-tool:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Selector de Figuras Rítmicas */
.eom-rhythm-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.eom-rhythm-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.eom-rhythm-buttons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.eom-rhythm-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s ease;
}

.eom-rhythm-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
}

.eom-rhythm-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.eom-btn-barline {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Teclado de Piano */
.eom-piano-keyboard-wrapper {
  background: #0f172a;
  padding: 1rem 0.75rem 0.5rem;
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.25rem;
}

.eom-piano-keyboard {
  display: flex;
  position: relative;
  height: 140px;
  user-select: none;
  min-width: 580px;
  justify-content: center;
}

.eom-piano-key {
  position: relative;
  cursor: pointer;
  transition: all 0.08s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  box-sizing: border-box;
}

.eom-piano-key span {
  font-size: 0.7rem;
  font-weight: 700;
  pointer-events: none;
}

.eom-piano-key.white {
  width: 42px;
  height: 100%;
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 0 0 5px 5px;
  z-index: 1;
  color: #64748b;
  box-shadow: inset 0 -3px 0 #cbd5e1, 0 2px 3px rgba(0,0,0,0.15);
}

.eom-piano-key.white:hover {
  background: #f8fafc;
}

.eom-piano-key.white:active {
  background: #e0f2fe;
  box-shadow: inset 0 -1px 0 #0284c7;
  transform: translateY(2px);
  color: #0284c7;
}

.eom-piano-key.black {
  width: 26px;
  height: 60%;
  background: linear-gradient(180deg, #334155 0%, #0f172a 100%);
  margin-left: -13px;
  margin-right: -13px;
  z-index: 2;
  border-radius: 0 0 4px 4px;
  color: #cbd5e1;
  box-shadow: 0 3px 5px rgba(0,0,0,0.5);
}

.eom-piano-key.black:hover {
  background: #1e293b;
}

.eom-piano-key.black:active {
  background: #0284c7;
  transform: translateY(2px);
  color: #ffffff;
}

/* Historial visual de notas añadidas */
.eom-melody-tokens-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.eom-tokens-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  margin-top: 3px;
}

.eom-melody-tokens-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.eom-tokens-empty {
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
}

.eom-token-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #bae6fd;
}

.eom-token-badge.token-bar {
  background: #e2e8f0;
  color: #334155;
  font-weight: 800;
  border-color: #cbd5e1;
}

/* Zona de Carga / Drag & Drop MusicXML */
.eom-musicxml-dropzone {
  border: 2px dashed #0284c7;
  border-radius: 12px;
  background: #f0f9ff;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

.eom-musicxml-dropzone:hover,
.eom-musicxml-dropzone.dragover {
  background: #e0f2fe;
  border-color: #0369a1;
  transform: scale(1.01);
}

.eom-dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.eom-dropzone-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
}

.eom-dropzone-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}
