/* _content/Bob.Web/Components/Layout/AdminLayout.razor.rz.scp.css */
/* ── App shell ─────────────────────────────────────── */
.app-shell[b-b3gi4s67r3] {
    display: flex;
    flex: 1;
    min-height: 0;
    height: 100vh;
    overflow: hidden;
}

/* ── Sidebar ──────────────────────────────────────── */
.sidebar[b-b3gi4s67r3] {
    width: 220px;
    flex-shrink: 0;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.875rem;
    gap: 0.375rem;
    overflow: hidden;
}

.sidebar-brand[b-b3gi4s67r3] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.5rem;
}

.berkley-logo[b-b3gi4s67r3] {
    width: 120px;
    border-radius: 8px;
    background: white;
    padding: 5px 12px;
    display: block;
}

.sidebar-bob-label[b-b3gi4s67r3] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.1rem 0.25rem 0.6rem;
    margin-bottom: 0.25rem;
}

.bob-icon[b-b3gi4s67r3] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.logo-name[b-b3gi4s67r3] {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.01em;
}

.nav-new-chat[b-b3gi4s67r3] {
    display: block;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 0.55rem 0.875rem;
    font-size: 0.875rem;
    text-decoration: none;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.nav-new-chat:hover[b-b3gi4s67r3] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

.sidebar-section-label[b-b3gi4s67r3] {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #475569;
    padding: 0.9rem 0.25rem 0.3rem;
}

.sidebar-spacer[b-b3gi4s67r3] { flex: 1; }

.sidebar-user[b-b3gi4s67r3] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-name[b-b3gi4s67r3] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}
.btn-logout[b-b3gi4s67r3] {
    margin-left: auto;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 0.75rem;
    padding: 3px 9px;
    cursor: pointer;
}

