/* _content/MinForening.Module.Chat.BlazorComponent/ChatComponent.razor.rz.scp.css */
/* Container/Paper replacement */
.chat-paper[b-rizigt4mfz] {
    background-color: var(--background-primary);
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px var(--shadow-primary), 0 2px 4px -1px var(--shadow-primary);
    overflow: hidden;
}

.chat-paper-elevated[b-rizigt4mfz] {
    box-shadow: 0 10px 25px -5px var(--shadow-primary), 0 8px 10px -6px var(--shadow-primary);
}

/* Toolbar replacement */
.chat-toolbar[b-rizigt4mfz] {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    min-height: 48px;
    background-color: var(--element-primary-backgrond);
    border-radius: 4px;
}

.chat-toolbar-dense[b-rizigt4mfz] {
    min-height: 40px;
    padding: 4px 16px;
}

/* Avatar replacement */
.chat-avatar[b-rizigt4mfz] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    font-weight: 500;
    text-transform: uppercase;
    flex-shrink: 0;
}

.chat-avatar-primary[b-rizigt4mfz] {
    background-color: var(--element-primary-backgrond);
    color: var(--element-primary-foregrond);
}

.chat-avatar-dark[b-rizigt4mfz] {
    background-color: var(--gray-700);
    color: var(--element-primary-foregrond);
}

.chat-avatar-secondary[b-rizigt4mfz] {
    background-color: var(--accent-foreground);
    color: var(--accent-textcolor);
}

.chat-avatar img[b-rizigt4mfz] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* List replacement */
.chat-list[b-rizigt4mfz] {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
}

.chat-list-item[b-rizigt4mfz] {
    display: flex;
    align-items: center;
    padding: 0 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-list-item:hover[b-rizigt4mfz] {
    background-color: var(--gray-100);
}

/* Divider replacement */
.chat-divider[b-rizigt4mfz] {
    border: 0;
    border-top: 1px solid var(--border-light);
    margin: 0;
}

/* Button replacement */
.chat-button[b-rizigt4mfz] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    gap: 8px;
    font-family: inherit;
    font-size: 0.875rem;
}

.chat-button-primary[b-rizigt4mfz] {
    background-color: var(--element-primary-backgrond);
    color: var(--element-primary-foregrond);
}

.chat-button-primary:hover[b-rizigt4mfz] {
    filter: brightness(0.9);
}

.chat-button-error[b-rizigt4mfz] {
    background-color: var(--danger-button-background-color);
    color: var(--element-primary-foregrond);
}

.chat-button-error:hover[b-rizigt4mfz] {
    filter: brightness(0.9);
}

/* Text field replacement */
.chat-textfield[b-rizigt4mfz] {
    flex: 1;
    padding: 8px 12px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    background-color: transparent;
    color: var(--text-primary);
}

.chat-textfield[b-rizigt4mfz]::placeholder {
    color: var(--text-light);
}

.chat-textfield-title[b-rizigt4mfz] {
    flex: 1;
    padding: 8px 12px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    background-color: transparent;
    color: var(--text-primary);
    margin: 0 16px;
}

/* Typography replacement */
.chat-text-h6[b-rizigt4mfz] {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    color: var(--text-primary);
}

.chat-text-body1[b-rizigt4mfz] {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    color: var(--text-primary);
}

.chat-text-body2[b-rizigt4mfz] {
    font-size: 0.875rem;
    line-height: 1.43;
    margin: 0;
    color: var(--text-primary);
    text-overflow: ellipsis;
}

.chat-text-caption[b-rizigt4mfz] {
    font-size: 0.75rem;
    line-height: 1.66;
    color: var(--subtext-color);
    margin: 0;
}

.chat-text-caption-small[b-rizigt4mfz] {
    font-size: xx-small;
    line-height: 1.66;
    color: var(--subtext-color);
    margin: 0;
}

/* Inline text */
.chat-text-inline[b-rizigt4mfz] {
    display: inline;
}

/* Spacer replacement */
.chat-spacer[b-rizigt4mfz] {
    flex-grow: 1;
}

