﻿
.loading-animation {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.personality-badge {
    max-width: 150px;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#MessagesInChatdiv, #inputAreaWrapper {
    min-width: 300px;
    max-width: min(600px, 40dvw);
}

    #MessagesInChatdiv.toast {
        min-width: min(450px 40dvw);
    }

.toast-body {
    font-size: 1rem;
}

.toast {
    width: 60dvw;
    min-width: 170px;
    max-width: 75%;
}

.bg-navbar-primary {
    background-color: #e9ecef;
}

.nav-bar-row-clamp {
    /*Todo: Create variables for all the inputs, and standardize the 31px, its part of the top grid in the sidebar.*/
    max-height: calc(100dvh - 60px - 30dvh - 64px - 31px - 16px ); /*60px bottom 30dvh dropdown + button 64px logo at the top 31pxcreate chat 16px padding create+personality */
}

#inputArea {
    resize: none;
}

.sticky-top {
    position: sticky;
    top: 0; /* Adjust this value based on your navbar's height */
    z-index: 1020; /* Optional: Ensures it stays on top of other content */
}

.always-show-scrollbar {
    overflow-y: scroll;
}

/* Overlay Scrollbar Style for Webkit Browsers */
.overlay-scrollbar::-webkit-scrollbar {
    width: 6px; /* Width of the scrollbar */
}

.overlay-scrollbar::-webkit-scrollbar-track {
    background: transparent; /* Transparent track, so it overlays */
}

.overlay-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5); /* Color and opacity of the scrollbar handle */
    border-radius: 6px; /* Roundness of the scrollbar handle */
}

/* Overlay Scrollbar Style for Firefox */
.overlay-scrollbar {
    scrollbar-width: thin; /* 'auto' or 'thin' */
    scrollbar-color: rgba(0, 0, 0, 0.5) transparent; /* Scrollbar handle color and track color */
}
