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

body {
  font-family: "Poppins", sans-serif;
  background-color: #f5f7fb;
  color: #333;
  line-height: 1.6;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  margin-bottom: 20px;
}

.logo h1 {
  color: #ff4b91;
  font-size: 28px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-actions button {
  background-color: #ff4b91;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.header-actions button:hover {
  background-color: #e63c7b;
}

.message-counter {
  background-color: #f0f0f0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #666;
}

/* Chat Container Styles */
.chat-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Profile Section Styles */
.profile-section {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #fff0f5;
  border-bottom: 1px solid #f0f0f0;
}

.profile-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 3px solid #ff4b91;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.profile-info p {
  color: #666;
  font-size: 14px;
}

.status {
  font-size: 12px;
  margin-top: 5px;
}

.status.online {
  color: #4caf50;
}

.status.online::before {
  content: "•";
  margin-right: 5px;
}

/* Messages Container Styles */
.messages-container {
  height: 400px;
  overflow-y: auto;
  padding: 20px;
  background-color: #f9f9f9;
}

.message {
  margin-bottom: 15px;
  max-width: 80%;
}

.system-message {
  text-align: center;
  max-width: 100%;
  margin: 10px 0;
}

.system-message p {
  display: inline-block;
  background-color: #f0f0f0;
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 12px;
  color: #666;
}

.sent-message {
  margin-left: auto;
}

.sent-message p {
  background-color: #ff4b91;
  color: white;
  padding: 10px 15px;
  border-radius: 18px 18px 0 18px;
  display: inline-block;
}

.received-message {
  margin-right: auto;
}

.received-message p {
  background-color: #e9e9eb;
  color: #333;
  padding: 10px 15px;
  border-radius: 18px 18px 18px 0;
  display: inline-block;
}

/* Add these styles for the typing indicator */
.typing-indicator p {
  /* display: flex; */
  align-items: center;
  padding: 8px 15px !important;
  min-width: 50px;
}

.typing-indicator .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #888;
  margin: 0 2px;
  animation: typing-animation 1.4s infinite ease-in-out both;
}

.typing-indicator .dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-animation {
  0%,
  80%,
  100% {
    transform: scale(0.7);
    opacity: 0.6;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Message Input Styles */
.message-input-container {
  display: flex;
  padding: 15px;
  border-top: 1px solid #f0f0f0;
}

#message-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  padding: 12px 15px;
  font-size: 14px;
  resize: none;
  height: 48px;
  outline: none;
  font-family: "Poppins", sans-serif;
}

#message-input:focus {
  border-color: #ff4b91;
}

#send-message-btn {
  background-color: #ff4b91;
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

#send-message-btn:hover {
  background-color: #e63c7b;
}

#send-message-btn::before {
  content: "→";
  font-size: 20px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  padding: 30px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.modal-content h2 {
  color: #333;
  margin-bottom: 15px;
  font-size: 22px;
}

.modal-content p {
  color: #666;
  margin-bottom: 25px;
}

.payment-options {
  display: flex;
  gap: 20px;
}

.payment-option {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  position: relative;
}

.payment-option.featured {
  border-color: #ff4b91;
  box-shadow: 0 5px 15px rgba(255, 75, 145, 0.1);
}

.best-value {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff4b91;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.payment-option h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.price {
  font-size: 24px;
  font-weight: 600;
  color: #ff4b91;
  margin-bottom: 15px;
}

.payment-option ul {
  list-style: none;
  margin-bottom: 20px;
  text-align: left;
}

.payment-option ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
  font-size: 14px;
}

.payment-option ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

.payment-btn {
  background-color: #ff4b91;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  transition: background-color 0.3s;
}

.payment-btn:hover {
  background-color: #e63c7b;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .payment-options {
    flex-direction: column;
  }

  .profile-section {
    flex-direction: column;
    text-align: center;
  }

  .profile-image {
    margin-right: 0;
    margin-bottom: 15px;
  }
}
