/* _content/MicaSST.Web/Components/AvatarAssistant.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════
   AvatarAssistant.razor.css — Scoped (pure avatar component)
   Chat and message styles have moved to ChatPage.razor.css
═══════════════════════════════════════════════════════ */

/* ─── Avatar wrapper & states ─────────────────────────── */
.avatar-wrapper[b-hdrg6w1vy6] {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.avatar-ring[b-hdrg6w1vy6] {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.avatar-svg-container[b-hdrg6w1vy6] {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.avatar-svg-container svg[b-hdrg6w1vy6],
.avatar-svg-container img[b-hdrg6w1vy6] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── IDLE ── */
.avatar-wrapper.idle .avatar-svg-container[b-hdrg6w1vy6] { animation: breathe-b-hdrg6w1vy6 4s ease-in-out infinite; }
.avatar-wrapper.idle .avatar-ring[b-hdrg6w1vy6]          { border-color: #e2e8f0; }

/* ── LISTENING ── */
.avatar-wrapper.listening .avatar-ring[b-hdrg6w1vy6] {
    border-color: #22c55e;
    animation: ringPulseGreen-b-hdrg6w1vy6 1.5s ease-in-out infinite;
}
.avatar-wrapper.listening .avatar-svg-container[b-hdrg6w1vy6] {
    filter: brightness(1.05);
    animation: listenBob-b-hdrg6w1vy6 1.2s ease-in-out infinite;
}

/* ── LOADING ── */
.avatar-wrapper.loading .avatar-ring[b-hdrg6w1vy6] {
    border-color: #3b82f6;
    border-top-color: transparent;
    animation: spinRing-b-hdrg6w1vy6 1s linear infinite;
}
.avatar-wrapper.loading .avatar-svg-container[b-hdrg6w1vy6] {
    filter: brightness(0.95) saturate(0.8);
    animation: breathe-b-hdrg6w1vy6 2s ease-in-out infinite;
}

/* ── THINKING ── */
.avatar-wrapper.thinking .avatar-ring[b-hdrg6w1vy6] {
    border-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245,158,11,0.5);
    animation: ringPulseAmber-b-hdrg6w1vy6 1s ease-in-out infinite;
}
.avatar-wrapper.thinking .avatar-svg-container[b-hdrg6w1vy6] { animation: thinkPulse-b-hdrg6w1vy6 1.5s ease-in-out infinite; }

/* ── SPEAKING ── */
.avatar-wrapper.speaking .avatar-ring[b-hdrg6w1vy6] {
    border-color: #6366f1;
    animation: speakWave-b-hdrg6w1vy6 0.8s ease-in-out infinite alternate;
}
.avatar-wrapper.speaking .avatar-svg-container[b-hdrg6w1vy6] { animation: speakScale-b-hdrg6w1vy6 0.8s ease-in-out infinite alternate; }

/* ── ERROR ── */
.avatar-wrapper.error .avatar-ring[b-hdrg6w1vy6]       { border-color: #ef4444; animation: errorFlash-b-hdrg6w1vy6 0.5s ease-in-out infinite; }
.avatar-wrapper.error .avatar-svg-container[b-hdrg6w1vy6] { filter: saturate(0) sepia(0.5) hue-rotate(-20deg); }

/* ─── Keyframes ───────────────────────────────────────── */
@keyframes breathe-b-hdrg6w1vy6 {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.03); }
}

@keyframes listenBob-b-hdrg6w1vy6 {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-4px); }
}

