@import '_content/Blazor.Bootstrap/Blazor.Bootstrap.7t9tbfaemk.bundle.scp.css';

/* /Components/PromptTemplateModal.razor.rz.scp.css */
/* Custom Modal Styles - Full Control */

/* Backdrop */
.custom-modal-backdrop[b-r98u2rpqea] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    animation: fadeIn-b-r98u2rpqea 0.15s ease-in;
}

/* Modal Container */
.custom-modal[b-r98u2rpqea] {
    position: fixed;
    top: 80px; /* 60px header + 20px spacing */
    bottom: 80px; /* 60px message bar + 20px spacing */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 800px;
    display: flex;
    align-items: stretch;
    pointer-events: none;
    animation: slideDown-b-r98u2rpqea 0.2s ease-out;
}

/* Modal Dialog - Light Mode (Default) - Force light theme */
.custom-modal-dialog[b-r98u2rpqea] {
    background: #ffffff !important;
    color: #212529 !important;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    max-height: 100%;
}

/* Modal Header - Light Mode (Default) */
.custom-modal-header[b-r98u2rpqea] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6 !important;
    background-color: #ffffff !important;
    flex-shrink: 0;
}

.custom-modal-title[b-r98u2rpqea] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    color: #212529 !important;
}

/* Modal Body - Light Mode (Default) */
.custom-modal-body[b-r98u2rpqea] {
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Light mode styles for form elements */
.custom-modal-body .form-control[b-r98u2rpqea],
.custom-modal-body .form-select[b-r98u2rpqea] {
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
}

.custom-modal-body .form-control:focus[b-r98u2rpqea],
.custom-modal-body .form-select:focus[b-r98u2rpqea] {
    background-color: #ffffff !important;
    border-color: #86b7fe !important;
    color: #212529 !important;
}

.custom-modal-body .form-label[b-r98u2rpqea] {
    color: #212529 !important;
}

/* Light mode for cards/template items */
.custom-modal-body .card[b-r98u2rpqea] {
    background-color: #ffffff !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
}

.custom-modal-body .alert-info[b-r98u2rpqea] {
    background-color: #cff4fc !important;
    border-color: #9eeaf9 !important;
    color: #055160 !important;
}

.custom-modal-body h6[b-r98u2rpqea] {
    color: #212529 !important;
}

.custom-modal-body .text-muted[b-r98u2rpqea] {
    color: #6c757d !important;
}

/* Modal Footer - Light Mode (Default) */
.custom-modal-footer[b-r98u2rpqea] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6 !important;
    background-color: #ffffff !important;
    flex-shrink: 0;
}

