﻿.chat-container {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 2000;
}

/* Floating button */
.chat-button {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* Chat window */
.chat-window {
    position: absolute;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: default;
    resize: none;
    transition: box-shadow 0.2s ease-in-out;
}

    .chat-window:active {
        box-shadow: 0 6px 25px rgba(0,0,0,0.4);
    }

/* Header */
.chat-header {
    background: var(--rz-primary);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    cursor: move;
}

/* Messages */
.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f7f7f7;
}

.msg {
    margin: 5px 0;
    padding: 8px 10px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

    .msg.user {
        background-color: var(--rz-primary);
        color: white;
        margin-left: auto;
    }

    .msg.bot {
        background-color: #e0e0e0;
        color: black;
        margin-right: auto;
    }

/* Input */
.chat-input {
    display: flex;
    align-items: center;
    padding: 8px;
    border-top: 1px solid #ddd;
    gap: 8px;
}

/* Resize handle */
.resize-handle {
    height: 10px;
    width: 100%;
    cursor: ns-resize;
    background: linear-gradient(to bottom, transparent, #ccc);
}

/* Responsive: mobile full screen */
@media (max-width: 768px) {
    .chat-window {
        left: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        border-radius: 0;
    }

    .chat-header {
        cursor: default;
    }

    .resize-handle {
        display: none;
    }
}
