﻿/* ai-chat-console.css */

#chatBotContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1040;
}

#chatToggleBtn {
    width: 55px;
    height: 55px;
    font-size: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.file-annotation {
    border-left: 4px solid orange;
    font-size: 13px;
}

#chatConsole {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 50vh;
    min-height: 350px;
    min-width: 280px;
    overflow: hidden;

    flex-direction: column;
}

    #chatConsole .card-header {
        cursor: move;
        user-select: none;
        padding: 8px 12px;
        font-size: 16px;
        flex-shrink: 0;
    }

    #chatConsole .card-body {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        flex: 1;
        padding: 0;
    }

    #chatConsole .card-header .btn {
        padding: 2px 6px;
        font-size: 14px;
    }

    #chatConsole.maximized {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
    }


#chatHistory {
    overflow-y: auto;
    padding: 10px;
    flex: 1;
}

#chatInputArea {
    padding: 6px;
    border-top: 0px solid #ddd;
    display: flex;
    flex-shrink: 0;
}

    #chatInputArea .form-control {
        flex: 1;
        padding: 4px 8px;
        font-size: 14px;
    }

    #chatInputArea .btn {
        padding: 4px 9px;
        font-size: 14px;
    }

#chatResizeHandle {
    width: 10px;
    height: 10px;
    position: absolute;
    bottom: 5px;
    right: 5px;
    cursor: se-resize;
    background: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Ccircle cx='1' cy='7' r='1' fill='%23666'/%3E%3Ccircle cx='4' cy='7' r='1' fill='%23666'/%3E%3Ccircle cx='7' cy='7' r='1' fill='%23666'/%3E%3Ccircle cx='4' cy='4' r='1' fill='%23666'/%3E%3Ccircle cx='7' cy='4' r='1' fill='%23666'/%3E%3Ccircle cx='7' cy='1' r='1' fill='%23666'/%3E%3C/svg%3E");
}

@media (max-width: 576px) {
    #chatConsole {
        width: 90vw;
        height: 50vh;
        bottom: 5vh;
        right: 5vw;
    }

    #chatToggleBtn {
        bottom: 15px;
        right: 15px;
    }
}
