* {
    box-sizing: border-box;
  }

  body {
    font-family: 'Roboto', sans-serif;
    background: #e5ddd5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 100vh;
  }

  .chat-container {
    display: flex;
    flex-direction: column;
    background:  #efe7dd url("chatbot-min.jpg") repeat;
    max-width: 600px;
    width: 100%;
    height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 0;
  }

  @supports (height: 100dvh) {
    .chat-container {
      height: 100dvh;
    }
  }

  .messages {
    flex: 1;
    min-height: 0;
    padding: 20px 15px 80px; /* ruang bawah agar tidak tertutup form */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .message {
    margin-bottom: 10px;
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
  }

  .user {
    align-self: flex-end;
    background-color: #dcf8c6;
    border-bottom-right-radius: 0;
  }

  .bot {
    align-self: flex-start;
    background-color: #f1f0f0;
    border-bottom-left-radius: 0;
  }

  form {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
    z-index: 100;
  }

  input[type=text] {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    background: #eee;
  }

  input[type=text]:focus {
    outline: none;
    background: #e2e2e2;
  }

  button {
    padding: 10px 15px;
    margin-left: 10px;
    border: none;
    background: #128C7E;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  button:hover {
    background: #075e54;
  }

  @media (max-width: 600px) {
    .chat-container {
      border-radius: 0;
    }
  }

  .send-button {
    background-color: #128C7E;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(18, 140, 126, 0.4); /* Soft shadow */
    transition: all 0.3s ease-in-out;
  }

  .send-button:hover {
    background-color: #075e54;
    box-shadow: 0 0 12px rgba(18, 140, 126, 0.7); /* Glow effect on hover */
  }

  .send-button svg {
    width: 28px;
    height: 28px;
    fill: white;
    transform: translateX(1px); /* untuk posisi lebih natural */
  }
