@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.boiwgh0w5b.bundle.scp.css';
@import '_content/Triolink.Client.UI/Triolink.Client.UI.8zwnu8tqd7.bundle.scp.css';
@import '_content/Triolink.Components/Triolink.Components.g1ws9v8o9r.bundle.scp.css';

/* /Layout/ChatPanel.razor.rz.scp.css */
/* =========================================
   1. MAIN LAYOUT & CONTAINERS
   ========================================= */
.t-chat-layout[b-yt3foi2de9] {
    display: flex;
    height: 100%;
    min-height: 0;
    container-type: inline-size;
    container-name: chatpanel;
}

/* LEFT SIDEBAR */
.t-chat-left[b-yt3foi2de9] {
    border-right: 1px solid var(--mud-palette-lines-default);
    flex: 1 1 auto;
    flex-grow: 1;
    max-width: 220px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
}

/* RIGHT MAIN PANEL */
.t-chat-right[b-yt3foi2de9] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    flex-grow: 9;
    overflow: hidden; /* <--- CRITICAL FIX FOR SCROLLING */
}

/* =========================================
   2. SIDEBAR COMPONENTS
   ========================================= */
.t-chat-new[b-yt3foi2de9] {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: .5rem;
}

    .t-chat-new[b-yt3foi2de9]  .mud-select-input {
        margin-top: 0 !important;
    }

    .t-chat-new[b-yt3foi2de9]  .mud-button-root {
        padding: 6px;
        margin-right: 0px;
    }

.t-chat-list[b-yt3foi2de9] {
    overflow: auto;
}