@keyframes ringPulseGreen-b-hdrg6w1vy6 {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50%       { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
}

@keyframes ringPulseAmber-b-hdrg6w1vy6 {
    0%, 100% { box-shadow: 0 0 8px rgba(245,158,11,0.4); }
    50%       { box-shadow: 0 0 20px rgba(245,158,11,0.7); }
}

@keyframes thinkPulse-b-hdrg6w1vy6 {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%       { transform: scale(1.04); opacity: 0.85; }
}

@keyframes speakWave-b-hdrg6w1vy6 {
    from { box-shadow: 0 0 8px rgba(99,102,241,0.4); }
    to   { box-shadow: 0 0 24px rgba(99,102,241,0.8); }
}

@keyframes speakScale-b-hdrg6w1vy6 {
    from { transform: scale(1); }
    to   { transform: scale(1.04); }
}

@keyframes spinRing-b-hdrg6w1vy6 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes errorFlash-b-hdrg6w1vy6 {
    0%, 100% { box-shadow: 0 0 0 rgba(239,68,68,0); }
    50%       { box-shadow: 0 0 14px rgba(239,68,68,0.7); }
}
/* _content/MicaSST.Web/Components/ConversationHistory.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════
   ConversationHistory.razor.css — Scoped
═══════════════════════════════════════════════════════ */

.history-panel[b-nytqu43s1e] {
    width: 240px;
    min-width: 240px;
    height: 100%;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.25s ease, min-width 0.25s ease;
    position: relative;
}

/* Collapsed state */
.history-panel.collapsed[b-nytqu43s1e] {
    width: 0;
    min-width: 0;
    border-right: none;
}

.history-panel.collapsed .history-header[b-nytqu43s1e],
.history-panel.collapsed .new-conv-btn[b-nytqu43s1e],
.history-panel.collapsed .history-list[b-nytqu43s1e] {
    opacity: 0;
    pointer-events: none;
}

.history-panel.collapsed .expand-btn[b-nytqu43s1e] {
    display: flex;
}

/* ─── Header ──────────────────────────────────────────── */
.history-header[b-nytqu43s1e] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.75rem 0.5rem;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.history-title[b-nytqu43s1e] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.history-title svg[b-nytqu43s1e] {
    width: 14px;
    height: 14px;
    color: var(--text-3);
}

/* ─── New conversation button ─────────────────────────── */
.new-conv-btn[b-nytqu43s1e] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0.75rem 0.75rem;
    padding: 0.6rem 0.85rem;
    background: var(--primary-light);
    border: 1.5px solid var(--primary);
    border-radius: 0.75rem;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.new-conv-btn:hover[b-nytqu43s1e] {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

.new-conv-btn svg[b-nytqu43s1e] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ─── Session list ────────────────────────────────────── */
.history-list[b-nytqu43s1e] {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: opacity 0.2s;
}

.history-list[b-nytqu43s1e]::-webkit-scrollbar { width: 4px; }
.history-list[b-nytqu43s1e]::-webkit-scrollbar-track { background: transparent; }
.history-list[b-nytqu43s1e]::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ─── Empty state ─────────────────────────────────────── */
.history-empty[b-nytqu43s1e] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-3);
}

.history-empty svg[b-nytqu43s1e] {
    width: 32px;
    height: 32px;
    opacity: 0.5;
}

.history-empty p[b-nytqu43s1e] {
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* ─── Session item ────────────────────────────────────── */
.session-item[b-nytqu43s1e] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.6rem;
    border: none;
    background: transparent;
    border-radius: 0.65rem;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    width: 100%;
    transition: background 0.15s;
    position: relative;
    animation: sessionIn-b-nytqu43s1e 0.25s ease-out both;
}