.btn-logout:hover[b-b3gi4s67r3] { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ── Main area ────────────────────────────────────── */
.main-area[b-b3gi4s67r3] {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    background: #f8fafc;
    padding: 28px 32px;
}
/* _content/Bob.Web/Components/Layout/MainLayout.razor.rz.scp.css */
.layout-full[b-0vcnbv1g11] {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
/* _content/Bob.Web/Components/Pages/Home.razor.rz.scp.css */
/* ── App shell ────────────────────────────────────────
   Fills the space provided by .layout-full (flex column, 100vh).
   flex:1 + min-height:0 lets it grow and shrink properly.
   ─────────────────────────────────────────────────── */
.app-shell[b-vsvbj2j5uq] {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ── Sidebar ──────────────────────────────────────── */
.sidebar[b-vsvbj2j5uq] {
    width: 220px;
    flex-shrink: 0;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.875rem;
    gap: 0.375rem;
    overflow: hidden;
}

.sidebar-brand[b-vsvbj2j5uq] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.5rem;
}

.berkley-logo[b-vsvbj2j5uq] {
    width: 120px;
    border-radius: 8px;
    background: white;
    padding: 5px 12px;
    display: block;
}

.sidebar-bob-label[b-vsvbj2j5uq] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.1rem 0.25rem 0.6rem;
    margin-bottom: 0.25rem;
}

.bob-icon[b-vsvbj2j5uq] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.logo-name[b-vsvbj2j5uq] {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.01em;
}

.nav-new-chat[b-vsvbj2j5uq] {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 0.55rem 0.875rem;
    font-size: 0.875rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s;
    width: 100%;
}

.nav-new-chat:hover:not(:disabled)[b-vsvbj2j5uq] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

.nav-new-chat:disabled[b-vsvbj2j5uq] {
    opacity: 0.35;
    cursor: not-allowed;
}

.sidebar-section-label[b-vsvbj2j5uq] {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #475569;
    padding: 0.9rem 0.25rem 0.3rem;
}

.sidebar-model[b-vsvbj2j5uq] {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    width: 100%;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

.sidebar-model:focus[b-vsvbj2j5uq] {
    border-color: rgba(255, 255, 255, 0.25);
}

.sidebar-model:disabled[b-vsvbj2j5uq] {
    opacity: 0.35;
    cursor: not-allowed;
}

.sidebar-model option[b-vsvbj2j5uq] {
    background: #1a1a2e;
    color: #e2e8f0;
}

.sidebar-spacer[b-vsvbj2j5uq] {
    flex: 1;
}

.sidebar-user[b-vsvbj2j5uq] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar-sm[b-vsvbj2j5uq] {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.user-name[b-vsvbj2j5uq] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}
.btn-logout[b-vsvbj2j5uq] {
    margin-left: auto;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 0.75rem;
    padding: 3px 9px;
    cursor: pointer;
}

.btn-logout:hover[b-vsvbj2j5uq] { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ── Main area ────────────────────────────────────── */
.main-area[b-vsvbj2j5uq] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #f3f3ef;
    background-image:
        radial-gradient(ellipse at 15% 15%, rgba(196, 172, 255, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 78%, rgba(150, 208, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 62% 18%, rgba(255, 190, 170, 0.18) 0%, transparent 40%);
    overflow: hidden;
}

/* ── Hero / empty state ───────────────────────────── */
.hero[b-vsvbj2j5uq] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 4rem;
    gap: 0.5rem;
}

.hero-title[b-vsvbj2j5uq] {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.03em;
    margin: 0;
}

.hero-subtitle[b-vsvbj2j5uq] {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 1.75rem;
}

/* ── Prompt block (white card — hero + chat) ──────── */
.prompt-block[b-vsvbj2j5uq] {
    width: 100%;
    max-width: 680px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.09), 0 1px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prompt-block textarea[b-vsvbj2j5uq] {
    border: none;
    outline: none;
    resize: none;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    line-height: 1.6;
    width: 100%;
    background: transparent;
    min-height: 52px;
    max-height: 200px;
    overflow-y: auto;
}

.prompt-block textarea[b-vsvbj2j5uq]::placeholder {
    color: #94a3b8;
}

.prompt-actions[b-vsvbj2j5uq] {
    display: flex;
    justify-content: flex-end;
}

.btn-send[b-vsvbj2j5uq] {
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1.3rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-send:hover:not(:disabled)[b-vsvbj2j5uq] {
    background: #0f3460;
}

.btn-send:disabled[b-vsvbj2j5uq] {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-cancel[b-vsvbj2j5uq] {
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1.3rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-cancel:hover[b-vsvbj2j5uq] {
    background: #b91c1c;
}

/* ── Messages area ────────────────────────────────── */
.messages-area[b-vsvbj2j5uq] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.5rem 2rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message[b-vsvbj2j5uq] {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.message.user[b-vsvbj2j5uq] {
    justify-content: flex-end;
}

.message.assistant[b-vsvbj2j5uq] {
    justify-content: flex-start;
}

.msg-avatar[b-vsvbj2j5uq] {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Wraps the assistant bubble + copy button as a column */
.bubble-wrap[b-vsvbj2j5uq] {
    max-width: 92%;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* bubble fills full wrapper width */
}

.bubble-wrap .bubble[b-vsvbj2j5uq] {
    max-width: 100%;
    width: 100%;
    overflow-x: auto; /* tables scroll horizontally if needed */
}

.bubble[b-vsvbj2j5uq] {
    max-width: 72%;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    font-size: 0.93rem;
    line-height: 1.75;
    word-break: break-word;
}

/* ── Copy button ─────────────────────────────── */
.copy-btn[b-vsvbj2j5uq] {
    align-self: flex-end;
    margin-top: 4px;
    padding: 2px 10px;
    font-size: 0.72rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s, border-color 0.15s;
}

.bubble-wrap:hover .copy-btn[b-vsvbj2j5uq] {
    opacity: 1;
}

.copy-btn:hover[b-vsvbj2j5uq] {
    color: #475569;
    border-color: #cbd5e1;
}

.message.user .bubble[b-vsvbj2j5uq] {
    background: #1a1a2e;
    color: #f1f5f9;
    border-bottom-right-radius: 4px;
}

.message.assistant .bubble[b-vsvbj2j5uq] {
    background: #ffffff;
    color: #1e293b;
    border-bottom-left-radius: 4px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ── Thinking indicator ───────────────────────────── */
.thinking[b-vsvbj2j5uq] {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.875rem;
}

.thinking .dots[b-vsvbj2j5uq]::after {
    content: '';
    display: inline-block;
    animation: dots-b-vsvbj2j5uq 1.4s infinite;
}

@keyframes dots-b-vsvbj2j5uq {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

/* ── Streaming cursor ─────────────────────────────── */
.streaming-cursor[b-vsvbj2j5uq] {
    display: inline;
    color: #1a1a2e;
    animation: cursor-blink-b-vsvbj2j5uq 0.7s step-end infinite;
    font-size: 1em;
    margin-left: 1px;
}

@keyframes cursor-blink-b-vsvbj2j5uq {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Input dock (bottom of chat state) ───────────── */
.input-dock[b-vsvbj2j5uq] {
    padding: 0.875rem 2rem 1.25rem;
    display: flex;
    justify-content: center;
}

.input-dock .prompt-block[b-vsvbj2j5uq] {
    max-width: 680px;
}

/* ── Markdown in assistant bubbles ───────────────── */
.message.assistant .bubble p[b-vsvbj2j5uq] { margin: 0 0 0.8rem; }
.message.assistant .bubble p:last-child[b-vsvbj2j5uq] { margin-bottom: 0; }
.message.assistant .bubble ul[b-vsvbj2j5uq],
.message.assistant .bubble ol[b-vsvbj2j5uq] { margin: 0.4rem 0 0.8rem 1.5rem; padding: 0; }
.message.assistant .bubble li[b-vsvbj2j5uq] { margin-bottom: 0.4rem; }
.message.assistant .bubble strong[b-vsvbj2j5uq] { font-weight: 600; }
.message.assistant .bubble h1[b-vsvbj2j5uq],
.message.assistant .bubble h2[b-vsvbj2j5uq],
.message.assistant .bubble h3[b-vsvbj2j5uq] {
    margin: 0.75rem 0 0.4rem;
    font-weight: 700;
    color: #1a1a2e;
}
.message.assistant .bubble h1[b-vsvbj2j5uq] { font-size: 1.2rem; }
.message.assistant .bubble h2[b-vsvbj2j5uq] { font-size: 1.05rem; }
.message.assistant .bubble h3[b-vsvbj2j5uq] { font-size: 0.95rem; }
.message.assistant .bubble code[b-vsvbj2j5uq] {
    background: #f1f5f9;
    border-radius: 4px;
    padding: 0.15em 0.4em;
    font-size: 0.88em;
    font-family: 'Consolas', 'Courier New', monospace;
}
.message.assistant .bubble pre[b-vsvbj2j5uq] {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 0.875rem 1.125rem;
    overflow-x: auto;
    margin: 0.6rem 0;
    font-size: 0.85rem;
    line-height: 1.6;
}
.message.assistant .bubble pre code[b-vsvbj2j5uq] { background: transparent; padding: 0; }

/* ── Data table (grid) ────────────────────────────── */
.message.assistant .bubble table[b-vsvbj2j5uq] {
    border-collapse: collapse;
    width: max-content;    /* grow to natural column widths */
    min-width: 100%;       /* but at least fill the bubble */
    margin: 0.75rem 0 0.25rem;
    font-size: 0.88rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.message.assistant .bubble th[b-vsvbj2j5uq] {
    background: #1a1a2e;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.65rem 1.1rem;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid #0f3460;
}
.message.assistant .bubble td[b-vsvbj2j5uq] {
    padding: 0.6rem 1.1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    text-align: left;
}
.message.assistant .bubble tr:last-child td[b-vsvbj2j5uq] { border-bottom: none; }
.message.assistant .bubble tr:nth-child(odd)  td[b-vsvbj2j5uq] { background: #ffffff; }
.message.assistant .bubble tr:nth-child(even) td[b-vsvbj2j5uq] { background: #f8fafc; }
.message.assistant .bubble tbody tr:hover td[b-vsvbj2j5uq]  { background: #eef2ff; transition: background 0.1s; }
