/* =========================================================
   Melp Skeleton Loading — common shimmer skeleton system
   Use via window.MelpSkeleton.show(containerId, type, count)
   ========================================================= */

@keyframes melp-skeleton-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

.melp-skeleton {
    background: linear-gradient(90deg, var(--color-background) 25%, var(--color-surface-alt) 50%, var(--color-background) 75%);
    background-size: 200% 100%;
    animation: melp-skeleton-shimmer 1.4s infinite linear;
    border-radius: 0.4rem;
}

/* Skeleton container: height is capped via JS to the parent's visible area,
   preventing the skeleton rows from making the panel scrollable */
.melp-skeleton-container {
    overflow: hidden;
    background: var(--color-surface);
}

/* ── Team skeleton (accordion rows) ── */
.melp-sk-team-row {
    display: flex;
    align-items: center;
    padding: 1.8rem 1.6rem;
    border-bottom: 0.1rem solid var(--color-background);
    gap: 1.2rem;
    background: var(--color-surface);
}

.melp-sk-team-icon {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 5px;
    flex-shrink: 0;
}

.melp-sk-team-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.melp-sk-team-name {
    height: 1.4rem;
    width: 50%;
    border-radius: 0.3rem;
}

.melp-sk-team-sub {
    height: 1.1rem;
    width: 32%;
    border-radius: 0.3rem;
}

.melp-sk-team-chevron {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 0.3rem;
    flex-shrink: 0;
}

/* ── Group skeleton (list rows with avatar + message preview) ── */
.melp-sk-group-row {
    display: flex;
    align-items: center;
    padding: 1.0rem 1.6rem;
    border-bottom: 0.1rem solid var(--color-background);
    gap: 1.2rem;
    background: var(--color-surface);
}

.melp-sk-group-avatar {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 5px;
    flex-shrink: 0;
}

.melp-sk-group-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
}

.melp-sk-group-name {
    height: 1.4rem;
    width: 45%;
    border-radius: 0.3rem;
}

.melp-sk-group-msg {
    height: 1.1rem;
    width: 72%;
    border-radius: 0.3rem;
}

.melp-sk-group-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    flex-shrink: 0;
}

.melp-sk-group-time {
    height: 1.0rem;
    width: 3.6rem;
    border-radius: 0.3rem;
}

.melp-sk-group-badge {
    height: 1.6rem;
    width: 1.6rem;
    border-radius: 50%;
}

/* ── Meeting skeleton (calendar icon + title + join button) ── */
.melp-sk-meeting-row {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.6rem;
    border-bottom: 0.1rem solid var(--color-background);
    gap: 1.2rem;
    background: var(--color-surface);
}

.melp-sk-meeting-icon {
    width: 4.0rem;
    height: 4.4rem;
    border-radius: 0.6rem;
    flex-shrink: 0;
}

.melp-sk-meeting-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
}

.melp-sk-meeting-title {
    height: 1.4rem;
    width: 55%;
    border-radius: 0.3rem;
}

.melp-sk-meeting-sub {
    height: 1.1rem;
    width: 38%;
    border-radius: 0.3rem;
}

.melp-sk-meeting-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
    flex-shrink: 0;
}

.melp-sk-meeting-time {
    height: 1.0rem;
    width: 3.6rem;
    border-radius: 0.3rem;
}

.melp-sk-meeting-btn {
    height: 2.4rem;
    width: 5.6rem;
    border-radius: 1.2rem;
}

/* ── In-list empty state (MelpSkeleton.showEmpty) ── */
.melp-list-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    pointer-events: none;
    /* Stick to the top of the scroll container so it's always visible,
       then fill enough height to visually center the content. */
    position: sticky;
    top: 0;
    min-height: calc(100vh - 23rem);
}

.melp-list-empty-img {
    width: 9rem;
    height: 9rem;
    object-fit: contain;
    margin-bottom: 1.6rem;
    opacity: 0.8;
}

.melp-list-empty-text {

    font-size: var(--font-size-15);
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.53;
    text-align: center;
    color: var(--black);
    margin-bottom: 0rem;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 0px 2.5rem;
}
