body {
  background: #101a2b;
  color: #e0e6f6;
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#chat {
  background: #162030;
  border: 1px solid #232d3d;
  border-radius: 10px;
  width: 50%;
  height: 50vh;
  overflow-y: auto;
  margin-bottom: 10px;
}
.input-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  min-width: 50%;
  min-height: 45px;
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 5px;
}

.input-row select {
  background: #162030;
  color: #e0e6f6;
  border: 1px solid #232d3d;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  flex-grow: 1;
  min-height: 40px;
}

.input-row button {
  margin-left: 5px;
  background: #232d3d;
  color: #e0e6f6;
  border: none;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.input-row button:not(:disabled):hover {
  background: #2c4a7a;
}

.input-row button:disabled,
.input-row button:disabled:hover {
  background: #232d3d;
  cursor: not-allowed;
}

#textInput {
  flex: 1;
  background: #162030;
  color: #e0e6f6;
  border: 1px solid #232d3d;
  border-radius: 6px;
  padding: 8px;
  resize: none;
  font-size: 1em;
  outline: none;
}

#configSection {
  margin: 12px;
  padding: 8px;
  border-radius: 6px;
  background: #162030;
  border: 1px solid #232d3d;
}
/*#connectBtn, #testBtn {
  margin: 0px 0 16px 0;
  padding: 12px 16px;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  color: #fff;
  background: #232d3d;
  cursor: pointer;
}*/
.user {
  text-align: right;
  color: white;
  font-weight: 500;
  margin: 20px 5px 20px 20px;
  padding: 10px;
  background-color: #3286df;
  border-radius: 15px;
}
.bot {
  text-align: left;
  color: white;
  font-weight: 500;
  margin: 20px 20px 20px 5px;
  padding: 10px 15px;
  background-color: #097786;
  border-radius: 15px;
}
.bot_thought {
  text-align: left;
  color: white;
  font-weight: 400;
  margin: 20px 20px 20px 5px;
  padding: 10px;
  background-color: #273436;
  border-radius: 15px;
}

.bot_intent {
  text-align: left;
  color: white;
  font-weight: 400;
  margin: 20px 20px 20px 5px;
  padding: 10px;
  background-color: #4e1632;
  border-radius: 15px;
}

#percentage {
  color: #ccc;
  font-size: 0.9em;
  margin: 0;
  padding: 0;
}

::selection {
  background: #223a5f;
  color: #fff;
}
@media (max-width: 500px) {
  #chat,
  #inputRow {
    width: 98vw;
    min-width: 0;
    max-width: 100vw;
  }
  #audioSelect {
    flex: 1 1 100%;
  }
}
