/* === Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* === Background === */
body {
  min-height: 100vh;
  background: radial-gradient(circle at center,
    #ffffff 0%,
    #fffdf8 25%,
    #fff8e6 50%,
    #f4f8ff 80%,
    #e6f0ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Scrollbar Style === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 4px;
}

/* === Chat Container & Message Bubble === */
#chatContainer {
  width: 100%;
  max-width: 800px;
  margin: 160px auto 0;
  padding: 0 20px;
  padding-bottom: 120px;
}

.message {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  animation: fadeIn 0.3s ease-in;
}

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

.bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 18px;
  word-wrap: break-word;
  font-size: 15px;
  line-height: 1.5;
}

.user { align-items: flex-end; }
.user .bubble {
  background-color: #0a1b9f;
  color: white;
  border-bottom-right-radius: 6px;
}

.bot { align-items: flex-start; }
.bot .bubble {
  background-color: #f1f1f1;
  color: #222;
  border-bottom-left-radius: 6px;
}

/* === Input area === */
.input-area {
  position: fixed;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 30px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  padding: 6px 14px;
}

.input-area input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 10px;
  border-radius: 30px;
}

.send-btn {
  border: none;
  background: none;
  font-size: 30px;
  color: #3743a6;
  cursor: pointer;
}

/* === Header tombol Login & Sign up di pojok kanan atas === */
header {
  position: fixed;
  top: 20px;
  right: 40px;
  z-index: 100;
}

.header-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 22px;
  transition: all 0.3s ease;
}

.btn-login {
  background-color: #0a1b9f;
  color: white;
}

.btn-login:hover {
  background-color: #1424b8;
}

.btn-signup {
  background-color: #ffb400;
  color: white;
}

.btn-signup:hover {
  background-color: #ffcb4c;
}

/* === Hero Section === */
.hero {
  text-align: center;
  margin-top: 120px;
}

.logo {
  width: 85px;
  display: block;
  margin: 0 auto 20px;
}

h1 {
  font-size: 22px;
  font-weight: 500;
  color: #111;
  margin-bottom: 20px;
}

/* === Saran pertanyaan (suggestions) === */
.ask-section {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.suggestions {
  margin-bottom: 25px;
}

.suggestions p {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.suggestion-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.suggestion-buttons button {
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  background: #f2f2f2;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.suggestion-buttons button:hover {
  background: #eaeaea;
}

/* === Utility === */
.hidden { display: none !important; }

/* === Responsif === */
@media (max-width: 768px) {
  header {
    right: 20px;
    top: 15px;
  }
  .logo {
    width: 70px;
  }
  h1 {
    font-size: 18px;
  }
  .input-area {
    width: 90%;
  }
  .ask-section {
    bottom: 40px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  .suggestion-buttons button {
    font-size: 12px;
    padding: 8px 12px;
  }
  .logo {
    width: 60px;
  }
  .ask-section {
    bottom: 30px;
  }
}