/* style.css */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #fdfbfb, #ebedee);
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  background: #007BFF;
  color: #fff;
  padding: 1rem;
  width: 100%;
  text-align: center;
}

.anamnesis-container,
.container {
  width: 95%;
  max-width: 1200px;
  background: #fff;
  padding: 20px 30px;
  margin: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.controls-container {
  margin: 20px 0;
}

.control {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.control label {
  flex: 1 0 200px;
  font-weight: bold;
  color: #555;
  margin-right: 5px;
}

.control input,
.control select,
.control button {
  flex: 2 0 200px;
  padding: 8px;
  font-size: 1em;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.control button {
  background: #007BFF;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.control button:hover {
  background: #0056b3;
}

.auto-supply {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  background: #f0f0f0;
  border-radius: 6px;
}

.svg-container {
  text-align: center;
  margin-bottom: 20px;
}

.svg-container .controls {
  margin-bottom: 10px;
}

#silhouetteSVG {
  width: 300px;
  height: auto;
  border: 1px solid #ccc;
  background: #fff;
}

#personContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

#personSilhouette {
  width: 150px;
  height: 300px;
  background: #ddd;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
  color: #666;
  margin-bottom: 10px;
}

#massband,
#waage {
  font-size: 1.2em;
  margin: 5px 0;
}

.anamnesis-container input[type="checkbox"] {
  margin-right: 5px;
}

#insulinTherapySection {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #aaa;
  background: #eef;
  border-radius: 6px;
}

.ereignisverwaltung {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #aaa;
  background: #fafafa;
  border-radius: 6px;
}

.output,
.log {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  margin-top: 20px;
  font-size: 0.95em;
  color: #333;
}

.log {
  max-height: 200px;
  overflow-y: auto;
}

#chartContainer {
  margin-top: 20px;
}

#ecgDisplay,
#breathingDisplay {
  margin-top: 20px;
  text-align: center;
}

#ecgCanvas,
#breathingCanvas {
  background: #000;
  border: 1px solid #444;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

#modalWarning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

#modalContent {
  max-width: 400px;
  margin: 100px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 600px) {
  .control {
    flex-direction: column;
    align-items: stretch;
  }
  .control label {
    margin-bottom: 5px;
  }
}
