body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;

  background: #f8f8f8;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 30px;
  box-sizing: border-box;
}

.chat-container {
  width: 100%;
  max-width: 700px;

  background: white;

  border-radius: 18px;

  overflow: hidden;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

header {
  background: #000;

  color: white;

  padding: 20px;

  text-align: center;
}

header h1 {
  margin: 5px 0;
}

header p {
  margin: 5px 0 0;
  color: #d8d8d8;
}

.logo {
  width: 150px;
  max-width: 100%;

  margin-bottom: 10px;
}

#latestQuestion {
  min-height: 20px;

  padding: 15px;

  background: #efe7dd;

  font-weight: bold;
}

#chatBox {
  height: 500px;

  overflow-y: auto;

  padding: 20px;

  background: #fafafa;

  display: flex;
  flex-direction: column;

  gap: 15px;
}

.message {
  padding: 12px 18px;

  border-radius: 20px;

  max-width: 80%;

  line-height: 1.5;

  word-wrap: break-word;
}

.user {
  background: #000;

  color: white;

  align-self: flex-end;

  border-bottom-right-radius: 5px;
}

.bot {
  background: #e5e5e5;

  color: #111;

  align-self: flex-start;

  border-bottom-left-radius: 5px;
}

.input-area {
  display: flex;

  padding: 20px;

  gap: 10px;
}

input {
  flex: 1;

  padding: 14px;

  font-size: 16px;

  border-radius: 10px;

  border: 1px solid #ccc;

  outline: none;
}

input:focus {
  border-color: #000;
}

button {
  background: #000;

  color: white;

  border: none;

  padding: 14px 25px;

  cursor: pointer;

  border-radius: 10px;

  font-weight: bold;
}

button:hover {
  background: #555;
}

button:disabled {
  background: #999;

  cursor: not-allowed;
}

footer {
  text-align: center;

  padding: 12px;

  background: #efe7dd;
}

@media (max-width: 700px) {
  body {
    padding: 0;
    align-items: stretch;
  }

  .chat-container {
    width: 100%;
    min-height: 100vh;

    border-radius: 0;
  }

  #chatBox {
    height: 60vh;
  }

  .message {
    max-width: 85%;
  }

  .input-area {
    padding: 15px;
  }

  button {
    padding: 14px 18px;
  }
} 