.chat-container {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 400px;
    height: 520px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    overflow: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    z-index: 9999;
    flex-direction: column;
}

/* header */
.chat-header {
    background: #001DD4;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
}

/* messages section */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #fafafa;
}

#message-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#message-list li {
    margin: 6px 0;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 75%;
    clear: both;
    word-wrap: break-word;
    font-size: 17px;
    line-height: 1.5;
    color:#fff;
}

/* ✅ user ka msg right (green bubble) */
.user-message {
    background: #001DD4;
    float: right;
    text-align: right;
    border-bottom-right-radius: 0;
}

/* ✅ bot ka msg left (grey bubble) */
.bot-message {
    background:#001DD4;
    float: left;
    text-align: left;
    border-bottom-left-radius: 0;
}

/* ✅ HTML reply ke liye better design */
.bot-message p {
    margin: 6px 0;
    font-size: 15px;
    color: #fff;
}
.bot-message ul {
    margin: 8px 0 8px 20px;
    padding-left: 18px;
    list-style-type: disc;
}
.bot-message li {
    margin: 5px 0;
    font-size: 15px;
    color: #444;
}
.bot-message strong {
    font-weight: 600;
    color: #fff;
}

/* ✅ extra readability for HTML reply */
.bot-message .html-reply {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 12px;
}

/* input area */
.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 8px;
    background: #fff;
}

#message-input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    border-radius: 20px;
    background: #f5f5f5;
    margin-right: 8px;
    outline: none;
    font-size: 14px;
    color: black!important;
}

#send-button {
    border: none;
    background: #001DD4!important;
    color: white;
    padding: 0 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

#send-button:hover {
    background: #001DD4!important;
}

/* ✅ NEW floating icon */
#chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 78px;
    height: 77px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    /*background: linear-gradient(135deg, rgb(0, 115, 230), rgb(0, 91, 181));*/
    background-color:#fff;
    transition: transform 0.2s ease;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-icon img {
    width: 117%;
    object-fit: cover;
}

#chat-icon:hover {
    transform: scale(1.1);
}

/* ✅ pulse animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,115,230,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(0,115,230,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,115,230,0); }
}
/* Bot ke HTML message ke andar headings chhoti dikhengi */
.bot-message h1,
.bot-message h2,
.bot-message h3,
.bot-message h4,
.bot-message h5,
.bot-message h6 {
    font-size: 16px !important;
    margin: 4px 0;
    font-weight: 600;
}





