@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #00c9ff, #92fe9d);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.app {
  width: 400px;
  height: 90vh;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
  font-size: 26px;
  font-weight: 600;
}

.header p {
  font-size: 14px;
  margin-top: 6px;
  color: #e0f7fa;
}

/* Chat */
.chat-container {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: none;
}

.chat-container::-webkit-scrollbar {
  display: none;
}

/* Messages */
.message {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
  word-wrap: break-word;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.bot {
  background: #ffffffc9;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.user {
  background: #2b7a78;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

/* Input Area */
.input-area {
  display: flex;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 10px;
}

.input-area input {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  border: none;
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
}

.input-area input::placeholder {
  color: #ddd;
}

.input-area input:focus {
  background: #3aafa9;
}

.input-area button {
  padding: 10px 14px;
  background: #3aafa9;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 600;
}

.input-area button:hover {
  background: #267d78;
}
