@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';

/* /Components/LiveChat.razor.rz.scp.css */
.chat-container[b-j9yp60e5w6] { display: flex; flex-direction: column; height: 100%; min-height: 420px;
    border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; overflow: hidden; }

.pinned-banner[b-j9yp60e5w6] { background: #fff8e1; border-bottom: 1px solid #f0e0a0; padding: 8px 12px;
    font-size: 13px; color: #7a5c00; }

.message-feed[b-j9yp60e5w6] { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }

.message[b-j9yp60e5w6] { max-width: 85%; padding: 6px 10px; border-radius: 10px; background: #f3f4f6; }
.message.own[b-j9yp60e5w6] { align-self: flex-end; background: #e0f2fe; }
.message.announcement[b-j9yp60e5w6] { background: #fef3c7; border: 1px solid #fcd34d; max-width: 100%; }
.message.system[b-j9yp60e5w6] { background: transparent; color: #6b7280; font-style: italic; text-align: center; }

.msg-header[b-j9yp60e5w6] { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.msg-header .time[b-j9yp60e5w6] { color: #9ca3af; }
.msg-body[b-j9yp60e5w6] { margin: 2px 0 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }

.role-teacher[b-j9yp60e5w6], .role-admin[b-j9yp60e5w6], .role-moderator[b-j9yp60e5w6] { color: #b91c1c; }
.role-student[b-j9yp60e5w6] { color: #374151; }

.mod-toolbar[b-j9yp60e5w6] { margin-left: auto; display: inline-flex; gap: 2px; }
.mod-toolbar button[b-j9yp60e5w6] { border: none; background: transparent; cursor: pointer; font-size: 13px; padding: 0 2px; }

.typing[b-j9yp60e5w6] { font-size: 12px; color: #9ca3af; font-style: italic; padding: 2px 4px; }

.input-area[b-j9yp60e5w6] { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #eee; }
.input-area input[b-j9yp60e5w6] { flex: 1; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.input-area button[b-j9yp60e5w6] { padding: 8px 14px; border: none; border-radius: 8px; background: #2563eb; color: #fff; cursor: pointer; }
.input-area button:disabled[b-j9yp60e5w6] { opacity: .5; cursor: not-allowed; }
.input-area button.announce[b-j9yp60e5w6] { background: #d97706; }

.status-bar[b-j9yp60e5w6] { padding: 6px; text-align: center; font-size: 12px; color: #9ca3af; background: #f9fafb; }
/* /Components/Shared/CourseSearchSelect.razor.rz.scp.css */
/* =============================================================================
   CourseSearchSelect.razor.css
   -----------------------------------------------------------------------------
   Base .uss-* styles (copied from UserSearchSelect.razor.css) plus
   course-specific extensions below. Blazor CSS isolation scopes styles
   PER COMPONENT — the base styles were only ever defined in
   UserSearchSelect.razor.css, so this component'''s dropdown never actually
   had them applied. That'''s a pre-existing gap, not something introduced
   by the multi-select feature below; fixed here by giving this component
   its own complete copy, same as any Blazor-CSS-isolated component needs.
   ============================================================================= */

.uss[b-gd4hwsjyzl] {
    position: relative;
    width: 100%;
}

/* ── Collapsed chip (selected state) ───────────────────────────────────────── */
.uss-chip[b-gd4hwsjyzl] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    min-height: 40px;
    transition: border-color .15s, box-shadow .15s;
}

    .uss-chip:hover[b-gd4hwsjyzl] {
        border-color: var(--primary-yellow);
        box-shadow: 0 0 0 2px rgba(255, 201, 71, .15);
    }

.uss-chip-icon[b-gd4hwsjyzl] {
    color: var(--primary-yellow);
    font-size: 14px;
    flex-shrink: 0;
}

.uss-chip-text[b-gd4hwsjyzl] {
    flex: 1;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uss-chip-clear[b-gd4hwsjyzl] {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    transition: background .15s, color .15s;
}

    .uss-chip-clear:hover[b-gd4hwsjyzl] {
        background: #f5f5f5;
        color: #d33;
    }

/* ── Input wrapper ─────────────────────────────────────────────────────────── */
.uss-input-wrap[b-gd4hwsjyzl] {
    position: relative;
}

.uss-input-icon[b-gd4hwsjyzl] {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9a9a9a;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.uss-input-spinner[b-gd4hwsjyzl] {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-yellow);
    font-size: 13px;
    pointer-events: none;
}

.uss-input[b-gd4hwsjyzl] {
    padding-left: 34px !important;
    padding-right: 34px !important;
}

.uss.is-open .uss-input[b-gd4hwsjyzl] {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-color: var(--primary-yellow) !important;
    box-shadow: 0 0 0 2px rgba(255, 201, 71, .15) !important;
}

/* ── Dropdown panel ────────────────────────────────────────────────────────── */
.uss-dropdown[b-gd4hwsjyzl] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid var(--primary-yellow);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 340px;
    overflow-y: auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    margin-top: -1px;
}

/* ── Items ─────────────────────────────────────────────────────────────────── */
.uss-item[b-gd4hwsjyzl] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background .1s;
}

    .uss-item:last-child[b-gd4hwsjyzl] {
        border-bottom: none;
    }

    .uss-item:hover[b-gd4hwsjyzl],
    .uss-item.uss-active[b-gd4hwsjyzl] {
        background: #fff8e5;
    }

/* ── Avatar circle ─────────────────────────────────────────────────────────── */
.uss-item-avatar[b-gd4hwsjyzl] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-yellow), #ffb31a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
    font-family: inherit;
}

/* ── Body ──────────────────────────────────────────────────────────────────── */
.uss-item-body[b-gd4hwsjyzl] {
    flex: 1;
    min-width: 0;
}

.uss-item-name[b-gd4hwsjyzl] {
    font-size: 13.5px;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uss-item-meta[b-gd4hwsjyzl] {
    font-size: 11.5px;
    color: #7a7a7a;
    margin-top: 2px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .uss-item-meta span[b-gd4hwsjyzl] {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .uss-item-meta i[b-gd4hwsjyzl] {
        font-size: 10px;
        color: #b0b0b0;
    }

/* ── State rows (loading / empty / hint / more) ────────────────────────────── */
.uss-state[b-gd4hwsjyzl] {
    justify-content: center;
    padding: 16px;
    color: #888;
    font-size: 13px;
    cursor: default;
}

    .uss-state:hover[b-gd4hwsjyzl] {
        background: transparent;
    }

    .uss-state i[b-gd4hwsjyzl] {
        margin-right: 6px;
    }

.uss-hint[b-gd4hwsjyzl] {
    font-style: italic;
}

.uss-empty strong[b-gd4hwsjyzl] {
    color: #333;
    margin: 0 2px;
}

.uss-more[b-gd4hwsjyzl] {
    justify-content: center;
    padding: 8px 12px;
    color: #999;
    font-size: 11.5px;
    font-style: italic;
    background: #fafafa;
    cursor: default;
}

    .uss-more:hover[b-gd4hwsjyzl] {
        background: #fafafa;
    }

/* ── Outside-click overlay (transparent full-viewport) ─────────────────────── */
.uss-overlay[b-gd4hwsjyzl] {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: transparent;
}

/* ── Scrollbar styling ─────────────────────────────────────────────────────── */
.uss-dropdown[b-gd4hwsjyzl]::-webkit-scrollbar {
    width: 8px;
}

.uss-dropdown[b-gd4hwsjyzl]::-webkit-scrollbar-track {
    background: #f8f8f8;
}

.uss-dropdown[b-gd4hwsjyzl]::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

    .uss-dropdown[b-gd4hwsjyzl]::-webkit-scrollbar-thumb:hover {
        background: #b0b0b0;
    }

/* Course thumbnail avatar — rounded-square instead of circle */
.uss-course-avatar[b-gd4hwsjyzl] {
    width: 40px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    color: #999;
    font-size: 14px;
}

    .uss-course-avatar img[b-gd4hwsjyzl] {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .uss-course-avatar i[b-gd4hwsjyzl] {
        color: var(--primary-yellow);
    }

/* ── Status badges ─────────────────────────────────────────────────────────── */
.uss-badge[b-gd4hwsjyzl] {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.uss-badge-published[b-gd4hwsjyzl] { background: #dcfce7; color: #15803d; }
.uss-badge-draft[b-gd4hwsjyzl]     { background: #fef3c7; color: #b45309; }
.uss-badge-archived[b-gd4hwsjyzl]  { background: #e5e7eb; color: #6b7280; }
.uss-badge-private[b-gd4hwsjyzl]   { background: #ede9fe; color: #6d28d9; }
.uss-badge-suspended[b-gd4hwsjyzl] { background: #fee2e2; color: #b91c1c; }

/* Fallback for any unrecognized status */
.uss-badge:not([class*="uss-badge-"])[b-gd4hwsjyzl] {
    background: #e5e7eb;
    color: #6b7280;
}

/* ── Error state ───────────────────────────────────────────────────────────── */
.uss-error[b-gd4hwsjyzl] {
    background: #fef2f2;
    color: #991b1b;
    align-items: flex-start;
    gap: 10px;
}

    .uss-error:hover[b-gd4hwsjyzl] {
        background: #fef2f2;
    }

    .uss-error i.fa-exclamation-triangle[b-gd4hwsjyzl] {
        color: #dc2626;
        margin-top: 2px;
    }

/* ── Empty state layout (multi-line) ───────────────────────────────────────── */
.uss-empty[b-gd4hwsjyzl] {
    align-items: flex-start;
    text-align: left;
    gap: 10px;
}

    .uss-empty i[b-gd4hwsjyzl] {
        color: #9ca3af;
        margin-top: 2px;
    }

    .uss-empty em[b-gd4hwsjyzl] {
        color: #555;
        font-style: normal;
        font-weight: 500;
    }

/* ── Multi-select chips ────────────────────────────────────────────────────── */
.uss-multi-chips[b-gd4hwsjyzl] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.uss-multi-chip[b-gd4hwsjyzl] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px 5px 10px;
    background: #fff8e5;
    border: 1px solid #ffe29a;
    border-radius: 14px;
    font-size: 12.5px;
    color: #333;
    max-width: 260px;
}

    .uss-multi-chip .uss-chip-icon[b-gd4hwsjyzl] {
        color: var(--primary-yellow);
        font-size: 11px;
        flex-shrink: 0;
    }

    .uss-multi-chip .uss-chip-text[b-gd4hwsjyzl] {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .uss-multi-chip .uss-chip-clear[b-gd4hwsjyzl] {
        background: transparent;
        border: none;
        color: #b8860b;
        cursor: pointer;
        padding: 2px 4px;
        font-size: 10px;
        flex-shrink: 0;
    }

        .uss-multi-chip .uss-chip-clear:hover[b-gd4hwsjyzl] {
            color: #d33;
        }

/* Dropdown row already picked in multi-select mode */
.uss-item-selected[b-gd4hwsjyzl] {
    background: #fffbf0;
}

.uss-item-check[b-gd4hwsjyzl] {
    color: #16a34a;
    font-size: 15px;
    flex-shrink: 0;
}
/* /Components/Shared/UserSearchSelect.razor.rz.scp.css */
/* =============================================================================
   UserSearchSelect.razor.css
   -----------------------------------------------------------------------------
   Scoped styles for the Select2-style user picker.
   Matches the admin panel look (form-control, brand colors) and supports
   keyboard nav, hover, and active states.
   ============================================================================= */

.uss[b-nwhe6bmhxq] {
    position: relative;
    width: 100%;
}

/* ── Collapsed chip (selected state) ───────────────────────────────────────── */
.uss-chip[b-nwhe6bmhxq] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    min-height: 40px;
    transition: border-color .15s, box-shadow .15s;
}

    .uss-chip:hover[b-nwhe6bmhxq] {
        border-color: var(--primary-yellow);
        box-shadow: 0 0 0 2px rgba(255, 201, 71, .15);
    }

.uss-chip-icon[b-nwhe6bmhxq] {
    color: var(--primary-yellow);
    font-size: 14px;
    flex-shrink: 0;
}

.uss-chip-text[b-nwhe6bmhxq] {
    flex: 1;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uss-chip-clear[b-nwhe6bmhxq] {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    transition: background .15s, color .15s;
}

    .uss-chip-clear:hover[b-nwhe6bmhxq] {
        background: #f5f5f5;
        color: #d33;
    }

/* ── Input wrapper ─────────────────────────────────────────────────────────── */
.uss-input-wrap[b-nwhe6bmhxq] {
    position: relative;
}

.uss-input-icon[b-nwhe6bmhxq] {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9a9a9a;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.uss-input-spinner[b-nwhe6bmhxq] {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-yellow);
    font-size: 13px;
    pointer-events: none;
}

.uss-input[b-nwhe6bmhxq] {
    padding-left: 34px !important;
    padding-right: 34px !important;
}

.uss.is-open .uss-input[b-nwhe6bmhxq] {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-color: var(--primary-yellow) !important;
    box-shadow: 0 0 0 2px rgba(255, 201, 71, .15) !important;
}

/* ── Dropdown panel ────────────────────────────────────────────────────────── */
.uss-dropdown[b-nwhe6bmhxq] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid var(--primary-yellow);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 340px;
    overflow-y: auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    margin-top: -1px;
}

/* ── Items ─────────────────────────────────────────────────────────────────── */
.uss-item[b-nwhe6bmhxq] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background .1s;
}

    .uss-item:last-child[b-nwhe6bmhxq] {
        border-bottom: none;
    }

    .uss-item:hover[b-nwhe6bmhxq],
    .uss-item.uss-active[b-nwhe6bmhxq] {
        background: #fff8e5;
    }

/* ── Avatar circle ─────────────────────────────────────────────────────────── */
.uss-item-avatar[b-nwhe6bmhxq] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-yellow), #ffb31a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
    font-family: inherit;
}

/* ── Body ──────────────────────────────────────────────────────────────────── */
.uss-item-body[b-nwhe6bmhxq] {
    flex: 1;
    min-width: 0;
}

.uss-item-name[b-nwhe6bmhxq] {
    font-size: 13.5px;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uss-item-meta[b-nwhe6bmhxq] {
    font-size: 11.5px;
    color: #7a7a7a;
    margin-top: 2px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .uss-item-meta span[b-nwhe6bmhxq] {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .uss-item-meta i[b-nwhe6bmhxq] {
        font-size: 10px;
        color: #b0b0b0;
    }

/* ── State rows (loading / empty / hint / more) ────────────────────────────── */
.uss-state[b-nwhe6bmhxq] {
    justify-content: center;
    padding: 16px;
    color: #888;
    font-size: 13px;
    cursor: default;
}

    .uss-state:hover[b-nwhe6bmhxq] {
        background: transparent;
    }

    .uss-state i[b-nwhe6bmhxq] {
        margin-right: 6px;
    }

.uss-hint[b-nwhe6bmhxq] {
    font-style: italic;
}

.uss-empty strong[b-nwhe6bmhxq] {
    color: #333;
    margin: 0 2px;
}

.uss-more[b-nwhe6bmhxq] {
    justify-content: center;
    padding: 8px 12px;
    color: #999;
    font-size: 11.5px;
    font-style: italic;
    background: #fafafa;
    cursor: default;
}

    .uss-more:hover[b-nwhe6bmhxq] {
        background: #fafafa;
    }

/* ── Add New User trigger row ──────────────────────────────────────────────── */
.uss-add-new[b-nwhe6bmhxq] {
    justify-content: center;
    color: var(--primary-yellow);
    font-weight: 600;
    background: #fffbf0;
}

    .uss-add-new:hover[b-nwhe6bmhxq] {
        background: #fff3d6;
    }

/* ── Inline create form ────────────────────────────────────────────────────── */
.uss-create-form[b-nwhe6bmhxq] {
    padding: 14px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    cursor: default;
}

.uss-create-hdr[b-nwhe6bmhxq] {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .uss-create-hdr i[b-nwhe6bmhxq] {
        color: var(--primary-yellow);
    }

.uss-create-fg[b-nwhe6bmhxq] {
    margin-bottom: 10px;
}

    .uss-create-fg:last-of-type[b-nwhe6bmhxq] {
        margin-bottom: 0;
    }

    .uss-create-fg label[b-nwhe6bmhxq] {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #555;
        margin-bottom: 4px;
    }

.uss-req[b-nwhe6bmhxq] {
    color: #d33;
}

.uss-create-form input.form-control[b-nwhe6bmhxq] {
    font-size: 13px;
    width: 100%;
}

.uss-create-error[b-nwhe6bmhxq] {
    margin-top: 10px;
    font-size: 12px;
    color: #d33;
    display: flex;
    align-items: center;
    gap: 5px;
}

.uss-create-actions[b-nwhe6bmhxq] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

/* ── Outside-click overlay (transparent full-viewport) ─────────────────────── */
.uss-overlay[b-nwhe6bmhxq] {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: transparent;
}

/* ── Scrollbar styling ─────────────────────────────────────────────────────── */
.uss-dropdown[b-nwhe6bmhxq]::-webkit-scrollbar {
    width: 8px;
}

.uss-dropdown[b-nwhe6bmhxq]::-webkit-scrollbar-track {
    background: #f8f8f8;
}

.uss-dropdown[b-nwhe6bmhxq]::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

    .uss-dropdown[b-nwhe6bmhxq]::-webkit-scrollbar-thumb:hover {
        background: #b0b0b0;
    }
