
body {
  background: linear-gradient(to right, #f8f8f8, #ececec);
  font-family: 'Segoe UI', sans-serif;
}
.chatbox {
  max-width: 800px;
  margin: 3rem auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}
.chatlog {
  height: 400px;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  background-color: #f9f9f9;
  margin-bottom: 1rem;
}
.chatlog div {
  margin-bottom: 1rem;
  clear: both;
}
.chatlog .user {
  background-color: #e7f3ff;
  border-left: 4px solid #2196f3;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: #003d66;
  margin-left: auto;
  max-width: 75%;
}
.chatlog .bot {
  background-color: #fff1f0;
  border-left: 4px solid #e53935;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: #600;
  margin-right: auto;
  max-width: 75%;
}
.typing-indicator {
  font-style: italic;
  color: #555;
  margin-top: 10px;
  font-size: 0.95rem;
}
.typing-indicator::after {
  content: '...';
  animation: dots 1s steps(3, end) infinite;
}
@keyframes dots {
  0%   { content: ''; }
  33%  { content: '.'; }
  66%  { content: '..'; }
  100% { content: '...'; }
}
.alert {
  transition: all 0.3s ease-in-out;
}
.btn-danger {
  border-radius: 8px;
}
#chatbox input.form-control {
  border-radius: 8px 0 0 8px;
}
.input-group button {
  border-radius: 0 8px 8px 0;
}
.glass-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}
.glass-loader.hidden {
  display: none;
}
img {
  margin-top: 10px;
  border-radius: 6px;
}
