
/* ===== Chatbot Styles (adapted for Roswalt Ryla) ===== */
#chatopenbtn {
    position: fixed;
    bottom: 90px;
    right: 31vw;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-image: url("../images/icons/aishwarya.gif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
  }
  #chatopenbtn:hover {
    transform: scale(1.08);
  }
  
  #chatclosebtn {
    position: fixed;
    bottom: 90px;
    right: 31vw;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--buttonBodyColorPrimary);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1101;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  }
  
  #chat {
    position: fixed;
    bottom: 160px;
    right: 31vw;
    width: 360px;
    max-width: 90vw;
    height: 520px;
    max-height: 55vh;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    z-index: 1100;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
  }
  /* scrolled */
#chatopenbtn,
#chatclosebtn,
#chat {
  transition: right 0.4s ease, transform 0.3s ease; /* smooth right shift */
}
#chatopenbtn.scrolled,
#chatclosebtn.scrolled,
#chat.scrolled {
  right: 25px !important;
}
/* scrolled */
  .chat-header {
    background: linear-gradient(135deg, var(--bodyColorPrimary), var(--bodyColorSecondary));
    height: 56px;
    color: var(--colorText);
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .chat-header-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-image: url("../images/icons/aishwarya.gif");
    background-size: cover;
    background-position: center;
    border: 2px solid #fff;
    position: relative;
  }
  
  .active-circle {
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    position: absolute;
    right: -2px;
    bottom: -1px;
    border: 2px solid #fff;
  }
  
  .chat-header-name {
    font-weight: 600;
    font-size: 16px;
  }
  
  #chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f5f5f5;
  }
  
  #chat .bot-message,
  #chat .user-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }
  
  #chat .bot-message.bot {
    background: #fff;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
  }
  
  #chat .user-message.user {
    background: var(--bodyColorPrimary);
    color: var(--colorText);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
  }
  
  #chat .typing {
    font-style: italic;
    color: #888;
    align-self: flex-start;
  }
  
  .chatconfigbox {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 6px;
  }
  
  .option-btn {
    background: var(--bodyColorPrimary);
    color: var(--colorText);
    border: none;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .option-btn:hover {
    background: var(--buttonBodyColorPrimary);
  }
  
  .chatbotform {
    width: 100%;
    margin-top: 8px;
  }
  
  .chatbotform input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
  }
  
  .chatbotform .btn-wrapper {
    text-align: right;
  }
  
  .chatbotform .submit_box {
    background: var(--buttonBodyColorPrimary);
    color: var(--colorText);
    border: none;
    padding: 10px 22px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
  }
  .chatbotform .submit_box:hover {
    background: var(--buttonBodyColorSecondary);
  }
  
  /* Mobile adjustments */
  @media (max-width: 768px) {
    #chat {
      display: none;
      bottom: 0;
      right: 0;
      width: 100%;
      max-width: 100%;
      height: 100%;
      max-height: 100%;
      border-radius: 0;
    }
    #chatopenbtn,
    #chatclosebtn {
      display: none;
      bottom: 80px;
      right: 15px;
    }
  }