/* ===============================
   MINI CHATBOT STYLES
================================ */

/* Chatbot Toggle Button */
.chatbot-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00a698, #3ca6a6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 166, 152, 0.3);
    z-index: 9998;
    transition: all 0.3s ease;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 166, 152, 0.4);
}

.chatbot-toggle-btn .chatbot-icon {
    font-size: 24px;
    color: white;
}

.chatbot-pulse {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 166, 152, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Chatbot Modal */
.chatbot-modal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 500px;
    height: 580px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.chatbot-modal.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.chatbot-modal-header {
    background: linear-gradient(135deg, #00a698, #3ca6a6);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chatbot-avatar img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.chatbot-header-text h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-header-text p {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.chatbot-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chatbot-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Modal Body */
.chatbot-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Chat Container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f7f7f7;
    padding: 0;
    height: 100%;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Messages */
.message-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.message-row.sent {
    justify-content: flex-end;
}

.message {
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    word-wrap: break-word;
    max-width: 400px;
}

.message.sent {
    background: #00a698;
    color: #fff;
    border-radius: 18px 18px 4px 18px;
    padding: 12px 16px;
}

.message.received {
    background: white;
    border-radius: 18px 18px 18px 4px;
}

.message .time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 6px;
    text-align: right;
    display: block;
    color: inherit;
}

.message.sent .time {
    color: rgba(255, 255, 255, 0.8);
}

.message.received .time {
    color: #666;
}

/* Greeting message with image */
.message.sent .greeting-img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    margin-bottom: 5px;
    display: block;
}

/* Predefined Questions */
.predefined-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.message img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    margin-bottom: -10px;
}

.question-btn {
    background: #00a698;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: all 0.2s ease;
    font-weight: 500;
    line-height: 1.4;
    white-space: break-spaces;
}

.question-btn:hover {
    background: #008c84;
    transform: translateY(-1px);
}

/* Chat Footer */
.chat-footer {
    background: #fff!important;
    padding: 16px 20px;
    border-top: 1px solid #e9ecef;
    box-shadow: 0px 2.81px 9.62px 0px #00000021;
    border-radius: 64px;
}

.msg-wrap span.time {
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    vertical-align: middle;
    text-transform: capitalize;
    color: #666666;
}
.input-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f7f7;
    border-radius: 30px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
}

.input-box input {
    flex: 1;
    border: none!important;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
    padding: 8px 0;
}

.input-box input::placeholder {
    color: #999;
}

.input-box button {
    background: #00a698;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.input-box button:hover {
    background: #008c84;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #bbb;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}
.chatbot-header-content  .chatbot-header-text h3 {
    font-size: 20px;
    line-height: 28px;
}

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

/* Overlay */
.chatbot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    display: none;
}

.chatbot-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 767px) {
        .message {
    max-width: 97%;
    font-size: 13px;
    padding: 12px 14px;
    margin: 0 0 0 auto;
}
        .message.sent {
        word-break: break-all;
}
.chatbot-modal-header {
    padding: 10px;
}
    .chatbot-modal {
        width: calc(100vw - 40px);
        height: 85vh;
        bottom: 20px;
        right: 20px;
        left: 20px;
        margin: 0 auto;
    }

    .chatbot-toggle-btn {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .chat-body {
        padding: 15px;
    }

    .question-btn {
        font-size: 13px;
        padding: 8px 14px;
    }
}

/* Scrollbar Styling */
.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

