﻿.chatbot-side-button {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: rgba(40, 58, 90, 0.9);
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    /* Vertical text */
    writing-mode: sideways-lr; /* rotates text vertically, right-to-left */
    text-orientation: mixed;
    border-radius: 8px 0 0 8px;
}

/* Sidebar chat window */
.chatbot-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* hidden off-screen */
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 15px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    z-index: 9998;
    display: flex;
    flex-direction: column;
}

    /* Active state (open) */
    .chatbot-sidebar.open {
        right: 0;
    }

/* Chat header */
.chatbot-header {
    background: rgba(40, 58, 90, 0.9);
    color: white;
    padding: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .chatbot-header button {
        background: transparent;
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
    }

/* Chat content (iframe or messages) */
.chatbot-content {
    flex: 1;
    border: none;
    width: 100%;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .chatbot-sidebar {
        display: none;
        right: 0;
        width: 100%;
    }

        .chatbot-sidebar.open {
            display: flex;
        }
}
