/* Reset and base */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9fafb;
  color: #222;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: auto;
  background: white;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

h1, h2 {
  color: #2c3e50;
  margin-bottom: 15px;
}

p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #555;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-bottom: 30px;
}

label {
  flex-basis: 100%;
  font-weight: 600;
  margin-bottom: 6px;
}

select, input[type="number"] {
  flex: 1 1 45%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

select:focus, input[type="number"]:focus {
  border-color: #4a90e2;
  outline: none;
}

button[type="submit"] {
  flex-basis: 100%;
  background-color: #4a90e2;
  border: none;
  color: white;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #357ABD;
}

#entriesSection {
  margin-bottom: 30px;
}

#entriesList {
  list-style: none;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
}

#entriesList li {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  color: #333;
}

#entriesList li:last-child {
  border-bottom: none;
}

.clear-btn {
  background-color: #e74c3c;
  border: none;
  color: white;
  padding: 10px 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.clear-btn:hover {
  background-color: #c0392b;
}

#chartSection {
  text-align: center;
}

canvas {
  max-width: 100%;
  height: 300px;
}
