/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #0f1a20; /* ✅ Dark gradient */
  color: #e8e8e8;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* TOPBAR */
.topbar {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #09141a; /* ✅ Dark nav */
  border-bottom: 1px solid #1f2d36;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 22px;
  color: #d2d8dd;
  cursor: pointer;
}

.brand {
  margin-left: 14px;
  font-size: 20px;
  font-weight: 600;
  color: #d2d8dd;
}

/* NAV MENU */
.nav-menu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 240px;
  height: 100vh;
  background: #13232d;
  padding: 20px;
  transition: 0.3s;
  z-index: 99999;
  box-shadow: 2px 0 20px #0005;
}

.nav-menu.show {
  left: 0;
}

.nav-menu a {
  text-decoration: none;
  font-size: 16px;
  margin: 12px 0;
  color: #cdd3d7;
  display: block;
}

.nav-menu a:hover {
  color: #58c0ff;
}

/* PANEL WRAPPER */
.panel-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* PANEL KOTAK UTAMA */
.panel-content {
  width: 92%;
  max-width: 800px;
  padding: 20px;
  background: #122028;
  border: 1px solid #1e3a47;
  border-radius: 16px;
  box-shadow: 0 0 25px #0004;
}

/* PANEL TITLE */
.panel-title {
  font-size: 22px;
  margin-bottom: 6px;
  color: #58c0ff;
}

.panel-desc {
  color: #b6c1c8;
  margin-bottom: 16px;
}

/* CHAT BOX */
.chat-container {
  width: 100%;
  background: #1a2c36;
  padding: 16px;
  height: 55vh;
  border-radius: 12px;
  border: 1px solid #26404d;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.4;
  font-size: 15px;
  animation: fadeIn 0.2s ease-in-out;
}

/* USER BUBBLE */
.user-message {
  align-self: flex-end;
  background: #58c0ff;
  color: #000;
  border-bottom-right-radius: 4px;
}

/* BOT BUBBLE */
.bot-message {
  align-self: flex-start;
  background: #122b35;
  border: 1px solid #274957;
  color: #dce7eb;
  border-bottom-left-radius: 4px;
}

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

/* INPUT BAR */
.input-area {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

#user-input {
  flex: 1;
  padding: 12px 14px;
  background: #1a2c36;
  color: #cfd8dc;
  border: 1px solid #284552;
  border-radius: 12px;
  outline: none;
}

#user-input::placeholder {
  color: #748991;
}

/* BUTTON SEND */
#send-btn {
  padding: 12px 22px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #58c0ff, #5dffa9);
  color: #000;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

#send-btn:hover {
  opacity: 0.85;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 14px;
  margin-top: auto;
  color: #8899a5;
  font-size: 14px;
}