.t-chat-item[b-yt3foi2de9] {
    padding: .5rem .6rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    cursor: pointer;
    border-right: 2px solid transparent;
}

    .t-chat-item.active[b-yt3foi2de9] {
        border-right: 2px solid var(--mud-palette-primary);
    }

    .t-chat-item:hover[b-yt3foi2de9] {
        background: var(--mud-palette-action-default-hover);
    }

    .t-chat-item .row1[b-yt3foi2de9] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .t-chat-item .title[b-yt3foi2de9] {
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .t-chat-item .ts[b-yt3foi2de9] {
        font-size: .8rem;
        opacity: .7;
    }

    .t-chat-item .row2[b-yt3foi2de9] {
        display: flex;
        gap: .5rem;
        align-items: center;
    }

    .t-chat-item .preview[b-yt3foi2de9] {
        flex: 1 1 auto;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        opacity: .8;
    }

.t-notif-badge[b-yt3foi2de9] {
    width: auto;
    min-width: 18px;
    height: 18px;
    color: white;
    font-size: 13px;
    background-color: var(--mud-palette-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   3. CHAT PANEL COMPONENTS
   ========================================= */
.t-chatp-top[b-yt3foi2de9] {
    padding: .5rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin: 0 8px;
}

.t-chatp-row[b-yt3foi2de9] {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 16px;
}

.t-chatp-empty[b-yt3foi2de9] {
    padding: 1rem;
    color: var(--mud-palette-text-secondary);
}

/* Message List Container */
.t-chatp-messages[b-yt3foi2de9] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto; /* Explicit vertical scroll */
    padding: .5rem;
    display: flex;
    flex-direction: column;
    gap: .375rem;
    transition: background-color 0.15s ease-out;
}
    /* Visual cue when dragging over */
    .t-chatp-messages.t-chatp-messages--drop[b-yt3foi2de9] {
        background-color: rgba(0, 0, 0, 0.15);
    }

/* Input Area */
.t-chatp-input[b-yt3foi2de9] {
    padding: .5rem;
    display: flex;
    gap: .5rem;
}

    .t-chatp-input[b-yt3foi2de9]  .mud-input > input.mud-input-root-outlined {
        padding: 14px;
    }

    .t-chatp-input[b-yt3foi2de9]  .mud-input.mud-input-outlined .mud-input-outlined-border {
        border-radius: 24px;
    }

/* =========================================
   4. MESSAGE BUBBLES
   ========================================= */
.msg[b-yt3foi2de9] {
    display: flex;
}

    .msg.me[b-yt3foi2de9] {
        justify-content: flex-end;
    }

    .msg.them[b-yt3foi2de9] {
        justify-content: flex-start;
    }

.bubble[b-yt3foi2de9] {
    max-width: 90%;
    padding: .5rem .6rem;
    border-radius: 12px;
    background: var(--mud-palette-surface);
    position: relative;
    /* Flex column to ensure timestamp sits correctly at bottom right */
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.msg.me .bubble[b-yt3foi2de9] {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

.bubble .ts[b-yt3foi2de9] {
    font-size: .7rem;
    opacity: .7;
    text-align: right;
    align-self: flex-end;
    line-height: 1;
    margin-top: 6px;
    user-select: none;
}

/* =========================================
   5. ACTIVITY CARDS & DRAG/DROP
   ========================================= */

/* Drag Overlay (Glassmorphism) */
.t-chatp-drop-overlay[b-yt3foi2de9] {
    position: absolute;
    inset: 12px;
    border-radius: 16px;
    display: flex;
    min-height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    z-index: 1110;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn-b-yt3foi2de9 0.2s ease-out forwards;
}

    .t-chatp-drop-overlay .mud-icon-root[b-yt3foi2de9] {
        font-size: 3rem !important;
        color: var(--mud-palette-primary-lighten);
        filter: drop-shadow(0 0 10px var(--mud-palette-primary-darken));
        animation: iconPulse-b-yt3foi2de9 2s infinite ease-in-out;
    }

/* Full Width Activity Overrides */
.msg.msg-activity[b-yt3foi2de9] {
    width: 100%;
    display: block;
    margin-bottom: 0.5rem;
}

    .msg.msg-activity .bubble[b-yt3foi2de9] {
        max-width: 100%;
        width: 100%;
        padding: 0;
        background-color: transparent !important;
        box-shadow: none;
        border-radius: 0;
    }

/* Activity Meta Header (Who sent it) */
.msg-activity-meta[b-yt3foi2de9] {
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
    padding: 0 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Activity Timestamp adjustments */
.msg.msg-activity .bubble .ts[b-yt3foi2de9] {
    text-align: right;
    color: var(--mud-palette-text-secondary);
    padding-right: 4px;
    margin-top: 2px;
    font-size: 0.75rem;
}

/* Shared Activity Component Wrapper fix */
.t-chat-activity-wrapper .t-card-base-container[b-yt3foi2de9] {
    box-shadow: none !important;
    border: 1px solid var(--mud-palette-table-lines);
    background-color: var(--mud-palette-surface);
    margin: 0 !important;
}

/* 1. Target the wrapper inside the components using ::deep */
.msg[b-yt3foi2de9]  .t-chat-activity-wrapper {
    max-width: 500px; /* Stop at 500px */
    width: 100%; /* Be responsive up to 500px */
    min-width: 300px; /* Don't get too small */
    border-radius: 8px; /* Optional: Round the corners */
    overflow: hidden; /* Ensure rounded corners clip content */
}

    /* 2. Hide the bottom content (Moved from your inline <style>) 
   This keeps your Razor files clean and prevents global style leaks.
*/
    .msg[b-yt3foi2de9]  .t-chat-activity-wrapper .t-bottom-card-content {
        display: none !important;
    }

/* 3. ALIGNMENT: handled by margins + the parent flexbox */

/* If it is ME: Push to the right */
.msg.me[b-yt3foi2de9]  .t-chat-activity-wrapper {
    margin-left: auto;
    margin-right: 0;
    /* Optional: Add a subtle border to separate from white background */
    border: 1px solid var(--mud-palette-lines-default);
}

/* If it is THEM: Push to the left */
.msg.them[b-yt3foi2de9]  .t-chat-activity-wrapper {
    margin-left: 0;
    margin-right: auto;
    border: 1px solid var(--mud-palette-lines-default);
}

/* =========================================
   6. ANIMATIONS
   ========================================= */
@keyframes fadeIn-b-yt3foi2de9 {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes iconPulse-b-yt3foi2de9 {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   7. MOBILE RESPONSIVENESS
   ========================================= */
[b-yt3foi2de9] .back-btn {
    display: none;
    padding: 8px;
}


@container chatpanel (max-width: 499px) {
    .t-chat-left[b-yt3foi2de9] {
        width: 100%;
        max-width: 100%;
    }

    .t-chat-right[b-yt3foi2de9] {
        display: none;
    }
    /* Active State */
    .t-chat-layout.mobile-detail .t-chat-left[b-yt3foi2de9] {
        display: none;
    }

    .t-chat-layout.mobile-detail .t-chat-right[b-yt3foi2de9] {
        display: flex;
    }

    [b-yt3foi2de9] .back-btn {
        display: inline-flex;
    }

    .t-chat-item.active[b-yt3foi2de9] {
        border-right: 2px solid transparent;
    }

    .t-chatp-top[b-yt3foi2de9] {
        margin: 0px;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.loading-bar[b-0iy34jlb0u] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #007bff; /* Adjust color */
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
    animation: loading-bar-b-0iy34jlb0u 1.5s infinite;
    opacity: 0;
}

@keyframes loading-bar-b-0iy34jlb0u {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

main[b-0iy34jlb0u] {
    flex: 1;
}

.sidebar[b-0iy34jlb0u] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-0iy34jlb0u] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-0iy34jlb0u]  a, .top-row[b-0iy34jlb0u]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-0iy34jlb0u]  a:hover, .top-row[b-0iy34jlb0u]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-0iy34jlb0u]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-0iy34jlb0u] {
        justify-content: space-between;
    }

    .top-row[b-0iy34jlb0u]  a, .top-row[b-0iy34jlb0u]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {

    .sidebar[b-0iy34jlb0u] {
        width: 250px;
        position: sticky;
        top: 0;
    }

    .top-row[b-0iy34jlb0u] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-0iy34jlb0u]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-0iy34jlb0u], article[b-0iy34jlb0u] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/SidePanel.razor.rz.scp.css */

/* Base panel (hidden off-screen) */
.t-notif-sidebar[b-n6z1blfy7l] {
    position: fixed;
    height: calc(100vh - var(--t-appbar-height));
    width: var(--notif-open-width);
    top: var(--t-appbar-height);
    right: 0;
    background: var(--mud-palette-background);
    border-left: 1px solid var(--mud-palette-lines-default);
    pointer-events: none;
    transform: translateX(100%);
    transition: transform .2s ease-in-out;
}

/* Header row */
.t-notif-sidebar__header[b-n6z1blfy7l] {
    display: flex;
    align-items: center;
    padding: .5rem .5rem;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: inherit;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.t-sidepanel__content[b-n6z1blfy7l] {
    flex: 1 1 auto;
    max-height: calc(100% - 45px);
}

.t-notif-empty[b-n6z1blfy7l] {
    color: var(--mud-palette-text-secondary);
    padding: .75rem 1rem 1rem 1rem;
}

.t-notif-sidebar[b-n6z1blfy7l]  .t-notifications-menu-item .mud-menu-item-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.t-notif-sidebar[b-n6z1blfy7l]  .mud-tabs-tabbar-inner {
    min-height: 44px;
}

.t-notif-sidebar[b-n6z1blfy7l]  .mud-tab {
    min-height: 44px;
    min-width: 157px!important;
    font-size: 13px;
}

.t-notif-sidebar[b-n6z1blfy7l]  .mud-tabs-scroll-button {
   display: none;
}

.t-notif-sidebar[b-n6z1blfy7l]  .mud-icon-size-medium {
    font-size: 1.25rem;
}

.t-sidepanel__header[b-n6z1blfy7l]  .mud-tabs-tabbar {
    background-color: transparent;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

/* Use dynamic width, clamp max to 60vw */
.t-notif-sidebar[b-n6z1blfy7l] {
    position: fixed;
    height: calc(100vh - var(--t-appbar-height));
    top: var(--t-appbar-height);
    right: 0;
    background: var(--mud-palette-background);
    border-left: 1px solid var(--mud-palette-lines-default);
    pointer-events: none;
    transform: translateX(100%);
    transition: transform .2s ease-in-out;
    z-index: 98;
    width: var(--notif-open-width, 360px);
    min-width: 360px;
}

    .t-notif-sidebar.open[b-n6z1blfy7l] {
        transform: translateX(0);
        pointer-events: auto;
        display: flex;
        flex-direction: column;
    }

/* Invisible by default, still catch mouse for resizing */
/* Invisible gutter that sits on the panel edge (hit area ~14�16px) */
.t-sidepanel__resize[b-n6z1blfy7l] {
    position: absolute;
    left: -7.5px; /* straddle the panel edge */
    top: 0;
    bottom: 0;
    width: 14px; /* easy to grab, but unobtrusive */
    cursor: ew-resize;
    z-index: 2;
    /* no background, no stripes by default */
    opacity: 1; /* keep hit area active */
}

    /* two subtle stripes centered vertically � hidden by default */
    .t-sidepanel__resize[b-n6z1blfy7l]::before,
    .t-sidepanel__resize[b-n6z1blfy7l]::after {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        height: 56px;
        width: 2px;
        border-radius: 2px;
        opacity: 0;
        background-color: var(--mud-palette-lines-inputs);
        transition: opacity .12s ease;
    }

    .t-sidepanel__resize[b-n6z1blfy7l]::before {
        left: 3px;
    }

    .t-sidepanel__resize[b-n6z1blfy7l]::after {
        right: 3px;
    }

    /* show only when hovering the gutter itself (NOT the whole panel) */
    .t-sidepanel__resize:hover[b-n6z1blfy7l]::before,
    .t-sidepanel__resize:hover[b-n6z1blfy7l]::after {
        opacity: 1;
    }

    /* optional: keep visible while dragging */
    .t-sidepanel__resize:active[b-n6z1blfy7l]::before,
    .t-sidepanel__resize:active[b-n6z1blfy7l]::after {
        opacity: 1;
    }


    .t-chat-activity-wrapper[b-n6z1blfy7l]{

    }

