html, body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* 🚨 stops page scroll */
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #667eea, #764ba2);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app {
  width: 85%;
}

.chat-container {
  height: 90vh;
  background: white;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  overflow: hidden;
}

.header {
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  background: #1c579c;
  color: white;
}

.chat-box {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f5f7fb;
}


#loading {
  margin-top: 15px;
  font-weight: bold;
}

#answerBox {
  margin-top: 20px;
  text-align: left;
}

pre {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
  white-space: pre-wrap;
}

.feedback {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.feedback button {
  flex: 1;
  background: #eee;
  color: black;
}

.hidden {
  display: none;
}

#answerText {
  line-height: 1.6;
}

#answerText strong {
  color: #2c3e50;
}

#answerText ul {
  padding-left: 20px;
}

#answerText li {
  margin-bottom: 5px;
}

.chat-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.user {
  align-self: flex-start;
  background: #e3f2fd;
  color: #333;
  border-bottom-left-radius: 4px;
}

.bot {
  align-self: flex-end;
  background: linear-gradient(135deg, #4a90e2, #6fb1fc);
  color: white;
  border-bottom-right-radius: 4px;
}

.input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid #eee;
  background: white;
}

.input-area input {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
}

.input-area button {
  margin-left: 10px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: #1c579c;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.input-area button:hover {
  background: #357abd;
}

.message {
  max-width: 75%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.typing {
  font-style: italic;
  opacity: 0.7;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0.3; }
}





