/* Chat area */
#chat {
  flex:1;
  min-height: 0;
  overflow-y:auto;
  border:1px solid var(--border);
  padding:15px;
  background:var(--surface);
  margin:40px;
  margin-bottom: 10px;
  border-radius:20px;
}

/* Message container */
.message {
  display:flex;
  margin:10px 0;
  }

/* User messages */
.user {
  justify-content:flex-end;
}
.user .bubble {
  background:#007bff;
  color:white;
}

/* AI messages */
.ai {
  justify-content:flex-start;
}

.ai .bubble {
  background:#e9e9eb;
  color:#222;
 }

.bubble {
  width: 90%;
  max-width:90%;
  padding:12px 16px;
  line-height:1;
  font-size: 28px;
  border-radius:18px 18px 4px 18px;
 }

.bubble table {
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
}

.bubble th,
.bubble td {
  padding:6px;
  border-bottom:1px solid #ddd;
  text-align:left;
}

/* Time */
.time {
  font-size:11px;
  color:#777;
  margin-top:4px;
}

/* Input area */
.input-area {
  display:flex;
  gap:10px;
  margin: 20px;
  margin-left: 40px;
  margin-right: 40px;
}

#message {
  flex:1;
  padding:30px;
  border-radius:20px;
  border:1px solid #ccc;
  font-size:28px;
}

button {
  border:none;
  background:#007bff;
  color:white;
  padding:0 30px;
  border-radius:20px;
  cursor:pointer;
  font-size:28px;
}

button:hover {
  background:#0056b3;
}

/* Log button */
.log-button {
  background:#28a745;
}

.log-button:hover {
  background:#218838;
}

/* Clear button */
.clear-button {
  background:#777;
}

.clear-button:hover {
  background:#555;
}

table {
  font-size:28px;
}

th, td {
  padding:6px;
  border-bottom:1px solid #ddd;
}

th {
  font-weight:bold;
}
