/* Chordie-Web - Light Theme */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --text-primary: #000000;
  --accent: #c0392b;
  --border: #cccccc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Branding-Bereich (Platzhalter) */
#branding-header {
  flex: 0 0 80px;
  min-height: 80px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

/* Grundeinstellungen */
#settings-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

#settings-bar label {
  font-size: 0.9rem;
}

#midi-input-select,
#analysis-display-select {
  min-width: 200px;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-primary);
}

#midi-refresh-btn {
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-primary);
  cursor: pointer;
}

#midi-refresh-btn:hover {
  background: #f0f0f0;
}

/* Oben: Analyse-Matrix (20%) */
#analysis-matrix {
  flex: 2 1 0;
  min-height: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  overflow: auto;
  color: #000000;
}

/* Mitte: Notation (50%) */
#notation-container {
  flex: 5 1 0;
  min-height: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  overflow: auto;
}

/* Notation: Noten, Schlüssel und Linien schwarz */
#notation-container svg path,
#notation-container svg line,
#notation-container svg rect,
#notation-container svg text {
  stroke: #000000 !important;
  fill: #000000 !important;
}

/* Unten: Klaviatur (30%) */
#keyboard-container {
  flex: 3 1 0;
  min-height: 0;
  background: var(--bg-primary);
  padding: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #999999;
  border-radius: 4px;
}

/* Browser-Unterstützungshinweis */
.midi-unsupported {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--accent);
  padding: 1rem;
}

.midi-unsupported p {
  max-width: 400px;
  line-height: 1.6;
}
