* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(180deg, #0b2c5f, #071a3a);
}

/* CENTER PAGE */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* CHAT CARD */
.chat-card {
  width: 100%;
  max-width: 520px;
  height: 88vh;
  background: #0b2c5f;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,.35);
}

/* HEADER */
.header {
  padding: 14px 16px;
  background: linear-gradient(90deg, #0e3a7c, #0b2c5f);
  color: #fff;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 42px;
  height: 42px;
}

.header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.header p {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: .85;
}

/* CHAT AREA */
.chat-box {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #0b2c5f;
}

/* MESSAGE */
.message {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.message.bot {
  background: #f1f5f9;
  color: #0f172a;
}

.message.user {
  background: #2563eb;
  color: #fff;
  margin-left: auto;
}

/* INPUT */
.input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.input-area input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  outline: none;
}

.input-area input:focus {
  border-color: #2563eb;
}

.input-area button {
  padding: 0 18px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.input-area button:hover {
  background: #1d4ed8;
}

/* MOBILE FIX */
@media (max-width: 480px) {
  .chat-card {
    height: 94vh;
    border-radius: 14px;
  }

  .message {
    max-width: 86%;
    font-size: 13px;
  }
}
