/* _content/Infomatik.Unif.Serrentis/Pages/AI/BiChatPage.razor.rz.scp.css */
/* Shell */
.bi-chat-shell[b-ly799l18ot] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    background: #fff7f0; /* light orange */
    height: 100%;
    margin-top: 0px;
    margin-left: -20px;
    margin-right: -24px;
}

.bi-chat-header[b-ly799l18ot] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Content area */
.bi-chat-content[b-ly799l18ot] { flex: 11 auto; overflow: auto; padding: 24px 16px; }

.messages[b-ly799l18ot] { display: flex; flex-direction: column; gap: 18px; max-width: 900px; margin: 0 auto; }

.message[b-ly799l18ot] { display: flex; flex-direction: column; gap: 6px; }

/* Headers */
.msg-header[b-ly799l18ot] { display: flex; align-items: center; gap: 8px; color: #6b4e3b; font-weight: 600; }
.sender[b-ly799l18ot] { margin-right: 8px; }
.time[b-ly799l18ot] { font-weight: 400; opacity: 0.65; font-size: 12px; }
/* Align headers with their respective bubbles */
.message.agent .msg-header[b-ly799l18ot] { align-self: flex-start; max-width: 80%; }
.message.user .msg-header[b-ly799l18ot] { align-self: flex-end; max-width: 80%; justify-content: flex-end; text-align: right; }

.avatar48[b-ly799l18ot], .user-avatar[b-ly799l18ot] { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.user-avatar[b-ly799l18ot] { background: #333; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.user-avatar .initial[b-ly799l18ot] { font-size: 18px; }
/* Bubbles: no fat borders, subtle shadow like Claude */
.bubble[b-ly799l18ot] {
    max-width: 80%;
    border-radius: 14px;
    padding: 12px 14px; /* slightly tighter */
    background: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin: 6px 6px 0; /* spacing instead of thick border */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.message.agent .bubble[b-ly799l18ot] {
    background: #ffeddc; /* soft peach */
    border-color: rgba(255, 145, 77, 0.25);
    align-self: flex-start;
}

.message.user .bubble[b-ly799l18ot] {
    background: #ffffff; /* clean white for user */
    border-color: rgba(0, 0, 0, 0.10);
    align-self: flex-end;
}

/* Compact, readable content inside bubbles */
.bubble-content[b-ly799l18ot] {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    white-space: normal; /* let HTML flow naturally */
    line-height: 1.35; /* tighter than before */
}

/* Smaller headings inside messages */
.bubble-content h1[b-ly799l18ot] { font-size: 1.15rem; line-height: 1.2; margin: 6px 0 8px; font-weight: 700; }
.bubble-content h2[b-ly799l18ot] { font-size: 1.05rem; line-height: 1.2; margin: 6px 0 6px; font-weight: 650; }
.bubble-content h3[b-ly799l18ot] { font-size: 1.0rem; line-height: 1.2; margin: 4px 0 4px; font-weight: 600; }

.bubble-content p[b-ly799l18ot] { margin: 6px 0; }
.bubble-content ul[b-ly799l18ot], .bubble-content ol[b-ly799l18ot] { margin: 6px 0; padding-left: 18px; }
.bubble-content li[b-ly799l18ot] { margin: 2px 0; }

/* Table styling: white background with clear grid lines */
.bubble-content table[b-ly799l18ot] { 
 width:100%; 
 border-collapse: collapse; 
 background:#fff; 
 border:1px solid #ddd; 
 border-radius:8px; 
 overflow:hidden; 
}
.bubble-content th[b-ly799l18ot], .bubble-content td[b-ly799l18ot] { 
 border:1px solid #ddd; 
 padding:8px10px; 
 text-align:left; 
}
.bubble-content th[b-ly799l18ot] { 
 background:#f5f5f5; 
 font-weight:600; 
}

/* Keep monospace and preserved whitespace only for code blocks */
.bubble-content code[b-ly799l18ot], .bubble-content pre[b-ly799l18ot], .mono[b-ly799l18ot] {
 font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.bubble-content code[b-ly799l18ot] { background: rgba(0,0,0,0.04); padding:1px4px; border-radius:4px; }
.bubble-content pre[b-ly799l18ot] {
 white-space: pre; /* typical code behavior */
 background: rgba(0,0,0,0.04);
 border-radius:8px;
 padding:8px10px;
 margin:8px0;
 overflow: auto;
}

/* Input */
.bi-chat-input[b-ly799l18ot] { padding:8px16px; border-top:1px solid rgba(0,0,0,0.06); background: #fff7f0; position: sticky; bottom:0; }

.input-inner[b-ly799l18ot] { display: flex; gap:8px; align-items: center; max-width:900px; margin:0 auto; }
/* large text box */
.query-input[b-ly799l18ot] { flex:11 auto; min-height:56px; max-height:180px; border-radius:12px; padding:14px16px; line-height:1.3; }
/* small outline icon button same height as input */
.send-btn[b-ly799l18ot] { height:56px; width:56px; padding:0; border-radius:12px; display: flex; align-items: center; justify-content: center; }
.icon-only .b-button[b-ly799l18ot] { padding:0; }

.empty-state[b-ly799l18ot] { text-align: center; color: #666; padding:32px0; }
/* _content/Infomatik.Unif.Serrentis/Pages/Container/ContainerSizeSelectorComponent.razor.rz.scp.css */
/* _content/Infomatik.Unif.Serrentis/Shared/MainLayout.razor.rz.scp.css */
.page[b-xv3i5gg78r] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-xv3i5gg78r] {
    flex: 1;
}

.sidebar[b-xv3i5gg78r] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-xv3i5gg78r] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-xv3i5gg78r]  a, .top-row .btn-link[b-xv3i5gg78r] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-xv3i5gg78r] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-xv3i5gg78r] {
        display: none;
    }

    .top-row.auth[b-xv3i5gg78r] {
        justify-content: space-between;
    }

    .top-row a[b-xv3i5gg78r], .top-row .btn-link[b-xv3i5gg78r] {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-xv3i5gg78r] {
        flex-direction: row;
    }

    .sidebar[b-xv3i5gg78r] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-xv3i5gg78r] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-xv3i5gg78r], article[b-xv3i5gg78r] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