@keyframes sessionIn-b-nytqu43s1e {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.session-item:hover[b-nytqu43s1e] { background: var(--surface-2); }
.session-item.active[b-nytqu43s1e] { background: var(--primary-light); }

.session-icon[b-nytqu43s1e] {
    width: 28px;
    height: 28px;
    border-radius: 0.5rem;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-item.active .session-icon[b-nytqu43s1e] { background: var(--primary); }
.session-item.active .session-icon svg[b-nytqu43s1e] { color: white; }

.session-icon svg[b-nytqu43s1e] {
    width: 14px;
    height: 14px;
    color: var(--text-3);
}

.session-info[b-nytqu43s1e] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.session-title[b-nytqu43s1e] {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-item.active .session-title[b-nytqu43s1e] { color: var(--primary); font-weight: 600; }

.session-date[b-nytqu43s1e] {
    font-size: 0.7rem;
    color: var(--text-3);
    margin-top: 1px;
}

.session-active-indicator[b-nytqu43s1e] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* ─── Icon button ─────────────────────────────────────── */
.icon-btn[b-nytqu43s1e] {
    width: 28px;
    height: 28px;
    border-radius: 0.45rem;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    transition: background 0.15s, color 0.15s;
}

.icon-btn:hover[b-nytqu43s1e] { background: var(--surface-2); color: var(--text-1); }
.icon-btn svg[b-nytqu43s1e]   { width: 16px; height: 16px; }

/* ─── Expand button (shown when collapsed) ────────────── */
.expand-btn[b-nytqu43s1e] {
    display: none;
    position: absolute;
    top: 50%;
    right: -16px;
    transform: translateY(-50%);
    z-index: 10;
    width: 24px;
    height: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
}

.expand-btn svg[b-nytqu43s1e] { width: 14px; height: 14px; }
/* _content/MicaSST.Web/Components/Layout/LoginLayout.razor.rz.scp.css */
.login-layout[b-t4omjb7f9z] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Inter', system-ui, sans-serif;
}
/* _content/MicaSST.Web/Components/Layout/MainLayout.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════
   MainLayout.razor.css — Scoped styles for app shell
═══════════════════════════════════════════════════════ */

/* ─── App Shell ───────────────────────────────────────── */
.app-shell[b-7i7c6m5u1t] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: var(--surface-2);
}

/* ─── Header ──────────────────────────────────────────── */
.app-header[b-7i7c6m5u1t] {
    height: 64px;
    min-height: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    gap: 1rem;
}

/* Brand left */
.header-brand[b-7i7c6m5u1t] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Header avatar container */
.header-avatar-wrapper[b-7i7c6m5u1t] {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.header-avatar-ring[b-7i7c6m5u1t] {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.header-avatar-svg[b-7i7c6m5u1t] {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-avatar-svg svg[b-7i7c6m5u1t],
.header-avatar-svg img[b-7i7c6m5u1t] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar state rings — header */
.header-avatar-wrapper.idle .header-avatar-svg[b-7i7c6m5u1t]      { animation: breatheSmall-b-7i7c6m5u1t 4s ease-in-out infinite; }
.header-avatar-wrapper.idle .header-avatar-ring[b-7i7c6m5u1t]     { border-color: var(--border); }

.header-avatar-wrapper.listening .header-avatar-ring[b-7i7c6m5u1t] {
    border-color: var(--success);
    animation: ringPulseGreen-b-7i7c6m5u1t 1.5s ease-in-out infinite;
}
.header-avatar-wrapper.thinking .header-avatar-ring[b-7i7c6m5u1t]  {
    border-color: var(--warning);
    animation: ringPulseAmber-b-7i7c6m5u1t 1s ease-in-out infinite;
}
.header-avatar-wrapper.loading .header-avatar-ring[b-7i7c6m5u1t]   {
    border-color: var(--accent);
    border-top-color: transparent;
    animation: spinRing-b-7i7c6m5u1t 0.9s linear infinite;
}
.header-avatar-wrapper.speaking .header-avatar-ring[b-7i7c6m5u1t]  {
    border-color: var(--primary);
    animation: speakWaveSmall-b-7i7c6m5u1t 0.8s ease-in-out infinite alternate;
}
.header-avatar-wrapper.error .header-avatar-ring[b-7i7c6m5u1t]     {
    border-color: var(--error);
    animation: errorFlash-b-7i7c6m5u1t 0.5s ease-in-out infinite;
}

/* Brand text */
.header-brand-text[b-7i7c6m5u1t] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-brand-name[b-7i7c6m5u1t] {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.01em;
}

.header-brand-status[b-7i7c6m5u1t] {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s;
}

.header-brand-status .status-dot[b-7i7c6m5u1t] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-3);
    transition: background 0.3s;
}

.header-brand-status.idle .status-dot[b-7i7c6m5u1t]     { background: var(--success); }
.header-brand-status.idle[b-7i7c6m5u1t]                 { color: var(--success); }
.header-brand-status.listening .status-dot[b-7i7c6m5u1t] { background: var(--success); animation: badgePulse-b-7i7c6m5u1t 1.5s infinite; }
.header-brand-status.listening[b-7i7c6m5u1t]            { color: var(--success); }
.header-brand-status.loading .status-dot[b-7i7c6m5u1t]  { background: var(--accent); animation: badgePulse-b-7i7c6m5u1t 1s infinite; }
.header-brand-status.loading[b-7i7c6m5u1t]              { color: var(--accent); }
.header-brand-status.thinking .status-dot[b-7i7c6m5u1t] { background: var(--warning); animation: badgePulse-b-7i7c6m5u1t 1s infinite; }
.header-brand-status.thinking[b-7i7c6m5u1t]             { color: var(--warning); }
.header-brand-status.speaking .status-dot[b-7i7c6m5u1t] { background: var(--primary); animation: badgePulse-b-7i7c6m5u1t 0.8s infinite; }
.header-brand-status.speaking[b-7i7c6m5u1t]             { color: var(--primary); }
.header-brand-status.error .status-dot[b-7i7c6m5u1t]    { background: var(--error); }
.header-brand-status.error[b-7i7c6m5u1t]                { color: var(--error); }

/* ─── User Menu ───────────────────────────────────────── */
.header-actions[b-7i7c6m5u1t] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.user-menu-wrapper[b-7i7c6m5u1t] {
    position: relative;
}

.user-menu-trigger[b-7i7c6m5u1t] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.75rem 0.45rem 0.45rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text-1);
    font-weight: 500;
}

