﻿html, body {
    margin: 0;
    padding: 0;
    background: transparent;
/*    overflow: hidden; */
    background-color: var(--bs-body-bg);
}

.header {
    background-color: transparent;
    color: var(--bs-body-color);
    border-bottom: 1px solid var(--bs-border-color);
}

.floating-chat-button {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    /* transition: color 0.3s ease; */
}

.floating-chat-button:hover i {
    /* color: var(--bs-primary); */
    /* color: #D65933; */
}

.chat-content {
    /* background: #73727e; */
    background-color: var(--bs-body-bg);
}

.chat-input-container {
    background-color: var(--chat-input-bg);
    color: var(--chat-text);
}

.chat-bubble {
    background-color: var(--chat-input-bg);
}

.chat-title {
    height: 45px;
}


.chat-body {
    /* background: #73727e; */
    display: flex;
    flex-direction: column;
    height: 100%;
    /*overflow: hidden;*/ /* prevent outer scroll */
}

/* Chat content collapsed on load */
.chat-content {
    /*max-height: 300px;*/ /* starting height */
    /*overflow-y: auto;*/
    scroll-behavior: smooth;
    /* transition: all 0.6s ease-in-out; */
}

/* When active (after first reply) — allow it to flex-grow */
.chat-content.expanded {
    flex-grow: 1;
    max-height: 80%; /* fill remaining space */
}

/* Input bar base state */
.chat-input-container {
    border-top: 1px solid var(--bs-border-color);
    position: relative;
    /* transition: all 0.6s ease-in-out; */
    transform: translateY(0);
    opacity: 1;
}


/* Before first reply — slightly above bottom */
.chat-input-container.pre-anchor {
    transform: translateY(0px);
    opacity: 0.8;
}

/* When anchored */
.chat-input-container.anchor-bottom {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(0);
    opacity: 1;
    z-index: 5;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

/* Transition effect when moving from inline to bottom */
.chat-input-container.moving {
    transform: translateY(10px);
    opacity: 0.6;
}

.floating-chat-button {
    width: 30px;
    height: 30px;
}

.floating-chat-button:hover, .chat-btn-ass:hover, .chat-btn:hover {
    box-shadow: 0 0 3pt 1pt #007bffeb; /*#D65933; */
}

.button-box {
    padding-bottom: 5px;
    padding-left: 15px;
}

#scrollToBottomBtn {
    bottom: 100px !important;
    position: fixed;
}


@@media (max-width: 500px) {
    #sharePreview > .d-flex > div {
        width: 180px !important;
        height: 140px !important;
    }
}

.chat-history {
    font-size: smaller;
    border-top: 1px solid var(--bs-border-color);
}

.chat-history-bottom {
    font-size: smaller;
    border-bottom: 1px solid var(--bs-border-color);
}
