* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #e5ddd5;
  height: 100vh;
  overflow: hidden;
}
.chat-layout {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.chat-header {
  background: #075e54;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e5ddd5' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.msg {
  display: flex;
  margin-bottom: 8px;
  clear: both;
}
.msg.user {
  justify-content: flex-end;
}
.msg.bot {
  justify-content: flex-start;
}
.bubble {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 8px;
  word-wrap: break-word;
  position: relative;
}
.msg.user .bubble {
  background: #dcf8c6;
  border-top-right-radius: 2px;
}
.msg.bot .bubble {
  background: #fff;
  border-top-left-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.msg-time {
  font-size: 11px;
  color: #667781;
  margin-top: 2px;
  text-align: right;
}
.msg-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.msg-buttons button {
  background: #075e54;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.msg-buttons button:hover {
  background: #054d44;
}
.copy-detail-block {
  background: #f0f2f5;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  font-size: 13px;
  text-align: left;
}
.copy-detail-block p {
  margin: 4px 0;
}
.copy-detail-btn {
  margin-top: 10px;
  background: #25d366;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.copy-detail-btn:hover {
  background: #20bd5a;
}
.pending-list {
  margin-top: 10px;
}
.pending-item {
  background: #f0f2f5;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 13px;
}
.pending-item p {
  margin: 2px 0;
}
.pending-item .item-buttons {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.pending-item .item-buttons button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.pending-item .item-buttons button.accept {
  background: #25d366;
  color: #fff;
}
.pending-item .item-buttons button.reject {
  background: #ea4335;
  color: #fff;
}
.chat-footer {
  padding: 10px 16px;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-footer input[type="text"],
.chat-footer input[type="number"] {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  outline: none;
}
.chat-footer input[type="file"] {
  display: none;
}
.chat-footer .send-btn {
  background: #25d366;
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-footer .send-btn:hover {
  background: #20bd5a;
}
.chat-footer .send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.upload-btn {
  background: #075e54;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.lead-generating {
  font-style: italic;
  color: #667781;
}
