* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background-color: #2c3e50;
  color: white;
}

.logo {
  height: 40px;
  width: auto;
  margin-right: 15px;
}

main {
  display: flex;
  flex-direction: row;
  padding: 20px;
  gap: 20px;
}

.controls {
  flex: 1;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.controls label {
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

.controls input,
.controls select,
.controls button {
  padding: 8px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.controls button {
  background-color: #3498db;
  color: white;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s;
}

.controls button:hover {
  background-color: #2980b9;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.graph {
  flex: 2;
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

canvas {
  width: 100%;
  height: 420px;
}

footer {
  padding: 10px 20px;
  background-color: #ecf0f1;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid #ccc;
}

#configModal {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
  width: 300px;
}

#configModal h2 {
  margin-bottom: 10px;
}

#configModal label {
  font-size: 14px;
  margin-top: 10px;
  display: block;
}

#configModal input {
  width: 100%;
  padding: 6px;
  margin-top: 4px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

#configModal button {
  margin-top: 15px;
  padding: 8px;
  width: 100%;
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#configModal button:hover {
  background-color: #219150;
}