/* Menu replacement */
.chat-menu[b-rizigt4mfz] {
    position: relative;
    display: inline-block;
}

.chat-menu-button[b-rizigt4mfz] {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.chat-menu-button:hover[b-rizigt4mfz] {
    background-color: rgba(0, 0, 0, 0.1);
}

.chat-menu-dropdown[b-rizigt4mfz] {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--background-primary);
    border-radius: 4px;
    box-shadow: 0 5px 5px -3px var(--shadow-primary), 0 8px 10px 1px var(--shadow-primary);
    min-width: 150px;
    z-index: 1000;
}

.chat-menu-item[b-rizigt4mfz] {
    padding: 10px 16px;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.chat-menu-item:hover[b-rizigt4mfz] {
    background-color: var(--gray-100);
}

/* Icon styling */
.chat-icon[b-rizigt4mfz] {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
    margin-right: 10px;
}

.chat-icon-small[b-rizigt4mfz] {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.chat-icon-button[b-rizigt4mfz] {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-right: 0;
}

/* Message bubble styles */
.chat-message-bubble[b-rizigt4mfz] {
    padding: 15px;
    background-color: var(--gray-200);
    border-radius: 5px;
    margin-top: 5px;
    overflow-wrap: break-word;
    max-width: 500px;
}

/* Input area */
.chat-input-area[b-rizigt4mfz] {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* User info in list items */
.chat-user-row[b-rizigt4mfz] {
    display: flex;
    flex-direction: row;
    margin-top: -4px;
    margin-bottom: -4px;
}

.chat-user-avatar[b-rizigt4mfz] {
    margin-right: 16px;
}

.chat-user-text[b-rizigt4mfz] {
    margin-top: 12px;
    margin-bottom: -8px;
}

/* Overview list item styling */
.chat-overview-avatar[b-rizigt4mfz] {
    margin: 10px 0;
}

/* Utility classes */
.d-flex[b-rizigt4mfz] { display: flex; }
.flex-row[b-rizigt4mfz] { flex-direction: row; }
.flex-column[b-rizigt4mfz] { flex-direction: column; }
.flex-grow-1[b-rizigt4mfz] { flex-grow: 1; }

.py-4[b-rizigt4mfz] { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-4[b-rizigt4mfz] { padding-left: 1.5rem; padding-right: 1.5rem; }
.pa-3[b-rizigt4mfz] { padding: 1rem; }
.mr-4[b-rizigt4mfz] { margin-right: 1.5rem; }
.mr-2[b-rizigt4mfz] { margin-right: 0.5rem; }
.ml-6[b-rizigt4mfz] { margin-left: 3rem; }

/* ===== LAYOUT STRUCTURE ===== */
.chat-layout[b-rizigt4mfz] {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    height: 100%;
}

.chat-layout-full[b-rizigt4mfz] {
    flex-direction: column;
}

.chat-layout-full .chat-main-panel[b-rizigt4mfz] {
    width: 100%;
    max-width: none;
}

.chat-main-panel[b-rizigt4mfz] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-sidebar[b-rizigt4mfz] {
    width: 350px;
    max-width: 500px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-sidebar-list[b-rizigt4mfz] {
    flex: 1;
    overflow-y: auto;
}

/* ===== CREATE CHAT PANELS ===== */
.chat-create-panels[b-rizigt4mfz] {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
}

.chat-create-panel[b-rizigt4mfz] {
    flex: 1;
    min-width: 0;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

/* ===== MESSAGES CONTAINER ===== */
.chat-messages-container[b-rizigt4mfz] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message[b-rizigt4mfz] {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
}

.chat-message-avatar[b-rizigt4mfz] {
    flex-shrink: 0;
}

.chat-message-content[b-rizigt4mfz] {
    flex: 1;
    min-width: 0;
}

/* ===== LAST MESSAGE IN SIDEBAR ===== */
.chat-last-message[b-rizigt4mfz] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* ===== ACTIVE CHAT IN LIST ===== */
.chat-list-item.active[b-rizigt4mfz] {
    background-color: var(--gray-200);
}
