/* _content/DocAssist/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-jx5mk768rd] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-jx5mk768rd] {
    flex: 1;
}

.sidebar[b-jx5mk768rd] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-jx5mk768rd] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-jx5mk768rd]  a, .top-row[b-jx5mk768rd]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-jx5mk768rd]  a:hover, .top-row[b-jx5mk768rd]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-jx5mk768rd]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-jx5mk768rd] {
        justify-content: space-between;
    }

    .top-row[b-jx5mk768rd]  a, .top-row[b-jx5mk768rd]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-jx5mk768rd] {
        flex-direction: row;
    }

    .sidebar[b-jx5mk768rd] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-jx5mk768rd] {
        position: sticky;
        top: 0;
    }

    .top-row.auth[b-jx5mk768rd]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-jx5mk768rd], article[b-jx5mk768rd] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-jx5mk768rd] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-jx5mk768rd] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/DocAssist/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-egvlrtr2p9] {
    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-egvlrtr2p9] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-egvlrtr2p9] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-egvlrtr2p9] {
    font-size: 1.1rem;
}

.nav-item[b-egvlrtr2p9] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-egvlrtr2p9] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-egvlrtr2p9] {
        padding-bottom: 1rem;
    }

    .nav-item[b-egvlrtr2p9]  .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-egvlrtr2p9]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-egvlrtr2p9]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-egvlrtr2p9] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-egvlrtr2p9] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-egvlrtr2p9] {
        display: none;
    }

    .nav-scrollable[b-egvlrtr2p9] {
        /* 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/DocAssist/Components/Pages/Assistant.razor.rz.scp.css */
/* Assistant.razor scoped CSS - Chat Interface */

.assistant-header[b-coj39m1n5o] {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.assistant-title[b-coj39m1n5o] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1b6ec2;
    display: flex;
    align-items: center;
}

