/* ABC SCORE ASSISTANT - 共通スタイル */

body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f5f5f5;
}

header {
  text-align: center;
  background-color: #4CAF50;
  color: white;
  padding: 20px;
  border-radius: 8px;
}

.feature {
  background-color: white;
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature h2 {
  color: #4CAF50;
}

.upload-section {
  text-align: center;
  margin-top: 30px;
}

.hidden {
  display: none;
}

input[type="file"] {
  margin: 10px 0;
}

pre {
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.abc-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

#copy-abc-button,
#open-file-button,
#play-abc-button,
#stop-abc-button {
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  padding: 8px 14px;
  cursor: pointer;
}

#copy-abc-button {
  background-color: #4a90e2;
}

#open-file-button {
  background-color: #4a90e2;
}

#copy-abc-button:hover {
  background-color: #357bc9;
}

#open-file-button:hover {
  background-color: #357bc9;
}

#copy-status {
  display: inline-block;
  min-height: 1em;
  font-size: 0.85rem;
  color: #444;
}

#copy-abc-button:hover {
  background-color: #357bc9;
}

#play-abc-button {
  background-color: #2e8b57;
}

#stop-abc-button {
  background-color: #cc4b37;
}

#play-abc-button:hover {
  background-color: #267349;
}

#stop-abc-button:hover {
  background-color: #b53f2f;
}

#play-status {
  display: inline-block;
  min-height: 1em;
  font-size: 0.85rem;
  color: #444;
}

.abc-editor {
  text-align: left;
}

.debug-log {
  margin: 0 0 12px;
}

.debug-log summary {
  cursor: pointer;
  color: #2f5f8e;
  font-size: 0.9rem;
  user-select: none;
}

.midi-output-section {
  margin: 10px 0 12px;
}

.midi-output-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #2f5f8e;
}

#output {
  white-space: pre-wrap;
  margin-top: 0;
  border: 1px solid #ddd;
  padding: 10px;
  min-height: 50px;
  background: #fdfdfd;
  font-size: 0.9em;
}

.file-input-hidden {
  display: none;
}

#abc-input {
  width: 100%;
  min-height: 220px;
  border: 2px solid #4a90e2;
  border-radius: 8px;
  padding: 12px;
  box-sizing: border-box;
  background: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
}

.status-row {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 1.1em;
}

.playback-render {
  margin-top: 12px;
}

.playback-render-hidden {
  display: none;
}
