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

body {
  background: #0b0f15;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 12px;
}

.chat-container {
  width: 100%;
  max-width: 480px;
  height: 780px;
  max-height: 95vh;
  background: #131a22;
  border-radius: 32px;
  box-shadow: 0 25px 50px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(75, 130, 200, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(2px);
}

.chat-header {
  padding: 18px 20px;
  border-bottom: 1px solid #25303d;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(19, 26, 34, 0.9);
  backdrop-filter: blur(8px);
}

.bot-avatar {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px -2px #1e3a8a40;
  overflow: hidden;
}

.bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.header-info h2 {
  color: #f0f6fc;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.header-info p {
  color: #8b9bb5;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #0f161e;
  scroll-behavior: smooth;
}

.message {
  display: flex;
  max-width: 85%;
  animation: fadeIn 0.2s ease;
}

.message.bot {
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
}

.bubble {
  padding: 12px 16px;
  border-radius: 22px;
  font-size: 0.95rem;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.bot .bubble {
  background: #1e2a36;
  color: #e6edf5;
  border-bottom-left-radius: 6px;
  border: 1px solid #2e3c4a;
}

.user .bubble {
  background: #2563eb;
  color: white;
  border-bottom-right-radius: 6px;
  background: linear-gradient(145deg, #1d4ed8, #2563eb);
}

.bubble .action-button {
  display: inline-block;
  background: #3b82f6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px #00000030;
  transition: all 0.15s;
  border: 1px solid #60a5fa;
}

.bot .bubble .action-button {
  background: #2563eb;
}

.action-button:active {
  transform: scale(0.97);
  background: #1e4fbf;
}

.file-upload-area {
  margin-top: 12px;
}

.file-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111b24;
  padding: 12px 16px;
  border-radius: 20px;
  border: 1.5px dashed #3b82f6;
  color: #bdd3ff;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.file-label:hover {
  background: #1a293b;
}

.file-label input {
  display: none;
}

.file-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-chip {
  background: #1e2f40;
  padding: 8px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #d9e6ff;
  border: 1px solid #3a5a7a;
}

.file-chip .remove-file {
  margin-left: auto;
  background: none;
  border: none;
  color: #9ab3d0;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}

.chat-input-area {
  padding: 16px 16px 20px;
  background: #131a22;
  border-top: 1px solid #25303d;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.input-wrapper {
  flex: 1;
  background: #1b2733;
  border-radius: 30px;
  padding: 6px 6px 6px 18px;
  display: flex;
  align-items: center;
  border: 1px solid #33475e;
  transition: border 0.15s;
}

.input-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px #1e3a8a40;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 6px 12px 0;
  color: #f0f6fc;
  font-size: 1rem;
  outline: none;
}

.input-wrapper input::placeholder {
  color: #6b85a0;
}

.send-btn {
  background: #2563eb;
  color: white;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  transition: background 0.15s;
}

.send-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.info-message {
  text-align: center;
  color: #8ba1bc;
  font-size: 0.8rem;
  margin: 4px 0;
}

.column-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.column-btn {
  background: #1e2a36;
  border: 1px solid #3a5a7a;
  color: #d9e6ff;
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.9rem;
}

.column-btn.active {
  background: #2563eb;
  border-color: #60a5fa;
  color: white;
}

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

.chat-messages::-webkit-scrollbar {
  width: 5px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: #2e445e;
  border-radius: 20px;
}