/* _content/TeyaMessages/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-e7sse8gttq] {
    position: relative;
    display: flex;
    flex-direction: column;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

#blazor-error-ui[b-e7sse8gttq] {
    background: lightyellow;
    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-e7sse8gttq] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/TeyaMessages/Components/Layout/ProfileDialog.razor.rz.scp.css */
/* _content/TeyaMessages/Components/Pages/ChatApp/Chat.razor.rz.scp.css */
/* Chat Container */
.conversation-panel[b-xnz5swuqjq] {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.conversation-list[b-xnz5swuqjq] {
    overflow-y: auto;
    scrollbar-width: thin;
}

    .conversation-list[b-xnz5swuqjq]::-webkit-scrollbar {
        width: 6px;
    }

    .conversation-list[b-xnz5swuqjq]::-webkit-scrollbar-track {
        background: transparent;
    }

    .conversation-list[b-xnz5swuqjq]::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

        .conversation-list[b-xnz5swuqjq]::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.3);
        }

.selected-conversation[b-xnz5swuqjq] {
    background: rgba(25, 118, 210, 0.08) !important;
}

/* Messages Container */
.messages-container[b-xnz5swuqjq] {
    overflow-y: auto;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

    .messages-container[b-xnz5swuqjq]::-webkit-scrollbar {
        width: 6px;
    }

    .messages-container[b-xnz5swuqjq]::-webkit-scrollbar-track {
        background: transparent;
    }

    .messages-container[b-xnz5swuqjq]::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

        .messages-container[b-xnz5swuqjq]::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.3);
        }

/* Message Bubbles */
.message-bubble-container.sent[b-xnz5swuqjq] {
    display: flex;
    justify-content: flex-end;
}

.message-bubble-container.received[b-xnz5swuqjq] {
    display: flex;
    justify-content: flex-start;
}

.message-bubble[b-xnz5swuqjq] {
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
}

.sent-bubble[b-xnz5swuqjq] {
    background: var(--mud-palette-primary, #1976D2);
    color: white;
    border-radius: 12px 12px 0 12px;
}

.received-bubble[b-xnz5swuqjq] {
    background: var(--mud-palette-surface);
    border-radius: 12px 12px 12px 0;
}

/* Typing Indicator */
.typing-indicator[b-xnz5swuqjq] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
}

    .typing-indicator span[b-xnz5swuqjq] {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--mud-palette-text-secondary);
        animation: typing-b-xnz5swuqjq 1.4s infinite;
    }

        .typing-indicator span:nth-child(2)[b-xnz5swuqjq] {
            animation-delay: 0.2s;
        }

        .typing-indicator span:nth-child(3)[b-xnz5swuqjq] {
            animation-delay: 0.4s;
        }

@keyframes typing-b-xnz5swuqjq {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Attachment Styles */
.attachment-image[b-xnz5swuqjq] {
    cursor: pointer;
    transition: transform 0.2s;
}

    .attachment-image:hover[b-xnz5swuqjq] {
        transform: scale(1.02);
    }

.attachment-item[b-xnz5swuqjq] {
    transition: opacity 0.2s;
}

    .attachment-item:hover[b-xnz5swuqjq] {
        opacity: 0.9;
    }

/* Responsive Design */
@media (max-width: 960px) {
    .conversation-panel[b-xnz5swuqjq] {
        width: 100% !important;
        position: absolute;
        z-index: 10;
        background: white;
    }

        .conversation-panel.hidden[b-xnz5swuqjq] {
            display: none;
        }
}

/* Theme Support */
[b-xnz5swuqjq] .mud-theme-dark .received-bubble {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

[b-xnz5swuqjq] .mud-theme-dark .conversation-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

[b-xnz5swuqjq] .mud-theme-dark .messages-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

/* Smooth Animations */
.message-bubble-container[b-xnz5swuqjq] {
    animation: slideIn-b-xnz5swuqjq 0.2s ease-out;
}

@keyframes slideIn-b-xnz5swuqjq {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Online Status Indicator */
.online-indicator[b-xnz5swuqjq] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4caf50;
    border: 2px solid white;
    position: absolute;
    bottom: 0;
    right: 0;
}
