@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-image: url('img2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

.overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-container {
  width: 400px;
  height: 550px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background: rgba(187, 82, 16, 0.8);
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.chat-box {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  padding: 10px 15px;
  border-radius: 20px;
  max-width: 70%;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease-in-out;
}

.chat-message.user {
  align-self: flex-end;
  background: rgba(187, 82, 16, 0.8);
  color: white;
}

.chat-input {
  display: flex;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
}

.chat-input input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 30px;
  outline: none;
  font-size: 0.9rem;
}

.chat-input button {
  padding: 10px 20px;
  margin-left: 10px;
  border: none;
  border-radius: 30px;
  background: rgba(187, 82, 16, 0.8);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.chat-input button:hover {
  background: rgba(187, 82, 16, 0.8);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chat-message {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