.assistant-title i[b-coj39m1n5o] {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.header-right[b-coj39m1n5o] {
    display: flex;
    align-items: center;
}

.workspace-selector-container[b-coj39m1n5o] {
    min-width: 200px;
}

.loading-workspaces[b-coj39m1n5o], .no-workspaces[b-coj39m1n5o] {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.workspace-dropdown-btn[b-coj39m1n5o] {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    transition: all 0.2s ease;
}

.workspace-dropdown-btn:hover[b-coj39m1n5o] {
    border-color: #1b6ec2;
    color: #1b6ec2;
}

.workspace-dropdown-menu[b-coj39m1n5o] {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
}

.workspace-item[b-coj39m1n5o] {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f8f9fa;
}

.workspace-item:last-child[b-coj39m1n5o] {
    border-bottom: none;
}

.workspace-name[b-coj39m1n5o] {
    font-weight: 500;
    color: #212529;
}

.workspace-description[b-coj39m1n5o] {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.settings-btn[b-coj39m1n5o] {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    transition: all 0.2s ease;
}

.settings-btn:hover[b-coj39m1n5o] {
    border-color: #1b6ec2;
    color: #1b6ec2;
}

.settings-dropdown[b-coj39m1n5o] {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
}

.chat-messages[b-coj39m1n5o] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

.message-container[b-coj39m1n5o] {
    margin-bottom: 1.5rem;
    display: flex;
}

.user-message[b-coj39m1n5o] {
    justify-content: flex-end;
}

.assistant-message[b-coj39m1n5o] {
    justify-content: flex-start;
}

.message-bubble[b-coj39m1n5o] {
    max-width: 70%;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    animation: messageSlideIn-b-coj39m1n5o 0.3s ease-out;
}

.user-message .message-bubble[b-coj39m1n5o] {
    background: #1b6ec2;
    color: white;
    border-bottom-right-radius: 4px;
}

.assistant-message .message-bubble[b-coj39m1n5o] {
    background: white;
    color: #212529;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 4px;
}

.message-bubble.loading[b-coj39m1n5o] {
    background: #e9ecef;
    color: #6c757d;
}

.message-header[b-coj39m1n5o] {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.message-header i[b-coj39m1n5o] {
    margin-right: 0.5rem;
}

.message-role[b-coj39m1n5o] {
    font-weight: 600;
    margin-right: auto;
}

.message-time[b-coj39m1n5o] {
    font-size: 0.7rem;
    opacity: 0.6;
}

.message-content[b-coj39m1n5o] {
    line-height: 1.5;
}

.message-content p[b-coj39m1n5o] {
    margin-bottom: 0.5rem;
}

.message-content p:last-child[b-coj39m1n5o] {
    margin-bottom: 0;
}

.streaming-text[b-coj39m1n5o] {
    animation: textAppear-b-coj39m1n5o 0.1s ease-in-out;
}

.typing-indicator[b-coj39m1n5o] {
    animation: blink-b-coj39m1n5o 1s infinite;
    color: #1b6ec2;
    font-weight: bold;
}

.typing-animation[b-coj39m1n5o] {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
}

.typing-animation span[b-coj39m1n5o] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6c757d;
    margin: 0 2px;
    animation: typingBounce-b-coj39m1n5o 1.4s infinite ease-in-out;
}

.typing-animation span:nth-child(1)[b-coj39m1n5o] { animation-delay: -0.32s; }
.typing-animation span:nth-child(2)[b-coj39m1n5o] { animation-delay: -0.16s; }
.typing-animation span:nth-child(3)[b-coj39m1n5o] { animation-delay: 0s; }

.loading-text[b-coj39m1n5o] {
    color: #6c757d;
    font-style: italic;
}

.chat-input-container[b-coj39m1n5o] {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    flex-shrink: 0;
}

.input-warning[b-coj39m1n5o] {
    background: #fff3cd;
    color: #856404;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #ffeaa7;
}

.input-wrapper[b-coj39m1n5o] {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem;
    transition: border-color 0.2s ease;
}

.input-wrapper:focus-within[b-coj39m1n5o] {
    border-color: #1b6ec2;
    background: white;
}

.message-input[b-coj39m1n5o] {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    font-size: 1rem;
    line-height: 1.4;
    max-height: 120px;
    min-height: 24px;
}

.message-input[b-coj39m1n5o]::placeholder {
    color: #6c757d;
}

.input-actions[b-coj39m1n5o] {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.example-btn[b-coj39m1n5o] {
    border-radius: 8px;
    padding: 0.375rem 0.5rem;
    border: 1px solid #dee2e6;
    background: white;
}

.example-btn:hover[b-coj39m1n5o] {
    color: #1b6ec2;
    border-color: #1b6ec2;
}

.send-btn[b-coj39m1n5o] {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    background: #1b6ec2;
    border: 1px solid #1b6ec2;
    color: white;
    transition: all 0.2s ease;
}

.send-btn:hover:not(:disabled)[b-coj39m1n5o] {
    background: #155a99;
    border-color: #155a99;
    transform: translateY(-1px);
}

.send-btn:disabled[b-coj39m1n5o] {
    opacity: 0.6;
    cursor: not-allowed;
}

.selected-count[b-coj39m1n5o] {
    font-weight: 500;
}

/* Document links styling */
.message-content a[b-coj39m1n5o] {
    background: rgba(27, 110, 194, 0.1);
    color: #1b6ec2;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(27, 110, 194, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
    margin: 0.125rem;
}

.message-content a:hover[b-coj39m1n5o] {
    background: rgba(27, 110, 194, 0.2);
    border-color: #1b6ec2;
    transform: translateY(-1px);
}

/* Animations */
@keyframes messageSlideIn-b-coj39m1n5o {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textAppear-b-coj39m1n5o {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes blink-b-coj39m1n5o {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes typingBounce-b-coj39m1n5o {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .assistant-header[b-coj39m1n5o] {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .assistant-title[b-coj39m1n5o] {
        font-size: 1.25rem;
    }

    .header-right[b-coj39m1n5o] {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .workspace-selector-container[b-coj39m1n5o] {
        min-width: auto;
        flex: 1;
    }

    .workspace-dropdown-btn[b-coj39m1n5o] {
        width: 100%;
        justify-content: space-between;
    }

    .message-bubble[b-coj39m1n5o] {
        max-width: 85%;
        padding: 0.75rem;
    }

    .chat-input-container[b-coj39m1n5o] {
        padding: 0.75rem 1rem;
    }

    .input-wrapper[b-coj39m1n5o] {
        padding: 0.5rem;
    }

    .chat-messages[b-coj39m1n5o] {
        max-height: calc(100vh - 250px);
    }
}

@media (max-width: 480px) {
    .message-bubble[b-coj39m1n5o] {
        max-width: 95%;
    }
    
    .assistant-header[b-coj39m1n5o] {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-right[b-coj39m1n5o] {
        justify-content: space-between;
        width: 100%;
    }
}
