﻿.chat-widget-button {
    position: fixed;
    bottom: 90px;
    right: 25px; /* ✅ keep it on the right */
    z-index: 9999;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    background-color: #1976d2;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .chat-widget-button:hover {
        transform: scale(1.05);
    }

/* Chat window */
.chat-widget-window {
    position: fixed;
    bottom: 30px; /* slightly above chat button */
    right: 25px;
    width: 360px; /* standard width for chat */
    height: 480px; /* standard height for chat window */
    z-index: 9998;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .chat-widget-window.hide {
        bottom: 120px; /* closer to button */
        opacity: 0;
        pointer-events: none;
    }

    .chat-widget-window.show {
        bottom: 200px; /* normal open position */
        opacity: 1;
        pointer-events: auto;
    }



.chat-header {
    background-color: #1976d2;
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .chat-header .close-btn {
        color: white;
        background: none;
        border: none;
        font-size: 22px;
        cursor: pointer;
    }

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #fafafa;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

.chat-bubble {
    border-radius: 12px;
    margin: 5px 0;
    word-wrap: break-word;
    font-size: 0.95rem;
}

.user-bubble {
    color: black;
}

.assistant-bubble {
    color: black;
}
