
     

 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #000;
  color: white;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #1a1a1a; 
}

.chat-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.chat-box.user {
  flex-direction: row-reverse;
}

.chat-box.user .bubble {
  background: #000;
  color: white;
  border-radius: 30px 0 30px 30px;
}

.chat-box.ai .bubble {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 0 30px 30px 30px;
  color: white;
}

.bubble {
  padding: 15px 20px;
  max-width: 70%;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
  word-wrap: break-word;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 2px 2px 10px black;
  flex-shrink: 0;
}

.input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background-color: #1f1f1f;
}

input[type="text"] {
  flex: 1;
  padding: 15px 20px;
  font-size: 16px;
  border: none;
  border-radius: 50px;
  background: black;
  color: white;
  box-shadow: 2px 2px 10px black;
}

button {
  background: black;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 10px black;
  overflow: hidden; 
}

button:hover {
  background: #222;
}

#upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.chat-image {
  max-width: 200px;
  max-height: 200px;
  border-radius: 10px;
  margin-top: 10px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}


.chat-box.ai .bubble {
  white-space: pre-wrap;
  /* font-family: monospace; */
}

.bubble::after {
  content: "";
  animation: blink 1s step-start infinite;
  margin-left: 2px;
  opacity: 0.6;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}


@media (max-width: 600px) {
  .bubble {
    max-width: 100%;
  }

  .input-area {
    flex-direction: column;
  }

  input[type="text"] {
    width: 100%;
  }
}


