/* ===== GLOBAL ===== */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e2e8f0;
  min-height: 100vh;
  text-align: center;
}

/* ============================= */
/* ===== LANDING PAGE ===== */
/* ============================= */

.container {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

h1 {
  font-size: 52px;
  font-weight: 800;
  margin: 0 0 15px;
  color: #38bdf8;
}

.tagline {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 25px;
  max-width: 600px;
}

.agreement {
  margin-bottom: 15px;
  font-size: 14px;
  color: #94a3b8;
}

.agreement label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.start-btn {
  padding: 14px 32px;
  font-size: 16px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  border: none;
  cursor: pointer;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  transition: 0.2s ease;
}

.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59,130,246,0.4);
}

/* ============================= */
/* ===== CHAT PAGE ===== */
/* ============================= */

.chat-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.chat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  color: #38bdf8;
}

.online-badge {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.chat-status {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.typing-indicator {
  height: 16px;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
}

/* Chat fills available space properly */
#chat-box {
  flex: 1;
  background: rgba(15,23,42,0.95);
  border-radius: 15px;
  padding: 15px;
  overflow-y: auto;
  text-align: left;
  font-size: 15px;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 15px rgba(56,189,248,0.15);
  margin-bottom: 10px;
}

/* Input area */
.input-area {
  display: flex;
  gap: 8px;
}

input[type="text"] {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  border-radius: 10px;
  border: none;
}

.primary-btn,
.send-btn {
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  color: white;
}

.primary-btn {
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

.send-btn {
  background: #22c55e;
}

.send-btn:hover {
  background: #16a34a;
}

/* ============================= */
/* ===== MOBILE RESPONSIVE ===== */
/* ============================= */

@media (max-width: 768px) {

  h1 {
    font-size: 32px;
  }

  .tagline {
    font-size: 15px;
  }

  .container {
    padding: 30px 15px;
  }

  .chat-container {
    padding: 10px;
  }

  #chat-box {
    font-size: 14px;
  }

  .input-area {
    flex-direction: column;
  }

  .primary-btn,
  .send-btn {
    width: 100%;
  }
}