* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #ecf0f1;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 600px;
  padding: 12px;
  gap: 4px;
}

#pitch-label {
  margin: 0;
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: #2c3e50;
}

#status-label {
  margin: 0 0 8px;
  text-align: center;
  font-size: 16px;
  color: #7f8c8d;
}

.graphics-area {
  flex: 1;
  min-height: 0;
  display: flex;
  background: #ffffff;
  border: 1px solid #bdc3c7;
}

.keyboard-canvas {
  width: 80px;
  height: 100%;
  flex: none;
  border-right: 1px solid #bdc3c7;
  touch-action: none;
  cursor: pointer;
}

.plot-canvas {
  flex: 1;
  height: 100%;
  min-width: 0;
}

.controls {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.btn {
  flex: 1;
  font-size: 18px;
  padding: 10px;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
}

.btn:disabled {
  background-color: #95a5a6 !important;
  cursor: default;
}

.btn-record {
  background-color: #2ecc71;
}

.btn-record:hover:not(:disabled) {
  background-color: #27ae60;
}

.btn-stop {
  background-color: #e74c3c;
}

.btn-stop:hover:not(:disabled) {
  background-color: #c0392b;
}
