/* CHAT WRAPPER */
.chat-container {
    width: 100%;
    height: 100%;
    padding: 15px;
    box-sizing: border-box;
}

/* TOP ACTIONS BAR */
.top-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

.top-actions button {
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    cursor: pointer;
}

#clearChat { background: #ff4d4d; color: #fff; }
#exportChat { background: #6c757d; color: #fff; }
#mailBtn { background: #f0ad4e; color: #fff; }

/* CHAT BOX */
.chat-box-inner {
    height: 320px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 15px;
    padding: 12px 14px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

/* USER MESSAGE */
.user-msg {
    text-align: right;
    margin: 10px 0;
}

.user-msg span {
    background: #f9f9f9;
    color: #000;
    padding: 10px 15px;
    border-radius: 18px;
    display: inline-block;
    /* max-width: 75%; */
    line-height: 1.4;
    font-size:12px;
}

/* BOT MESSAGE */
.bot-msg {
    text-align: left;
    margin: 10px 0;
}

.bot-msg span {
    background: #fff;
    font-size:12px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 18px;
    display: inline-block;
    /* max-width: 75%; */
    line-height: 1.4;
}

/* INPUT AREA */
.input-area {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.input-area input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 10px 15px;
}

.input-area button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.send-btn { background: linear-gradient(to bottom, #add8e6, #4aa5ddff); color: #fff; }
.voice-btn { background: #28a745; color: #fff; }


/* Floating Chat Icon Button */
.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 15px;
    width: 60px;
    height: 60px;
    /* background: linear-gradient(to bottom, #add8e6, #87cefa); 
    border-radius: 50%; 
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);*/
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.chat-icon img {
    width: 45px;
    height: 45px;
    background: transparent;
    display: block;
}

.chat-icon:hover {
    transform: scale(1.12);
}

/* Chat Popup Box */
.chat-box-popup {
    position: fixed;
    bottom: 85px;
    right: 22px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.25);
    overflow: hidden;
    display: none;
    animation: slideUp 0.4s ease;
    z-index: 99999;
}

/* Animation */
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

/* Header */
.chat-header {
    background: linear-gradient(90deg, #2DB3A3 74.31%, rgba(34, 171, 170, 0.59) 99.95%, rgba(34, 171, 170, 0.00) 100%, rgba(34, 171, 170, 0.59) 100%);
    padding: 8px 18px;
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header button {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
}

/* Iframe */
.chat-box-popup iframe {
    width: 100%;
    height: calc(100% - 55px);
    border: none;
}