body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: auto;
}

h2, h3, label {
  color: #f5f5f5;
}

a {
  color: #82aaff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

textarea {
  width: 100%;
  background-color: #1e1e1e;
  color: #e0e0e0;
  border: 1px solid #333;
  padding: 10px;
  border-radius: 5px;
}

select, input[type="range"] {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border: 1px solid #333;
  padding: 5px;
  border-radius: 5px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #4379b6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.chat-box {
  background-color: #1e1e1e;
  padding: 10px;
  border-radius: 5px;
  height: 400px;
  overflow-y: auto;
  border: 1px solid #333;
}

.message {
  margin-bottom: 10px;
}

.message.user .bubble {
  background-color: #2a2a2a;
  color: #ffffff;
  padding: 10px;
  border-radius: 10px;
  text-align: right;
}

.message.assistant .bubble {
  background-color: #333;
  color: #e0e0e0;
  padding: 10px;
  border-radius: 10px;
  text-align: left;
}

/* Spinner styles */
.lds-dual-ring {
  display: inline-block;
  width: 40px;
  height: 40px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 32px;
  height: 32px;
  margin: 4px;
  border-radius: 50%;
  border: 4px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Traffic lights */
#traffic-lights {
  display: flex;
  justify-content: space-around;
  margin: 50px 0;
}

.light-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #333;
}

.circle.grey {
  background-color: #666;
}

.circle.red {
  background-color: red;
}

.circle.yellow {
  background-color: yellow;
}

.circle.green {
  background-color: green;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