/* Animations */
@keyframes fadeIn-b-r98u2rpqea {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown-b-r98u2rpqea {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Template Item Styles */
.template-item[b-r98u2rpqea] {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--bs-border-color, #dee2e6);
}

.template-item:hover[b-r98u2rpqea] {
    background-color: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.1);
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.template-category h6[b-r98u2rpqea] {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.preview-text[b-r98u2rpqea] {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Dark mode support - Only use app's theme setting, not system preference */
/* Bootstrap [data-bs-theme="dark"] support - Override light mode !important */
[data-bs-theme="dark"] .custom-modal-dialog[b-r98u2rpqea] {
    background: #212529 !important;
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .custom-modal-header[b-r98u2rpqea] {
    background-color: #212529 !important;
    border-color: #495057 !important;
}

[data-bs-theme="dark"] .custom-modal-title[b-r98u2rpqea] {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .custom-modal-body[b-r98u2rpqea] {
    background-color: #212529 !important;
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .custom-modal-body h6[b-r98u2rpqea] {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .custom-modal-body .text-muted[b-r98u2rpqea] {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .custom-modal-footer[b-r98u2rpqea] {
    background-color: #212529 !important;
    border-color: #495057 !important;
}

[data-bs-theme="dark"] .custom-modal-body .form-control[b-r98u2rpqea],
[data-bs-theme="dark"] .custom-modal-body .form-select[b-r98u2rpqea] {
    background-color: #343a40 !important;
    border-color: #495057 !important;
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .custom-modal-body .form-control:focus[b-r98u2rpqea],
[data-bs-theme="dark"] .custom-modal-body .form-select:focus[b-r98u2rpqea] {
    background-color: #343a40 !important;
    border-color: #86b7fe !important;
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .custom-modal-body .form-label[b-r98u2rpqea] {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .custom-modal-body .card[b-r98u2rpqea] {
    background-color: #343a40 !important;
    border-color: #495057 !important;
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .custom-modal-body .alert-info[b-r98u2rpqea] {
    background-color: #0c5460 !important;
    border-color: #0c5460 !important;
    color: #d1ecf1 !important;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .custom-modal[b-r98u2rpqea] {
        width: 95%;
        top: 70px;
        bottom: 70px;
    }

    .custom-modal-header[b-r98u2rpqea],
    .custom-modal-body[b-r98u2rpqea],
    .custom-modal-footer[b-r98u2rpqea] {
        padding: 1rem;
    }
}

/* For vertically constrained spaces */
@media (max-height: 600px) {
    .custom-modal[b-r98u2rpqea] {
        top: 75px; /* 60px header + 15px spacing */
        bottom: 75px; /* 60px message bar + 15px spacing */
    }

    .custom-modal-header[b-r98u2rpqea],
    .custom-modal-footer[b-r98u2rpqea] {
        padding: 0.75rem 1rem;
    }

    .custom-modal-body[b-r98u2rpqea] {
        padding: 1rem;
    }
}

/* For extremely constrained vertical spaces */
@media (max-height: 450px) {
    .custom-modal[b-r98u2rpqea] {
        top: 70px; /* 60px header + 10px spacing */
        bottom: 70px; /* 60px message bar + 10px spacing */
    }

    .custom-modal-header[b-r98u2rpqea],
    .custom-modal-footer[b-r98u2rpqea] {
        padding: 0.5rem 1rem;
    }

    .custom-modal-body[b-r98u2rpqea] {
        padding: 0.75rem;
    }
}

/* Make footer buttons stack on very small screens */
@media (max-width: 576px) {
    .custom-modal-footer[b-r98u2rpqea] {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-modal-footer .btn[b-r98u2rpqea] {
        width: 100%;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-gs2ft26nmy] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-gs2ft26nmy] {
    flex: 1;
}

.mr-container[b-gs2ft26nmy] {
    background-image: url("https://marvel-b1-cdn.bc0a.com/f00000000164740/www.motleyrice.com/sites/default/files/managed/homepage-mmas/2022-12/composite-2022%20header.png");
}

.sidebar[b-gs2ft26nmy] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-gs2ft26nmy] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-gs2ft26nmy]  a, .top-row[b-gs2ft26nmy]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-gs2ft26nmy]  a:hover, .top-row[b-gs2ft26nmy]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-gs2ft26nmy]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-gs2ft26nmy] {
        justify-content: space-between;
    }

    .top-row[b-gs2ft26nmy]  a, .top-row[b-gs2ft26nmy]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-gs2ft26nmy] {
        flex-direction: row;
    }

    .sidebar[b-gs2ft26nmy] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-gs2ft26nmy] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-gs2ft26nmy]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-gs2ft26nmy], article[b-gs2ft26nmy] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-gs2ft26nmy] {
    background: lightblue;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-gs2ft26nmy] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Pages/ChatSearch.razor.rz.scp.css */
.search-title[b-yosyntbp81] {
    padding-top: 5px;
}

.table-hover-row:hover[b-yosyntbp81] {
    background-color: rgba(0, 0, 0, 0.075);
}

.table-hover-row[b-yosyntbp81] {
    transition: background-color 0.15s ease-in-out;
}

.section-header[b-yosyntbp81] {
    color: #ffffff;
    font-weight: 600;
    background-color: #0066cc;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .section-header[b-yosyntbp81] {
        color: #000000;
        background-color: #4da6ff;
    }
}

/* Mobile Responsiveness */
@media (max-width: 641px) {

    .search-title[b-yosyntbp81] {
        justify-self: center;
        position: center;
    }
}
/* /Pages/ChatWindow.razor.rz.scp.css */
html[b-nomo51rsl1], body[b-nomo51rsl1] {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent page-level scrolling */
}

/* Fixed Header */
.chat-header[b-nomo51rsl1] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bs-body-bg, #fff);
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.chat-title[b-nomo51rsl1] {
    padding-top: 5px;
}

/* Chat Container Wrapper - fills space between header and footer */
.chat-container-wrapper[b-nomo51rsl1] {
    position: fixed;
    top: 60px; /* Below header */
    bottom: 60px; /* Above footer */
    left: 0;
    right: 0;
    overflow: hidden; /* No scrolling at this level */
}

/* Chat Container - only this should scroll */
.chat-container[b-nomo51rsl1] {
    height: 100%;
    width: 100%;
    overflow-y: auto; /* Only vertical scrolling here */
    overflow-x: hidden; /* No horizontal scrolling */
    display: flex;
    flex-direction: column;
    padding: 15px 15px 15px 15px;
    box-sizing: border-box;
}

    .chat-container:focus[b-nomo51rsl1] {
        outline: none;
    }

/* Messages */
.message-left[b-nomo51rsl1], .message-right[b-nomo51rsl1] {
    max-width: 75%;
    margin-bottom: 3px;
    padding: 8px 12px;
    border-radius: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    flex-shrink: 0; /* Prevent messages from shrinking */
}

.message-left[b-nomo51rsl1] {
    background-color: grey;
    color: white;
    align-self: flex-start;
    margin-right: auto;
    /* iMessage-style animation for received messages */
    animation: slideInLeft-b-nomo51rsl1 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.message-right[b-nomo51rsl1] {
    background-color: cornflowerblue;
    color: white;
    align-self: flex-end;
    margin-left: auto;
    /* iMessage-style animation for sent messages */
    animation: slideInRight-b-nomo51rsl1 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* iMessage-style animations */
@keyframes slideInLeft-b-nomo51rsl1 {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.85);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInRight-b-nomo51rsl1 {
    0% {
        opacity: 0;
        transform: translateX(20px) scale(0.85);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Timestamps */
.message-timestamp-right[b-nomo51rsl1], .message-timestamp-left[b-nomo51rsl1] {
    font-size: 0.8em;
    padding-bottom: 8px;
    color: dimgray;
    flex-shrink: 0; /* Prevent timestamps from shrinking */
}

.message-timestamp-right[b-nomo51rsl1] {
    text-align: right;
    margin-left: auto;
}

.message-timestamp-left[b-nomo51rsl1] {
    text-align: left;
    margin-right: auto;
}

.message-content[b-nomo51rsl1] {
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Fixed Footer */
.search-bar-container[b-nomo51rsl1] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    box-sizing: border-box;
    z-index: 1000;
    height: 60px;
    background-color: var(--bs-body-bg, #fff);
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

/* Mobile Responsiveness */
@media (max-width: 641px) {
    .chat-container[b-nomo51rsl1] {
        padding: 10px;
    }

    .message-left[b-nomo51rsl1], .message-right[b-nomo51rsl1] {
        max-width: 85%;
    }

    .chat-title[b-nomo51rsl1] {
        justify-self: center;
        position: center;
    }

    [b-nomo51rsl1]::-webkit-scrollbar {
        width: 4px; /* Thinner scrollbar on mobile */
    }

    html[b-nomo51rsl1], body[b-nomo51rsl1] {
        overflow: hidden;
    }
}

/* Custom Scrollbar for Chat Container */
.chat-container[b-nomo51rsl1]::-webkit-scrollbar {
    width: 8px;
}

.chat-container[b-nomo51rsl1]::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    min-height: 20px;
}

.chat-container[b-nomo51rsl1]::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
}

.chat-container[b-nomo51rsl1]::-webkit-scrollbar-corner {
    background-color: transparent;
}

/* Firefox scrollbar */
.chat-container[b-nomo51rsl1] {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
}

/* Message highlight animation for search navigation */
@keyframes highlightFade-b-nomo51rsl1 {
    0%, 100% { 
        background-color: inherit;
        box-shadow: none;
    }
    50% { 
        background-color: #ffc107 !important;
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.8);
        transform: scale(1.02);
    }
}
/* /Pages/ChatWindowEmbed.razor.rz.scp.css */
html[b-yd856f8hoo], body[b-yd856f8hoo] {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent page-level scrolling */
}

/* Fixed Header */
.chat-header[b-yd856f8hoo] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bs-body-bg, #fff);
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.chat-title[b-yd856f8hoo] {
    padding-top: 5px;
}

/* Chat Container Wrapper - fills space between header and footer */
.chat-container-wrapper[b-yd856f8hoo] {
    position: fixed;
    top: 60px; /* Below header */
    bottom: 60px; /* Above footer */
    left: 0;
    right: 0;
    overflow: hidden; /* No scrolling at this level */
}

/* Chat Container - only this should scroll */
.chat-container[b-yd856f8hoo] {
    height: 100%;
    width: 100%;
    overflow-y: auto; /* Only vertical scrolling here */
    overflow-x: hidden; /* No horizontal scrolling */
    display: flex;
    flex-direction: column;
    padding: 15px 15px 15px 15px;
    box-sizing: border-box;
}

    .chat-container:focus[b-yd856f8hoo] {
        outline: none;
    }

/* Messages */
.message-left[b-yd856f8hoo], .message-right[b-yd856f8hoo] {
    max-width: 75%;
    margin-bottom: 3px;
    padding: 8px 12px;
    border-radius: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    flex-shrink: 0; /* Prevent messages from shrinking */
}

.message-left[b-yd856f8hoo] {
    background-color: grey;
    color: white;
    align-self: flex-start;
    margin-right: auto;
    /* iMessage-style animation for received messages */
    animation: slideInLeft-b-yd856f8hoo 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.message-right[b-yd856f8hoo] {
    background-color: cornflowerblue;
    color: white;
    align-self: flex-end;
    margin-left: auto;
    /* iMessage-style animation for sent messages */
    animation: slideInRight-b-yd856f8hoo 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* iMessage-style animations */
@keyframes slideInLeft-b-yd856f8hoo {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.85);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInRight-b-yd856f8hoo {
    0% {
        opacity: 0;
        transform: translateX(20px) scale(0.85);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Timestamps */
.message-timestamp-right[b-yd856f8hoo], .message-timestamp-left[b-yd856f8hoo] {
    font-size: 0.8em;
    padding-bottom: 8px;
    color: dimgray;
    flex-shrink: 0; /* Prevent timestamps from shrinking */
}

.message-timestamp-right[b-yd856f8hoo] {
    text-align: right;
    margin-left: auto;
}

.message-timestamp-left[b-yd856f8hoo] {
    text-align: left;
    margin-right: auto;
}

.message-content[b-yd856f8hoo] {
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Fixed Footer */
.search-bar-container[b-yd856f8hoo] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    box-sizing: border-box;
    z-index: 1000;
    height: 60px;
    background-color: var(--bs-body-bg, #fff);
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

/* Mobile Responsiveness */
@media (max-width: 641px) {
    .chat-container[b-yd856f8hoo] {
        padding: 10px;
    }

    .message-left[b-yd856f8hoo], .message-right[b-yd856f8hoo] {
        max-width: 85%;
    }

    .chat-title[b-yd856f8hoo] {
        justify-self: center;
        position: center;
    }

    [b-yd856f8hoo]::-webkit-scrollbar {
        width: 4px; /* Thinner scrollbar on mobile */
    }

    html[b-yd856f8hoo], body[b-yd856f8hoo] {
        overflow: hidden;
    }
}

/* Custom Scrollbar for Chat Container */
.chat-container[b-yd856f8hoo]::-webkit-scrollbar {
    width: 8px;
}

.chat-container[b-yd856f8hoo]::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    min-height: 20px;
}

.chat-container[b-yd856f8hoo]::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
}

.chat-container[b-yd856f8hoo]::-webkit-scrollbar-corner {
    background-color: transparent;
}

/* Firefox scrollbar */
.chat-container[b-yd856f8hoo] {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
}

/* Message highlight animation for search navigation */
@keyframes highlightFade-b-yd856f8hoo {
    0%, 100% { 
        background-color: inherit;
        box-shadow: none;
    }
    50% { 
        background-color: #ffc107 !important;
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.8);
        transform: scale(1.02);
    }
}
/* /Pages/ChatWindowGroup.razor.rz.scp.css */
html[b-os5yqvfwh2], body[b-os5yqvfwh2] {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent page-level scrolling */
}

/* Fixed Header */
.chat-header[b-os5yqvfwh2] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bs-body-bg, #fff);
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.chat-title[b-os5yqvfwh2] {
    padding-top: 5px;
}

/* Chat Container Wrapper - fills space between header and footer */
.chat-container-wrapper[b-os5yqvfwh2] {
    position: fixed;
    top: 60px; /* Below header */
    bottom: 60px; /* Above footer */
    left: 0;
    right: 0;
    overflow: hidden; /* No scrolling at this level */
}

/* Chat Container - only this should scroll */
.chat-container[b-os5yqvfwh2] {
    height: 100%;
    width: 100%;
    overflow-y: auto; /* Only vertical scrolling here */
    overflow-x: hidden; /* No horizontal scrolling */
    display: flex;
    flex-direction: column;
    padding: 15px 15px 15px 15px;
    box-sizing: border-box;
}

    .chat-container:focus[b-os5yqvfwh2] {
        outline: none;
    }

/* Sender Name - appears above messages */
.sender-name[b-os5yqvfwh2] {
    font-weight: bold;
    font-size: 0.9em;
    color: #f0f0f0; /* Light color for visibility on message backgrounds */
    margin-bottom: 4px;
}

/* Sender name alignment for message-right (right-aligned messages) */
.message-right .sender-name[b-os5yqvfwh2] {
    text-align: right;
}

/* Sender name alignment for message-left (left-aligned messages) */
.message-left .sender-name[b-os5yqvfwh2] {
    text-align: left;
}

/* Messages */
.message-left[b-os5yqvfwh2], .message-right[b-os5yqvfwh2] {
    max-width: 75%;
    margin-bottom: 3px;
    padding: 8px 12px;
    border-radius: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    flex-shrink: 0; /* Prevent messages from shrinking */
}

.message-left[b-os5yqvfwh2] {
    background-color: grey;
    color: white;
    align-self: flex-start;
    /* iMessage-style animation for received messages */
    animation: slideInLeft-b-os5yqvfwh2 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.message-right[b-os5yqvfwh2] {
    background-color: cornflowerblue;
    color: white;
    align-self: flex-end;
    /* iMessage-style animation for sent messages */
    animation: slideInRight-b-os5yqvfwh2 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* iMessage-style animations */
@keyframes slideInLeft-b-os5yqvfwh2 {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.85);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInRight-b-os5yqvfwh2 {
    0% {
        opacity: 0;
        transform: translateX(20px) scale(0.85);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Timestamps */
.message-timestamp-right[b-os5yqvfwh2], .message-timestamp-left[b-os5yqvfwh2] {
    font-size: 0.8em;
    padding-bottom: 8px;
    color: dimgray;
    flex-shrink: 0; /* Prevent timestamps from shrinking */
}

.message-timestamp-right[b-os5yqvfwh2] {
    text-align: right;
}

.message-timestamp-left[b-os5yqvfwh2] {
    text-align: left;
}

.message-content[b-os5yqvfwh2] {
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Fixed Footer */
.search-bar-container[b-os5yqvfwh2] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    box-sizing: border-box;
    z-index: 1000;
    height: 60px;
    background-color: var(--bs-body-bg, #fff);
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

/* Mobile Responsiveness */
@media (max-width: 641px) {
    .chat-container[b-os5yqvfwh2] {
        padding: 10px;
    }

    .message-left[b-os5yqvfwh2], .message-right[b-os5yqvfwh2] {
        max-width: 85%;
    }

    .chat-title[b-os5yqvfwh2] {
        justify-self: center;
        position: center;
    }

    [b-os5yqvfwh2]::-webkit-scrollbar {
        width: 4px; /* Thinner scrollbar on mobile */
    }

    html[b-os5yqvfwh2], body[b-os5yqvfwh2] {
        overflow: hidden;
    }
}

/* Custom Scrollbar for Chat Container */
.chat-container[b-os5yqvfwh2]::-webkit-scrollbar {
    width: 8px;
}

.chat-container[b-os5yqvfwh2]::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    min-height: 20px;
}

.chat-container[b-os5yqvfwh2]::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
}

.chat-container[b-os5yqvfwh2]::-webkit-scrollbar-corner {
    background-color: transparent;
}

/* Firefox scrollbar */
.chat-container[b-os5yqvfwh2] {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
}

/* Message highlight animation for search navigation */
@keyframes highlightFade-b-os5yqvfwh2 {
    0%, 100% { 
        background-color: inherit;
        box-shadow: none;
    }
    50% { 
        background-color: #ffc107 !important;
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.8);
        transform: scale(1.02);
    }
}
/* /Pages/Contacts.razor.rz.scp.css */
.contact-title[b-exyaumqoex] {
    padding-top: 5px;
}


.new-chat-btn[b-exyaumqoex] {
    position: fixed;
    bottom: 0;
    right:0;
    margin: 10px;
    border-radius: 40px;
}

.device-id[b-exyaumqoex] {
    position: fixed;
    bottom: 0;
    left: 0;
    margin: 10px;
}

.theme-switcher-custom[b-exyaumqoex] {
    justify-content: start;
    float: inline-start;
    flex: 0 0 auto;
    width: 8.33333333%;
}

.contact-row[b-exyaumqoex] {
    display: flex;
    align-items: flex-start;
    max-width: 100%;
    cursor: pointer;
    /* Staggered slide-in animation */
    animation: slideInFromLeft-b-exyaumqoex 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

/* Use CSS counters and scoped styles to target rows within this component */
.contact-row:nth-of-type(1)[b-exyaumqoex] { animation-delay: 0.05s; }
.contact-row:nth-of-type(2)[b-exyaumqoex] { animation-delay: 0.1s; }
.contact-row:nth-of-type(3)[b-exyaumqoex] { animation-delay: 0.15s; }
.contact-row:nth-of-type(4)[b-exyaumqoex] { animation-delay: 0.2s; }
.contact-row:nth-of-type(5)[b-exyaumqoex] { animation-delay: 0.25s; }
.contact-row:nth-of-type(6)[b-exyaumqoex] { animation-delay: 0.3s; }
.contact-row:nth-of-type(7)[b-exyaumqoex] { animation-delay: 0.35s; }
.contact-row:nth-of-type(8)[b-exyaumqoex] { animation-delay: 0.4s; }
.contact-row:nth-of-type(9)[b-exyaumqoex] { animation-delay: 0.45s; }
.contact-row:nth-of-type(10)[b-exyaumqoex] { animation-delay: 0.5s; }
.contact-row:nth-of-type(11)[b-exyaumqoex] { animation-delay: 0.55s; }
.contact-row:nth-of-type(12)[b-exyaumqoex] { animation-delay: 0.6s; }
.contact-row:nth-of-type(13)[b-exyaumqoex] { animation-delay: 0.65s; }
.contact-row:nth-of-type(14)[b-exyaumqoex] { animation-delay: 0.7s; }
.contact-row:nth-of-type(15)[b-exyaumqoex] { animation-delay: 0.75s; }
.contact-row:nth-of-type(16)[b-exyaumqoex] { animation-delay: 0.8s; }
.contact-row:nth-of-type(17)[b-exyaumqoex] { animation-delay: 0.85s; }
.contact-row:nth-of-type(18)[b-exyaumqoex] { animation-delay: 0.9s; }
.contact-row:nth-of-type(19)[b-exyaumqoex] { animation-delay: 0.95s; }
.contact-row:nth-of-type(20)[b-exyaumqoex] { animation-delay: 1s; }

/* Slide in from left animation */
@keyframes slideInFromLeft-b-exyaumqoex {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-name[b-exyaumqoex] {
    font-weight: bold;
    font-size: 13px;
}

.d-inline-block[b-exyaumqoex] {
   padding: 2px 0; /* Adjust padding to reduce row height */
}

.initials-button[b-exyaumqoex] {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #005688; /* Default button color */
    color: white;
    font-weight: bold;
    margin-right: 10px;
    cursor: pointer;
    border: none; /* Remove default button border */
    outline: none; /* Remove default focus outline */
    transition: background-color 0.2s ease-in-out; /* Smooth hover transition */
}

    .initials-button:hover[b-exyaumqoex] {
        background-color: #0056b3; /* Darker hover color */
    }

    .initials-button:active[b-exyaumqoex] {
        background-color: #004085; /* Even darker active color for click feedback */
    }

.unread-badge[b-exyaumqoex] {
    display: flex;
    justify-content: center;
    align-items: center;
    right: 0;
    border-style: none;
    border-radius: 50%;
    background-color: #3697f5; /* Default button color */
    color: white;
    padding-left: 0.4em;
    padding-right: 0.4em;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out; /* Smooth hover transition */
}

/* Mobile Responsiveness */
@media (max-width: 641px) {
    .theme-switcher-custom[b-exyaumqoex] {
        justify-content: start;
        float: inline-start;
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .contact-title[b-exyaumqoex] {
        justify-self: center;
        position: center;
    }

    .contact-row[b-exyaumqoex] {
        padding: 2px 1px;
    }
}
/* /Pages/ContactsForCase.razor.rz.scp.css */
.contact-title[b-44u3nct9le] {
    padding-top: 5px;
}


.new-chat-btn[b-44u3nct9le] {
    position: fixed;
    bottom: 0;
    right:0;
    margin: 10px;
    border-radius: 40px;
}

.device-id[b-44u3nct9le] {
    position: fixed;
    bottom: 0;
    left: 0;
    margin: 10px;
}

.theme-switcher-custom[b-44u3nct9le] {
    justify-content: start;
    float: inline-start;
    flex: 0 0 auto;
    width: 8.33333333%;
}

.contact-row[b-44u3nct9le] {
    display: flex;
    align-items: flex-start;
    max-width: 100%;
    cursor: pointer;
    /* Staggered slide-in animation */
    animation: slideInFromLeft-b-44u3nct9le 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

/* Use CSS counters and scoped styles to target rows within this component */
.contact-row:nth-of-type(1)[b-44u3nct9le] { animation-delay: 0.05s; }
.contact-row:nth-of-type(2)[b-44u3nct9le] { animation-delay: 0.1s; }
.contact-row:nth-of-type(3)[b-44u3nct9le] { animation-delay: 0.15s; }
.contact-row:nth-of-type(4)[b-44u3nct9le] { animation-delay: 0.2s; }
.contact-row:nth-of-type(5)[b-44u3nct9le] { animation-delay: 0.25s; }
.contact-row:nth-of-type(6)[b-44u3nct9le] { animation-delay: 0.3s; }
.contact-row:nth-of-type(7)[b-44u3nct9le] { animation-delay: 0.35s; }
.contact-row:nth-of-type(8)[b-44u3nct9le] { animation-delay: 0.4s; }
.contact-row:nth-of-type(9)[b-44u3nct9le] { animation-delay: 0.45s; }
.contact-row:nth-of-type(10)[b-44u3nct9le] { animation-delay: 0.5s; }
.contact-row:nth-of-type(11)[b-44u3nct9le] { animation-delay: 0.55s; }
.contact-row:nth-of-type(12)[b-44u3nct9le] { animation-delay: 0.6s; }
.contact-row:nth-of-type(13)[b-44u3nct9le] { animation-delay: 0.65s; }
.contact-row:nth-of-type(14)[b-44u3nct9le] { animation-delay: 0.7s; }
.contact-row:nth-of-type(15)[b-44u3nct9le] { animation-delay: 0.75s; }
.contact-row:nth-of-type(16)[b-44u3nct9le] { animation-delay: 0.8s; }
.contact-row:nth-of-type(17)[b-44u3nct9le] { animation-delay: 0.85s; }
.contact-row:nth-of-type(18)[b-44u3nct9le] { animation-delay: 0.9s; }
.contact-row:nth-of-type(19)[b-44u3nct9le] { animation-delay: 0.95s; }
.contact-row:nth-of-type(20)[b-44u3nct9le] { animation-delay: 1s; }

/* Slide in from left animation */
@keyframes slideInFromLeft-b-44u3nct9le {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-name[b-44u3nct9le] {
    font-weight: bold;
    font-size: 13px;
}

.d-inline-block[b-44u3nct9le] {
   padding: 2px 0; /* Adjust padding to reduce row height */
}

.initials-button[b-44u3nct9le] {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #005688; /* Default button color */
    color: white;
    font-weight: bold;
    margin-right: 10px;
    cursor: pointer;
    border: none; /* Remove default button border */
    outline: none; /* Remove default focus outline */
    transition: background-color 0.2s ease-in-out; /* Smooth hover transition */
}

    .initials-button:hover[b-44u3nct9le] {
        background-color: #0056b3; /* Darker hover color */
    }

    .initials-button:active[b-44u3nct9le] {
        background-color: #004085; /* Even darker active color for click feedback */
    }

.unread-badge[b-44u3nct9le] {
    display: flex;
    justify-content: center;
    align-items: center;
    right: 0;
    border-style: none;
    border-radius: 50%;
    background-color: #3697f5; /* Default button color */
    color: white;
    padding-left: 0.4em;
    padding-right: 0.4em;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out; /* Smooth hover transition */
}

/* Mobile Responsiveness */
@media (max-width: 641px) {
    .theme-switcher-custom[b-44u3nct9le] {
        justify-content: start;
        float: inline-start;
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .contact-title[b-44u3nct9le] {
        justify-self: center;
        position: center;
    }

    .contact-row[b-44u3nct9le] {
        padding: 2px 1px;
    }
}
