body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #e0e0e0;
  color: #333;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.container {
  display: flex;
  background-color: #f0f0f0;
  border-radius: 8px;
  width: 90%;
  max-width: 1000px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.sidebar {
  width: 250px;
  background-color: #d3d3d3;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

h1 {
  font-size: 20px;
  margin: 10px 0 5px;
}

.subtitle {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

/* Desktop photo-wall in vertical column */
.photo-wall {
  margin-top: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.photo img {
  width: 100px;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

.chat-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.chat-display {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  background-color: #ffffff;
  padding: 10px 15px;
  border-radius: 10px;
  align-self: flex-start;
  max-width: 85%;
  word-wrap: break-word;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.message.user {
  background-color: #d9fdd3;
  align-self: flex-end;
}

.message.bot {
  background-color: #e6f0ff;
  color: #004080;
}

.chat-input-box {
  display: flex;
  border-top: 1px solid #ccc;
  background: #f9f9f9;
}

.input-row {
  display: flex;
  align-items: center;
  padding: 10px;
  width: 100%;
  position: sticky;
  bottom: 0;
  background-color: #f9f9f9;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  z-index: 100;
}

.input-row input[type="text"] {
  flex-grow: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.send-button {
  margin-left: 10px;
  padding: 10px 16px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.send-button:hover {
  background-color: #0056b3;
}

/* 📱 Mobile Optimisation */
@media (max-width: 768px) {
  body, html {
    height: 100%;
    margin: 0;
    padding: 0;
  }

  .container {
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-wrap: wrap;
    text-align: center;
  }

  .avatar {
    width: 70px;
    height: 70px;
    margin-right: 15px;
  }

  .text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  h1 {
    font-size: 18px;
    margin: 2px 0;
  }

  .subtitle {
    font-size: 12px;
    margin: 2px 0;
  }

  .photo-wall {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
  }

  .photo img {
    width: 70px;
  }

  .chat-section {
    padding: 10px;
    max-height: calc(100vh - 160px);
  }

  .chat-display {
    max-height: 100%;
    overflow-y: auto;
  }
}