.App {
  font-family: 'Segoe UI', Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 2em;
  background: #f9f9fb;
}

h1 {
  color: #3c3c7c;
  margin-bottom: 0.2em;
}

.input-section {
  display: flex;
  align-items: flex-end;
  gap: 2em;
  margin-bottom: 1em;
}

.input-section form {
  display: flex;
  gap: 0.5em;
}

.input-section input[type="text"],
.input-section input[type="date"],
.input-section input[type="number"] {
  padding: 0.3em;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.input-section button {
  padding: 0.3em 1em;
  background: #3c3c7c;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.input-section button:hover {
  background: #2a2a5c;
}

.threshold-input {
  font-size: 1em;
}

.alert {
  background: #ffe3e3;
  color: #b00020;
  padding: 0.8em;
  margin-bottom: 1em;
  border-radius: 5px;
  font-weight: bold;
}

.chart-section, .table-section {
  margin-top: 2em;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-top: 1em;
}

th, td {
  padding: 0.7em;
  border-bottom: 1px solid #eee;
  text-align: left;
}

th {
  background: #f0f0f5;
}

footer {
  margin-top: 2em;
  text-align: center;
  color: #888;
}