.user-menu-trigger:hover[b-7i7c6m5u1t] {
    background: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.user-avatar-initials[b-7i7c6m5u1t] {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.user-name[b-7i7c6m5u1t] {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chevron[b-7i7c6m5u1t] {
    width: 14px;
    height: 14px;
    color: var(--text-3);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.chevron.open[b-7i7c6m5u1t] { transform: rotate(180deg); }

/* Dropdown */
.user-dropdown[b-7i7c6m5u1t] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    z-index: 200;
    animation: dropdownIn-b-7i7c6m5u1t 0.15s ease-out both;
}

@keyframes dropdownIn-b-7i7c6m5u1t {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-header[b-7i7c6m5u1t] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.75rem 0.5rem;
}

.dropdown-avatar[b-7i7c6m5u1t] {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-name[b-7i7c6m5u1t] {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.dropdown-role[b-7i7c6m5u1t] {
    font-size: 0.72rem;
    color: var(--text-3);
}

.dropdown-divider[b-7i7c6m5u1t] {
    height: 1px;
    background: var(--border);
    margin: 0.35rem 0;
}

.dropdown-item[b-7i7c6m5u1t] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-1);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.15s;
    text-align: left;
}

.dropdown-item:hover[b-7i7c6m5u1t] { background: var(--surface-2); }
.dropdown-item svg[b-7i7c6m5u1t] { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }
.dropdown-item.danger[b-7i7c6m5u1t] { color: var(--error); }
.dropdown-item.danger:hover[b-7i7c6m5u1t] { background: #fee2e2; }
.dropdown-item.danger svg[b-7i7c6m5u1t] { color: var(--error); }

/* ─── Body ────────────────────────────────────────────── */
.app-body[b-7i7c6m5u1t] {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

/* ─── Blazor Error UI (keep accessible) ──────────────── */
#blazor-error-ui[b-7i7c6m5u1t] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-7i7c6m5u1t] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ─── Header avatar keyframes ─────────────────────────── */
@keyframes breatheSmall-b-7i7c6m5u1t {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.04); }
}

@keyframes ringPulseGreen-b-7i7c6m5u1t {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

@keyframes ringPulseAmber-b-7i7c6m5u1t {
    0%, 100% { box-shadow: 0 0 6px rgba(245,158,11,0.3); }
    50%       { box-shadow: 0 0 14px rgba(245,158,11,0.6); }
}

@keyframes speakWaveSmall-b-7i7c6m5u1t {
    from { box-shadow: 0 0 4px rgba(79,70,229,0.3); }
    to   { box-shadow: 0 0 16px rgba(79,70,229,0.7); }
}

@keyframes spinRing-b-7i7c6m5u1t {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes errorFlash-b-7i7c6m5u1t {
    0%, 100% { box-shadow: 0 0 0 rgba(239,68,68,0); }
    50%       { box-shadow: 0 0 12px rgba(239,68,68,0.7); }
}

@keyframes badgePulse-b-7i7c6m5u1t {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}
/* _content/MicaSST.Web/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-3s8x9657nh] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-3s8x9657nh] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-3s8x9657nh] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-3s8x9657nh] {
    font-size: 1.1rem;
}

.bi[b-3s8x9657nh] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-3s8x9657nh] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-3s8x9657nh] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-3s8x9657nh] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-3s8x9657nh] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-3s8x9657nh] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-3s8x9657nh] {
        padding-bottom: 1rem;
    }

    .nav-item[b-3s8x9657nh]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-3s8x9657nh]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-3s8x9657nh]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-3s8x9657nh] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-3s8x9657nh] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-3s8x9657nh] {
        display: none;
    }

    .nav-scrollable[b-3s8x9657nh] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* _content/MicaSST.Web/Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-6kelni5q90],
.components-reconnect-repeated-attempt-visible[b-6kelni5q90],
.components-reconnect-failed-visible[b-6kelni5q90],
.components-pause-visible[b-6kelni5q90],
.components-resume-failed-visible[b-6kelni5q90],
.components-rejoining-animation[b-6kelni5q90] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-6kelni5q90],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-6kelni5q90],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-6kelni5q90],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-6kelni5q90],
#components-reconnect-modal.components-reconnect-retrying[b-6kelni5q90],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-6kelni5q90],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-6kelni5q90],
#components-reconnect-modal.components-reconnect-failed[b-6kelni5q90],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-6kelni5q90] {
    display: block;
}


#components-reconnect-modal[b-6kelni5q90] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-6kelni5q90 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-6kelni5q90 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-6kelni5q90 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-6kelni5q90]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-6kelni5q90 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-6kelni5q90 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-6kelni5q90 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-6kelni5q90 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-6kelni5q90] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-6kelni5q90] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-6kelni5q90] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-6kelni5q90] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-6kelni5q90] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-6kelni5q90] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-6kelni5q90] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-6kelni5q90 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-6kelni5q90] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-6kelni5q90 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* _content/MicaSST.Web/Components/Pages/ChatPage.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════
   ChatPage.razor.css — Scoped
═══════════════════════════════════════════════════════ */

/* ─── Three-column layout ─────────────────────────────── */
.chat-layout[b-r1fmcknjs2] {
    display: flex;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

/* ─── Chat main (center) ──────────────────────────────── */
.chat-main[b-r1fmcknjs2] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(160deg, #f0f4ff 0%, #f8fafc 100%);
}

/* ─── Message feed ────────────────────────────────────── */
.chat-feed[b-r1fmcknjs2] {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scroll-behavior: smooth;
}

.chat-feed[b-r1fmcknjs2]::-webkit-scrollbar { width: 5px; }
.chat-feed[b-r1fmcknjs2]::-webkit-scrollbar-track { background: transparent; }
.chat-feed[b-r1fmcknjs2]::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ─── Welcome screen ──────────────────────────────────── */
.welcome-screen[b-r1fmcknjs2] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: auto;
    max-width: 520px;
    padding: 2rem 1rem;
    animation: fadeIn-b-r1fmcknjs2 0.5s ease both;
}

@keyframes fadeIn-b-r1fmcknjs2 {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.welcome-avatar-pulse[b-r1fmcknjs2] {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 0 0 8px rgba(79,70,229,0.08), 0 0 0 16px rgba(79,70,229,0.04);
    margin-bottom: 1.5rem;
    animation: avatarPulseWelcome-b-r1fmcknjs2 3s ease-in-out infinite;
}

@keyframes avatarPulseWelcome-b-r1fmcknjs2 {
    0%, 100% { box-shadow: 0 0 0 8px rgba(79,70,229,0.08), 0 0 0 16px rgba(79,70,229,0.04); }
    50%       { box-shadow: 0 0 0 12px rgba(79,70,229,0.12), 0 0 0 24px rgba(79,70,229,0.06); }
}

.welcome-avatar-pulse img[b-r1fmcknjs2] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-screen h2[b-r1fmcknjs2] {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-1);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.welcome-sub[b-r1fmcknjs2] {
    font-size: 1rem;
    color: var(--text-2);
    margin: 0 0 0.5rem;
}

.welcome-hint[b-r1fmcknjs2] {
    font-size: 0.875rem;
    color: var(--text-3);
    line-height: 1.6;
    margin: 0 0 1.75rem;
}

/* Welcome chips */
.welcome-chips[b-r1fmcknjs2] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.chip[b-r1fmcknjs2] {
    padding: 0.55rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-1);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    white-space: nowrap;
}

.chip:hover[b-r1fmcknjs2] {
    background: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(79,70,229,0.15);
    transform: translateY(-1px);
}

/* ─── Message row ─────────────────────────────────────── */
.msg-row[b-r1fmcknjs2] {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    animation: msgIn-b-r1fmcknjs2 0.3s ease-out both;
    max-width: 85%;
}

@keyframes msgIn-b-r1fmcknjs2 {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.msg-row.user[b-r1fmcknjs2] {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-row.bot[b-r1fmcknjs2] {
    align-self: flex-start;
}

/* Avatar */
.msg-avatar[b-r1fmcknjs2] {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    flex-shrink: 0;
}

.msg-avatar img[b-r1fmcknjs2] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msg-avatar.user-initials[b-r1fmcknjs2] {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

/* Bubble group */
.msg-bubble-group[b-r1fmcknjs2] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

/* Bubble */
.msg-bubble[b-r1fmcknjs2] {
    padding: 0.875rem 1.15rem;
    border-radius: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.65;
    word-break: break-word;
    position: relative;
}

.user-bubble[b-r1fmcknjs2] {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: white;
    border-bottom-right-radius: 0.3rem;
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}

.bot-bubble[b-r1fmcknjs2] {
    background: var(--surface);
    color: var(--text-1);
    border-bottom-left-radius: 0.3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* Processing bubble */
.processing-bubble[b-r1fmcknjs2] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* ─── Typing dots ─────────────────────────────────────── */
.typing-dots[b-r1fmcknjs2] {
    display: flex;
    gap: 5px;
    align-items: center;
}

.typing-dots span[b-r1fmcknjs2] {
    width: 7px;
    height: 7px;
    background: var(--text-3);
    border-radius: 50%;
    animation: typingBounce-b-r1fmcknjs2 1.4s ease-in-out infinite both;
}

.typing-dots span:nth-child(1)[b-r1fmcknjs2] { animation-delay: -0.32s; }
.typing-dots span:nth-child(2)[b-r1fmcknjs2] { animation-delay: -0.16s; }

@keyframes typingBounce-b-r1fmcknjs2 {
    0%, 80%, 100% { transform: translateY(0) scale(0.7); opacity: 0.4; }
    40%            { transform: translateY(-5px) scale(1); opacity: 1; }
}

.processing-hint[b-r1fmcknjs2] {
    font-size: 0.75rem;
    color: var(--text-3);
    font-style: italic;
}

/* ─── Message meta (confidence + copy) ───────────────── */
.msg-meta[b-r1fmcknjs2] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Confidence indicator */
.confidence-indicator[b-r1fmcknjs2] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.confidence-bar-track[b-r1fmcknjs2] {
    width: 72px;
    height: 4px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.confidence-bar-fill[b-r1fmcknjs2] {
    height: 100%;
    border-radius: 99px;
    transition: width 0.8s ease-out;
}

.confidence-indicator.high .confidence-bar-fill[b-r1fmcknjs2]   { background: var(--success); }
.confidence-indicator.medium .confidence-bar-fill[b-r1fmcknjs2] { background: var(--warning); }
.confidence-indicator.low .confidence-bar-fill[b-r1fmcknjs2]    { background: var(--error); }

.confidence-text[b-r1fmcknjs2] {
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.confidence-indicator.high .confidence-text[b-r1fmcknjs2]   { color: #15803d; }
.confidence-indicator.medium .confidence-text[b-r1fmcknjs2] { color: #92400e; }
.confidence-indicator.low .confidence-text[b-r1fmcknjs2]    { color: #991b1b; }

/* Copy button */
.copy-btn[b-r1fmcknjs2] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface);
    color: var(--text-3);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.copy-btn:hover[b-r1fmcknjs2] {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.copy-btn svg[b-r1fmcknjs2] { width: 12px; height: 12px; }

/* Timestamp */
.msg-timestamp[b-r1fmcknjs2] {
    font-size: 0.65rem;
    color: var(--text-3);
    align-self: flex-end;
}

.msg-row.user .msg-timestamp[b-r1fmcknjs2] { align-self: flex-start; }

/* ─── Input area ──────────────────────────────────────── */
.chat-input-area[b-r1fmcknjs2] {
    padding: 1rem 2.5rem 1.25rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-wrapper[b-r1fmcknjs2] {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    background: var(--surface-2);
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 0.75rem 0.75rem 0.75rem 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within[b-r1fmcknjs2] {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.input-wrapper textarea[b-r1fmcknjs2] {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-1);
    line-height: 1.6;
    outline: none;
    max-height: 160px;
    overflow-y: auto;
    padding: 0;
}

.input-wrapper textarea[b-r1fmcknjs2]::placeholder { color: var(--text-3); }
.input-wrapper textarea:disabled[b-r1fmcknjs2] { opacity: 0.5; cursor: not-allowed; }

.input-actions[b-r1fmcknjs2] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.char-count[b-r1fmcknjs2] {
    font-size: 0.68rem;
    color: var(--text-3);
    white-space: nowrap;
}

.char-count.near-limit[b-r1fmcknjs2] { color: var(--error); }

/* Send button */
.send-btn[b-r1fmcknjs2] {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled)[b-r1fmcknjs2] {
    transform: scale(1.07);
    box-shadow: 0 6px 18px rgba(79,70,229,0.45);
}

.send-btn:active:not(:disabled)[b-r1fmcknjs2] { transform: scale(0.96); }
.send-btn:disabled[b-r1fmcknjs2] { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.send-btn svg[b-r1fmcknjs2] { width: 18px; height: 18px; }

/* Disclaimer */
.input-disclaimer[b-r1fmcknjs2] {
    font-size: 0.68rem;
    color: var(--text-3);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}
/* _content/MicaSST.Web/Components/Pages/Login.razor.rz.scp.css */
.login-card[b-dlwa0gwr20] {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    animation: slideUp-b-dlwa0gwr20 0.4s ease-out;
}

.login-header[b-dlwa0gwr20] {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1[b-dlwa0gwr20] {
    color: #4f46e5;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.login-header p[b-dlwa0gwr20] {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.form-group[b-dlwa0gwr20] {
    margin-bottom: 1.25rem;
}

.form-group label[b-dlwa0gwr20] {
    display: block;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-input[b-dlwa0gwr20] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-input:focus[b-dlwa0gwr20] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.error-message[b-dlwa0gwr20] {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.login-button[b-dlwa0gwr20] {
    width: 100%;
    padding: 0.85rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-button:hover:not(:disabled)[b-dlwa0gwr20] {
    background-color: #4338ca;
}

.login-button:active:not(:disabled)[b-dlwa0gwr20] {
    transform: scale(0.98);
}

.login-button:disabled[b-dlwa0gwr20] {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.spinner[b-dlwa0gwr20] {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin-b-dlwa0gwr20 0.6s linear infinite;
}

@keyframes spin-b-dlwa0gwr20 {
    to { transform: rotate(360deg); }
}

@keyframes slideUp-b-dlwa0gwr20 {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo[b-dlwa0gwr20] {
    display: block;
    margin: 0 auto 1.5rem auto;
    max-width: 120px;
    width: 100%;
    height: auto;
}
/* _content/MicaSST.Web/Components/SourcesPanel.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════
   SourcesPanel.razor.css — Scoped
═══════════════════════════════════════════════════════ */

.sources-panel[b-u8iijvl4ip] {
    width: 260px;
    min-width: 260px;
    height: 100%;
    background: var(--surface);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.25s ease, min-width 0.25s ease;
    position: relative;
}

/* Collapsed */
.sources-panel.collapsed[b-u8iijvl4ip] {
    width: 0;
    min-width: 0;
    border-left: none;
}

.sources-panel.collapsed .sources-header[b-u8iijvl4ip],
.sources-panel.collapsed .sources-empty[b-u8iijvl4ip],
.sources-panel.collapsed .sources-count[b-u8iijvl4ip],
.sources-panel.collapsed .sources-list[b-u8iijvl4ip] {
    opacity: 0;
    pointer-events: none;
}

.sources-panel.collapsed .expand-btn[b-u8iijvl4ip] { display: flex; }

/* ─── Header ──────────────────────────────────────────── */
.sources-header[b-u8iijvl4ip] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.75rem 0.5rem;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.sources-title[b-u8iijvl4ip] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.sources-title svg[b-u8iijvl4ip] { width: 14px; height: 14px; color: var(--text-3); }

/* ─── Count ───────────────────────────────────────────── */
.sources-count[b-u8iijvl4ip] {
    font-size: 0.72rem;
    color: var(--text-3);
    padding: 0 0.75rem 0.5rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

/* ─── Empty state ─────────────────────────────────────── */
.sources-empty[b-u8iijvl4ip] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-3);
    transition: opacity 0.2s;
}

.sources-empty svg[b-u8iijvl4ip] { width: 40px; height: 40px; opacity: 0.35; }

.sources-empty p[b-u8iijvl4ip] {
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.5;
}

/* ─── Sources list ────────────────────────────────────── */
.sources-list[b-u8iijvl4ip] {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: opacity 0.2s;
}

.sources-list[b-u8iijvl4ip]::-webkit-scrollbar { width: 4px; }
.sources-list[b-u8iijvl4ip]::-webkit-scrollbar-track { background: transparent; }
.sources-list[b-u8iijvl4ip]::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ─── Source card ─────────────────────────────────────── */
.source-card[b-u8iijvl4ip] {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    animation: sourceCardIn-b-u8iijvl4ip 0.3s ease-out both;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.source-card:hover[b-u8iijvl4ip] {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

@keyframes sourceCardIn-b-u8iijvl4ip {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Card header */
.source-card-header[b-u8iijvl4ip] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.source-icon[b-u8iijvl4ip] {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 0.45rem;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.source-icon svg[b-u8iijvl4ip] { width: 14px; height: 14px; color: var(--primary); }

.source-title[b-u8iijvl4ip] {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Meta row */
.source-meta[b-u8iijvl4ip] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.source-page[b-u8iijvl4ip] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.73rem;
    color: var(--text-3);
}

.source-page svg[b-u8iijvl4ip] { width: 12px; height: 12px; }

/* Relevance chip */
.source-relevance[b-u8iijvl4ip] {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 99px;
}

.source-relevance.high[b-u8iijvl4ip]   { background: #dcfce7; color: #15803d; }
.source-relevance.medium[b-u8iijvl4ip] { background: #fef3c7; color: #92400e; }
.source-relevance.low[b-u8iijvl4ip]    { background: #fee2e2; color: #991b1b; }

/* Relevance bar */
.relevance-bar-track[b-u8iijvl4ip] {
    height: 3px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.relevance-bar-fill[b-u8iijvl4ip] {
    height: 100%;
    border-radius: 99px;
    transition: width 0.6s ease-out;
}

.relevance-bar-fill.high[b-u8iijvl4ip]   { background: var(--success); }
.relevance-bar-fill.medium[b-u8iijvl4ip] { background: var(--warning); }
.relevance-bar-fill.low[b-u8iijvl4ip]    { background: var(--error); }

/* External link */
.source-link[b-u8iijvl4ip] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.73rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.15s;
}

.source-link:hover[b-u8iijvl4ip] { gap: 0.5rem; text-decoration: underline; }
.source-link svg[b-u8iijvl4ip]   { width: 12px; height: 12px; flex-shrink: 0; }

/* ─── Icon button ─────────────────────────────────────── */
.icon-btn[b-u8iijvl4ip] {
    width: 28px;
    height: 28px;
    border-radius: 0.45rem;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    transition: background 0.15s, color 0.15s;
}

.icon-btn:hover[b-u8iijvl4ip] { background: var(--surface-2); color: var(--text-1); }
.icon-btn svg[b-u8iijvl4ip]   { width: 16px; height: 16px; }

/* ─── Expand button ───────────────────────────────────── */
.expand-btn[b-u8iijvl4ip] {
    display: none;
    position: absolute;
    top: 50%;
    left: -16px;
    transform: translateY(-50%);
    z-index: 10;
    width: 24px;
    height: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 0.5rem 0 0 0.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
}

.expand-btn svg[b-u8iijvl4ip] { width: 14px; height: 14px; }
