/* General Styling */
body {
  font-family: Arial, sans-serif;
  background:url(asset/ChatGPT\ Image\ Aug\ 8\,\ 2025\,\ 04_14_13\ PM.png);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

/* Chat Container */
.chat-container {
  background: #fff;
  width: 420px;
  height: 600px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Header */
.chat-header {
  background: #6c63ff;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h2 {
  margin: 0;
  font-size: 18px;
}

.chat-header p {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
}

.leave-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* Messages */
.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f7f7fa;
}

.message {
  max-width: 75%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  position: relative;
}

.message.sent {
  background: #6c63ff;
  color: white;
  align-self: flex-end;
}

.message.received {
  background: #e0e0e0;
  align-self: flex-start;
}

.time {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  opacity: 0.6;
}

/* Input Bar */
.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chat-input input {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
}

.chat-input button {
  background: #6c63ff;
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
}
