/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #333;
}

/* Title Styles */
.title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #5e35b1;
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Main Container Styles */
.main {
  width: 90%;
  max-width: 500px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Name Input Area */
.name {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eaeaea;
}

.name span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #e0e0e0;
  border-radius: 50%;
  margin-right: 10px;
  color: #5e35b1;
}

.name-input {
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #333;
  flex-grow: 1;
  outline: none;
  font-weight: 500;
}

/* Message Container */
.message-container {
  list-style-type: none;
  padding: 15px;
  overflow-y: auto;
  flex-grow: 1;
  height: 400px;
  background-color: #f8f9fa;
}

/* Message Styles */
.message-left,
.message-right {
  margin-bottom: 15px;
  display: flex;
}

.message-left {
  justify-content: flex-start;
}

.message-right {
  justify-content: flex-end;
}

.message {
  max-width: 70%;
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
}

.message-left .message {
  background-color: #f0f0f0;
  color: #333;
  border-top-left-radius: 4px;
}

.message-right .message {
  background-color: #5e35b1;
  color: white;
  border-top-right-radius: 4px;
}

.message span {
  display: block;
  font-size: 0.7rem;
  margin-top: 5px;
  opacity: 0.7;
}

/* Typing Feedback */
.message-feedback {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.feedback {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/* Message Form */
.message-form {
  display: flex;
  padding: 15px;
  background-color: white;
  border-top: 1px solid #eaeaea;
}

.message-input {
  flex-grow: 1;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  padding: 10px 15px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.message-input:focus {
  border-color: #5e35b1;
}

.v-divider {
  width: 10px;
}

.send-button {
  background-color: #5e35b1;
  color: white;
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
}

.send-button:hover {
  background-color: #4527a0;
}

.send-button span {
  margin-left: 5px;
}

/* Clients Total */
.clients-total {
  margin-top: 20px;
  background-color: white;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #5e35b1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .title {
    font-size: 2rem;
  }

  .main {
    width: 95%;
    height: 80vh;
  }

  .message-container {
    height: calc(80vh - 130px);
  }

  .send-button {
    padding: 10px 15px;
  }

  .send-button span i {
    margin-left: 0;
  }
}
