* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  background-color: #0e0e10;
  color: #e4e4e7;
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background-color: #121212;
}

/* Header */
.chat-header {
  padding: 16px 24px;
  background: #1c1c1e;
  border-bottom: 1px solid #2a2a2d;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chat-header h1 {
  font-size: 1.8rem;
  background: linear-gradient(to right, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.chat-header p {
  font-size: 0.9rem;
  color: #a1a1aa;
  margin-top: 4px;
}

/* Messages Area */
.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background-color: #121212;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}

.message {
  max-width: 70%;
  padding: 14px 18px;
  border-radius: 14px;
  line-height: 1.6;
  font-size: 1rem;
  word-wrap: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.user-message {
  align-self: flex-end;
  background: #1f1f22;
  color: #fff;
}

.bot-message {
  align-self: flex-start;
  background: #242429;
  color: #d4d4d8;
}

/* Input Area */
.chat-input-area {
  display: flex;
  padding: 20px 24px;
  background-color: #1c1c1e;
  border-top: 1px solid #2a2a2d;
  gap: 12px;
}

.chat-input-area input {
  flex: 1;
  padding: 14px 20px;
  background-color: #121212;
  border: 1px solid #2a2a2d;
  border-radius: 10px;
  color: #e4e4e7;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease-in-out;
}

.chat-input-area input:focus {
  border-color: #7c3aed;
}

.chat-input-area button {
  padding: 14px 22px;
  background: linear-gradient(to right, #7c3aed, #d946ef);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.chat-input-area button:hover {
  opacity: 0.9;
}

/*Responsive Styles */
@media (max-width: 768px) {
  .chat-header h1 {
    font-size: 1.5rem;
  }

  .chat-header p {
    font-size: 0.8rem;
  }

  .chat-messages {
    padding: 16px;
    gap: 12px;
  }

  .message {
    font-size: 0.95rem;
    max-width: 85%;
  }

  .chat-input-area {
    flex-direction: column;
    padding: 16px;
  }

  .chat-input-area input,
  .chat-input-area button {
    width: 100%;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  .chat-input-area button {
    margin-left: 0;
    margin-top: 10px;
  }
}
