* {
    max-width: 100%;
    box-sizing: border-box; /* Ensures padding and borders are accounted for */
}
.assistant-button {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #898989;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    cursor: pointer;
    text-align: center;
    z-index: 11111111111;
    padding-top: 13px;
}
.chat-icon {
    width: 40px; /* Adjust as needed */
    height: 40px; /* Adjust as needed */
}
.floating-container {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    margin: 20px;
    z-index: 111111111;
}

.floating-container:hover .assistant-button{
    transform: translatey(-5px);
    transition: all 0.3s;
}
.window-container {
    position: fixed;
    bottom: 40px;
    right: 0;
    width: 90vw; /* Adjusts to 90% of the viewport width */
    max-width: 350px; /* Keeps it within a maximum width */
    height: 70vh; /* Adjusts to 70% of the viewport height */
    max-height: 600px; /* Keeps it within a maximum height */
    margin: 50px 25px;
    border: transparent;
    border-radius: 10px;
}
.header-container{
    position:relative;
    background-color:#898989;
    width:100%;
    height:10%;
    top:0;
    padding-left: 10px; /* Adds space from the left edge */
    align-self:center;
    display: table;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
}
.typebox-container{
    position:relative;
    width:100%;
    height:10%;
    background-color:#898989;
    bottom:0;
    align-self:center;
    border-bottom-left-radius:10px;
    border-bottom-right-radius:10px;
    margin: 0px; /* Adjust this value as needed */
    padding: 10px; /* Adjust this value to add space inside */
}
.chat-container {
    display: block; /* Ensure it's a block-level container */
    position: relative;
    width: 100%;
    height: calc(100% - 60px); /* Adjust based on your layout */
    background-color: white;
    border: solid 10px #898989;
    box-sizing: border-box;
    padding: 10px;
    overflow-y: auto; /* Handles vertical scrolling */
    overflow-x: hidden; /* Prevents horizontal overflow */
    column-count: auto; /* Ensures no column layout is applied */
    column-width: auto; /* Ensures no column width is enforced */
}

.column{
    float:left;
    place-content:center;
    text-align:left;
    height:100%;
}
.column:nth-child(1){
    width:10%;
    place-self:center;
    margin:auto;
    text-align:center;
}
.column:nth-child(2){
    width:80%;
    place-self:center;
    margin:auto;
}
.column:nth-child(3){
    width:10%;
    place-self:center;
    margin:auto;
}
#chatbot-query-bar {
    font-size: 14px; /* Reduced font size */
    padding: 10px;
    resize:none;
}
#chatbot-query-bar::placeholder{
    place-self:center;
    margin:auto;
}
.DAHeader {
    text-align: center;
    color: black;
    font-family: "Roboto", sans-serif;
    font-size: 24px; /* Reduced size */
    font-weight: bold;
    margin-top: 10px; /* Reduced margin */
}
.typebox-column{
    height:100%;
    float: left;
    place-content:center;
}
.typebox-column:nth-child(1){
    width:90%;
    margin:auto;
    display:flex;
}
.typebox-column:nth-child(2){
    width:10%;
    margin:auto;
    text-align:left;
}
.exit-button{
    cursor:pointer;
    text-align:center;
    height:100%;
}
.send-button{
    cursor:pointer;
    text-align:center;
}
.exit-button:hover{
    scale:1.5;
    transition: all 0.3s;

}
.send-button:hover{
    scale:1.5;
    transition: all 0.3s;
    transform: translatex(4px);
}
.DAIcon{
    height:100%;
    width:100%;
    place-content:center;
    place-items:center;
    text-align:center;
}
#DRIcon{
    scale:1.7;
    text-align:right;
}
.chat-row{
    display:flex;
    position:relative;
    width:100%;
    min-height:50px;
    top:20px;
    margin-bottom:10px;
    align-items: stretch;
    justify-content: space-between;
}
.chat-box-dr{
    position:relative;
    background-color:#898989;
    height:100%;
    margin-left:40px;
    border-bottom-right-radius:10px;
    border-top-right-radius:10px;
    border-top-left-radius:10px;
    border: 10px solid #898989;
    box-sizing:border-box;
    opacity:0;
    transition: opacity 0.3s ease-in-out;
    max-width:70%;
    float:left;
    align-self:flex-start;
    margin-right:auto;
}
.chat-box-user{
    position:relative;
    background-color:#d3d3d3;
    height:100%;
    margin-right:40px;
    border-bottom-left-radius:10px;
    border-top-right-radius:10px;
    border-top-left-radius:10px;
    border: 10px solid #d3d3d3;
    box-sizing:border-box;
    opacity:0;
    transition: opacity 0.3s ease-in-out;
    max-width:70%;
    float:right;
    align-self: flex-start;
    margin-left: auto;
}
.chat-box-user.show{
    opacity: 1;
}
.chat-box-dr.show{
    opacity: 1;
}
.chat-box-item-text{
    float:right;
    width:100%;
    height:100%;
    display:block;
    font-family: "Roboto", sans-serif;
    font-size:14px;
    word-wrap: break-word; /* Allows long words or URLs to break and wrap */
    overflow-wrap: break-word; /* Ensures that long words or links break correctly */
    white-space: pre-wrap; /* Preserves whitespace but allows text to wrap */
    word-break: break-word; /* Allows long words or URLs to break and wrap */
    max-width: 100%; /* Ensures the text does not overflow its container */
}
#close-button{
    cursor:pointer;
    text-align:center;
    margin-top:16px;
}
.chat-box-typing{
    position: relative;
    background-color: #898989;
    height: 100%;
    margin-left: 40px;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    border: 10px solid #898989;
    box-sizing: border-box;
    max-width: 70%;
    float: left;
    align-self: flex-start;
    margin-right: auto;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.chat-box-typing.show {
    opacity: 1;
}

.typing-dots {
    display: inline-block;
    margin-top: 12px;
    width: 6px;
    height: 6px;
    background-color: black;
    border-radius: 50%;
    animation: bounce 1.2s infinite;
    letter-spacing: 2px;
}

.typing-dots:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
}
@media (max-width: 768px) {
    .window-container {
        width: 70vw; /* Makes the container more responsive on small screens */
        height: 70vh;
        max-width: none;
        max-height: none;
    }
}

@media (max-width: 480px) {
    .window-container {
        width: 90vw;
        height: 80vh;
        border-radius: 0; /* Remove border radius on very small screens */
    }

    .chat-container {
        padding: 10px;
    }
}



