.resizer {
  font-size: 12px;
    position: fixed;
    bottom: 15px;
    padding-left: 15px;
}
.chatbot {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
    max-width: 600px;
  height: 100%;
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-radius: 0;
  overflow: hidden;
  background: var(--blue-100);
  color: var(--blue-900);
  border: none;
  z-index: 1092 !important;
}

.offcanvas, .offcanvas-backdrop, .offcanvas-end {
  --bs-offcanvas-border-width: 0;
  border:none !important;
}
chatbot.offcanvas .offcanvas-backdrop {
  background: rgba(17, 24, 39, 0.5) !important;
}

.offcanvas-header {
    height: var(--navbar-height) !important;
    background: var(--blue-200);
    color: var(--blue-950);
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--blue-200);
    color: var(--blue-950);
}
.offcanvas-title {
  font-size: 1.25rem;
  background: var(--blue-200);
  color: var(--blue-950);
  margin: 0;
}

/* Form Elements */
.offcanvas .form-control:focus,
.offcanvas .form-control:active,
.offcanvas .form-control:focus-within {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
.input-chat .form-control:focus,
.input-chat .form-control:active,
.input-chat .form-control:focus-within {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
.input-chat {
  background: var(--blue-100);
  border-radius: 12px;
  color: var(--blue-950);
  padding: 10px 14px;
    border-color: transparent;
    outline: none;
    border: none;
    width:100%;
}
.input-chat::placeholder {
    color: var(--blue-950);
}
.input-chat:focus,
.input-chat:active {
    border: none !important;
}

.bottom-area {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 34%;
}
.loading {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
  border-radius: 10px;
}

.chatbot.show {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  padding: 20px;
  height: 66%;
  overflow-y: auto;
  gap: 12px;
  background: var(--blue-100);
}

.message {
  display: flex !important;
  max-width: 70%; 
  width: fit-content; 
  margin: 0 auto 0 0;
  text-align: left !important;
}

.message.user {
  margin-left: auto !important; 
  margin-right: 0 !important;
}

.message.ai,
.message.error {
  margin-right: auto !important;  
  margin-left: 0 !important;
}

.message .bubble {
  padding: 14px 18px;
  border-radius: 20px;
  width: fit-content;   
  max-width: 100%;
  word-wrap: break-word;
  line-height: 1.5;
}

.message.user .bubble {
  background: var(--blue-200);
  color: var(--blue-950);
  border-bottom-right-radius: 6px;
  margin-left: auto;
}

.message.ai .bubble {
  background: rgba(127,127,127,0.1);
  color: var(--blue-950);
  border-bottom-left-radius: 6px;
}

.message.error .bubble {
  background: #f5d8d894;
  color: #b02929;
  border: none;
  border-bottom-left-radius: 6px;
}

.input-group {
    width: 100%;
    padding: 10px
}

.button-group {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

.close-btn:hover {
    color: var(--blue-700);
}
.fab-chatbot {
            position: fixed;
            bottom: clamp(14px, 3.8vw, 26px);
            right: clamp(14px, 3.8vw, 26px);
            z-index: 1062;
            width: 56px;
            height: 56px;
            background: var(--blue-700);
            border: none;
            border-radius: 16px;
            color: var(--blue-100);
            font-size: 1.15rem;
            cursor: pointer;
            transition: all 0.5s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
            transform: scale(0.8) translateY(20px); /* ← TAMBAH */
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        }

@keyframes fabSlideIn {     /* ← TAMBAH FULL */
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    50% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
        @media (min-width: 768px) { /* MD - iPad */
            .fab-chatbot { right: clamp(24px, 4.5vw, 45px); }
        }
        @media (min-width: 992px) { /* LG - Laptop */
            .fab-chatbot { 
                right: clamp(65px, 6vw, 90px);
            }
        }
        @media (min-width: 1200px) { /* XL - Desktop */
            .fab-chatbot { 
                right: clamp(120px, 8vw, 160px);
            }
        }