body {
    /* background: linear-gradient(135deg, #EF95B4 0%, #F4D176 45%, #A6A9DE 100%); */
    height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: auto;
}
/* Header */
.chat-header {
    background: #128c7e;
    color: white;
    padding: 12px 16px;
    font-weight: 600;
}
.chat-wrapper {
    height: 100vh;              /* full viewport height */
    display: flex;
    flex-direction: column;
}
/* Chat Area */
#messages {
    flex: 1;
    overflow-y: auto;
    padding: 2% 12% 0% 12%;
    /* padding-bottom: 90px; */
    max-height: 85vh;
    scrollbar-width: thin;                 /* Firefox */
    scrollbar-color: rgba(161, 166, 177, 0.6) transparent; /* Firefox */
    /* background-color: #e9edef;  */
    /* background: linear-gradient(180deg, #f0f2f5 0%, #e9edef 100%); */
}

.sidebar::-webkit-scrollbar-button {
    display: none;
}

#messages::-webkit-scrollbar {
    width: 2px;            /* scrollbar width */
}
/* Hide scrollbar arrows (Chrome, Edge, Safari) */
#messages::-webkit-scrollbar-button {
    display: none;
}
#messages::-webkit-scrollbar-track {
    background: transparent;
}

#messages::-webkit-scrollbar-thumb {
background-color: rgba(107,114,128,0.6);
    border-radius: 10px;
}

#messages::-webkit-scrollbar-thumb:hover {
background-color: rgba(107,114,128,0.6);
}
/* Message bubbles */
.msg-user {
    /* background: #fcfffa; */
    border-radius: 12px 12px 0 12px;
    padding: 8px 12px;
    max-width: 85%;
    /* margin-right: 15px !important; */
    font-size: 16px;
    font-family: 'Inter';
    background: linear-gradient(135deg, #4F46E5, #6366F1);
    color: white;
    border-radius: 16px 16px 4px 16px;
    justify-self: right;
    letter-spacing: 0.2px;
    margin: 10px 1px;
    transform: translateY(10px) scale(0.98);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.msg-bot {
    border-radius: 12px 12px 12px 0;
    padding: 12px 12px;
    letter-spacing: 0.2px;
    /* margin-left: 15px; */
    max-width: 85%;
    font-size: 14px;
    line-height: 1.3;
    background: #FFFFFF;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
        transform: translateY(10px) scale(0.98);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.chat-message-input{
    background: #f7f7f7 !important;
}
.suggestion-btn.active {
    background-color: #211225;
    color: #fff;
    border-color: #211225;
}

.suggestion-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Input bar */
.chat-input {
    position: fixed;
    bottom: 2%;
    left: 20%;
    right: 0;
    background: transparent;
    padding: 15px;
    /* border-top: 1px solid #ddd; */
    width: 61%;
    margin: auto;
}
.form-control {
    background: transparent !important;
    width: 100%;
    border: 1px solid #bfb9b9 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* 🔥 Focus state */
.form-control:focus {
   border-color: #49344e;
box-shadow: 0 0 0 3px rgba(109,40,217,0.4);
    /* background: transparent !important; */
    outline: none;
}
input:focus {
    box-shadow: none !important;
}
.header-image{
    height: 100px;
    scale: 1.3;
}
.chat-top {
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.chat-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 15px;
}

.text-muted {
    font-size: 15px;
}
/* Image */
.chat-hero-img img {
    height: 100px;
    scale: 1.2;
    margin-right: 15px;
    border-radius: 14px;
}


.typing span {
    height: 6px;
    width: 6px;
    background: #999;
    display: inline-block;
    border-radius: 50%;
    margin: 0 2px;
    animation: blink 1.4s infinite both;
}

.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}
.msg-bot button {
    font-size: 15px;
    transition: all 0.2s ease;
    color: #333333;
    border-color: #8c8b8b;
    /* letter-spacing: 0.5px; */
}

.msg-bot button:hover {
    background-color: #211225;
    color: #fff;
    font-size: 15px!important;
    font-weight: 500;
}

.btn-primary{
     background-color: #211225 !important;
     color: white !important;
     border: none !important;
}
/* =========================
   MOBILE FIXES
========================= */
@media (max-width: 768px) {
    body {
        background: #f0f2f5;
        height: 100vh;
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: auto;
        overflow: hidden !important;
    }
    .chat-input {
        width: 100%;
        left: 0% !important;
        bottom: 0% !important;
    }
    .chat-top-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
        padding-bottom: 25px;
    }   

    .chat-title h1 {
        font-size: 20px;
    }
    .chat-title p {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .chat-hero-img img {
        max-width: 160px;
        margin: 0 auto;
    }
    #messages {
        min-height: calc(100vh - 230px);
        padding-bottom: 100px;
        padding: 0% 3% 10% 3%;
        max-height: 85vh !important;
    }
    .msg-user,
    .msg-bot {
        max-width: 85%;
        font-size: 16px;
        line-height: 1.3;
        letter-spacing: 0.2px;
        background: #FFFFFF;
        border-radius: 16px 16px 16px 4px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    }
    .msg-user{
        margin: 10px 1px;
        align-self: flex-end;
        max-width:90%;
        letter-spacing: 0.2px;
        width: fit-content;
        display: inline-block;
        text-align: left;
        word-wrap: break-word;
        word-break: break-word;
        background: linear-gradient(135deg, #4F46E5, #6366F1);
        color: white;
        border-radius: 12px 16px 4px 12px;
    }
    .price_div{
        width: 100% !important;
    }
}
.msg-animate {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    animation: smoothBotFade 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes smoothBotFade {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  /* border: 1px solid #ddd; */
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  background: #fff;
  width: 33% !important;
  z-index: 999;
}

.suggestions li {
  padding: 8px 12px;
  cursor: pointer;
}

.suggestions li:hover {
  background: #f2f2f2;
}
/* Lock background when OTP sheet is open */
body.otp-open {
    overflow: hidden;
}

/* Disable background interactions */
body.otp-open .page-content,
body.otp-open .sidebar,
body.otp-open .main-content {
    pointer-events: none;
    filter: blur(2px);
    user-select: none;
}

/* Keep OTP sheet interactive */
body.otp-open .otp-sheet,
body.otp-open .otp-sheet * {
    pointer-events: auto;
    filter: none;
}

/* Disable hamburger / menu icon */
body.otp-open .menu-toggle {
    pointer-events: none;
    opacity: 0.4;
}
