/* Reset and base styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #888;
  min-height: 100vh;
  margin: 0;
}

footer {
  flex-shrink: 0;
  text-align: center;
  padding: 0.7rem 1rem;
  background: #000;
  color: #888;
  font-size: 0.7rem;
  border-top: 1px solid #e0e3e7;
  letter-spacing: 0.02em;
  /*max-width: 500px;*/
  box-sizing: border-box;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}
.logo-container {
  display: flex;
  justify-content: left;
  align-items: center;
  margin: 10px 0;
}
.logo {
  max-height: 54px;
  width: auto;
  height: auto;
  display: block;
  transition: all 0.3s ease-in-out;
}
.logo:hover {
  transform: scale(1.05);
}
/* Main chat container */
.chat-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  height: 100vh;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 40px rgba(0,0,0,0.07);
  border-radius: 18px
  padding: 0;
}

header {
  text-align: center;
  padding: 1rem 1rem 1rem 1rem;
}

header h1 {
  font-size: 1.6rem;
  margin: 0 0 0.4rem 0;
}
header h4 {
  margin: 0 0 0.2rem 0;
  font-size: 1rem;
  color: #666;
}
header p {
  margin: 0 0 0.7rem 0;
  font-size: 0.92rem;
  color: #222;
}

main#chat {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
  background: #fafbfc;
  box-sizing: border-box;
  min-height: 0;
}

.message-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.7em;
}

.message-bubble {
  display: inline-block;
  max-width: 90%;
  padding: 0.7em 1em;
  border-radius: 16px;
  background: #e8eaf6;
  font-size: 1.05em;
  margin-bottom: 0.2em;
  word-break: break-word;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(50,50,93,0.06);
}

.message-bubble.user {
  align-self: flex-end;
  background: #bc0e0e;
  color: #fff;
}

.message-bubble.bot {
  align-self: flex-start;
  background: #1e1d1d;
  color: #fff;
}

/* Markdown-style code and lists */
.message-bubble pre,
.message-bubble code {
  background: #000;
  color: #9cdcfe;
  padding: 8px;
  border-radius: 6px;
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 0.97em;
  overflow-x: auto;
}
.message-bubble ul, .message-bubble ol {
  margin: 10px 0 10px 24px;
  padding: 0;
}
.message-bubble h1, .message-bubble h2, .message-bubble h3 {
  margin: 10px 0 6px 0;
  font-weight: bold;
}
.message-bubble p {
  margin: 6px 0;
}
.message-bubble.bot a {
  color: #4fc3f7;
  text-decoration: underline;
  transition: color 0.2s;
}
.message-bubble.bot a:hover {
  color: #81d4fa; /* lebih terang saat hover */
}
/* Chat input row */
.input-row {
  display: flex;
  padding: 1rem;
  background: #fff;
  border-top: 5px solid #bc0e0e;
  gap: 0.6em;
  box-sizing: border-box;
}

#input {
  flex: 1 1 auto;
  padding: 0.7em 1em;
  border: 1px solid #cfd8dc;
  border-radius: 20px;
  font-size: 1em;
  outline: none;
  box-sizing: border-box;
  background: #fafbfc;
  transition: border 0.2s;
}

#input:focus {
  border: 1.5px solid #4f8cff;
  background: #fff;
}

#send {
  flex: 0 0 auto;
  background: #bc0e0e;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0 1.4em;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.18s;
}

#send:active,
#send:focus {
  background: #284eaa;
  outline: none;
}

/* Responsive for mobile and FullHD */
@media (max-width: 1100px) {
  .chat-container {
    max-width: 100vw;
    /*border-radius: 14px;*/
    height: 100vh;
    min-height: 420px;
  }
  main#chat {
    padding: 0.7rem 0.3rem;
  }
  .input-row {
    padding: 0.7rem 0.3rem;
    gap: 0.4em;
  }
  #send {
    padding: 0 1em;
    font-size: 0.98em;
  }
  header {
    padding: 1rem 0.5rem 0.3rem 0.5rem;
  }
  footer {
    font-size: 0.7rem;
    padding: 0.4rem 0.1rem;
  }
  .logo {
  max-height: 48px;
  width: auto;
  height: auto;
  display: block;
  transition: all 0.3s ease-in-out;
}
