/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-hvyv4d70sy] {
    position: relative;
    display: flex;
    flex-direction: column;
}

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

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

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

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

    .top-row[b-hvyv4d70sy]  a:hover, .top-row[b-hvyv4d70sy]  .btn-link:hover {
        text-decoration: underline;
    }

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

@media (max-width: 640.98px) {
    .top-row[b-hvyv4d70sy] {
        justify-content: space-between;
    }

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

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

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

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

    .top-row.auth[b-hvyv4d70sy]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

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

#blazor-error-ui[b-hvyv4d70sy] {
    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 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-hvyv4d70sy] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-g43gf4ouvq] {
    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-g43gf4ouvq] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-g43gf4ouvq] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-g43gf4ouvq] {
    font-size: 1.1rem;
}

.bi[b-g43gf4ouvq] {
    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-g43gf4ouvq] {
    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-chat-fill-nav-menu[b-g43gf4ouvq] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-chat-fill' viewBox='0 0 16 16'%3E%3Cpath d='M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9.06 9.06 0 0 0 8 15z'/%3E%3C/svg%3E");
}
.bi-person-fill-nav-menu[b-g43gf4ouvq] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/%3E%3C/svg%3E");
}

.bi-bug-fill-nav-menu[b-g43gf4ouvq] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-bug-fill' viewBox='0 0 16 16'%3E%3Cpath d='M4.978.855a.5.5 0 1 0-.956.29l.41 1.352A4.985 4.985 0 0 0 3 6h10a4.985 4.985 0 0 0-1.432-3.503l.41-1.352a.5.5 0 1 0-.956-.29l-.291.956A4.978 4.978 0 0 0 8 1a4.979 4.979 0 0 0-2.731.811l-.291-.956z'/%3E%3Cpath d='M13 6v1H8.5v8.975A5 5 0 0 0 13 11h.5a.5.5 0 0 1 .5.5v.5a.5.5 0 1 1-1 0v-.5a4 4 0 0 1-3.5 3.97V16h-.5v-.03A4 4 0 0 1 5.5 12.5v.5a.5.5 0 1 1-1 0v-.5a.5.5 0 0 1 .5-.5H5a5 5 0 0 0 4.5 4.975V7H3V6h10z'/%3E%3C/svg%3E");
}

.bi-gear-fill-nav-menu[b-g43gf4ouvq] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-gear-fill' viewBox='0 0 16 16'%3E%3Cpath d='M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z'/%3E%3C/svg%3E");
}
.nav-item[b-g43gf4ouvq] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-g43gf4ouvq] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-g43gf4ouvq] {
        padding-bottom: 1rem;
    }

    .nav-item[b-g43gf4ouvq]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
        white-space: nowrap;
            /* Prevent text wrapping */
            overflow: hidden;
            /* Hide overflow if needed */
            text-overflow: ellipsis;
            /* Show ... for very long text */
    }

.nav-item[b-g43gf4ouvq]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-g43gf4ouvq]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-g43gf4ouvq] {
    display: none;
    min-width: 200px;
        /* Ensure minimum width for navigation */
        width: 200px;
        /* Fixed width to prevent shrinking */
}

.navbar-toggler:checked ~ .nav-scrollable[b-g43gf4ouvq] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-g43gf4ouvq] {
        display: none;
    }

    .nav-scrollable[b-g43gf4ouvq] {
        /* Never collapse the sidebar for wide screens */
        display: block;
        min-width: 200px;
            /* Ensure minimum width for navigation */
            width: 200px;
            /* Fixed width to prevent shrinking */

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Pages/Chat.razor.rz.scp.css */
.chat-container[b-srn2xerz7w] {
    display: flex;
    flex-direction: column;
    height: 70vh;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.chat-messages[b-srn2xerz7w] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
}

.message[b-srn2xerz7w] {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.user-message[b-srn2xerz7w] {
    align-items: flex-end;
}

.ai-message[b-srn2xerz7w] {
    align-items: flex-start;
}

.message-content[b-srn2xerz7w] {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    word-wrap: break-word;
    white-space: pre-wrap;
        overflow-wrap: break-word;
}

.user-message .message-content[b-srn2xerz7w] {
    background-color: #007bff;
    color: white;
}

.ai-message .message-content[b-srn2xerz7w] {
    background-color: #e9ecef;
    color: #333;
}

.system-message[b-srn2xerz7w] {
    align-items: center;
}

.system-message .message-content[b-srn2xerz7w] {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    text-align: center;
    font-style: italic;
    max-width: 90%;
    padding: 0.5rem 1rem;
}
.message-time[b-srn2xerz7w] {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.chat-input[b-srn2xerz7w] {
    display: flex;
    padding: 1rem;
    background-color: white;
    border-top: 1px solid #ddd;
}

.chat-input textarea[b-srn2xerz7w] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-right: 0.5rem;
    outline: none;
    resize: none;
        min-height: 50px;
        max-height: 200px;
        font-family: inherit;
        font-size: inherit;
        line-height: 1.4;
        overflow-y: auto;
        box-sizing: border-box;
}

.chat-input textarea:focus[b-srn2xerz7w] {
    border-color: #007bff;
}

.chat-input button[b-srn2xerz7w] {
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.chat-input button:disabled[b-srn2xerz7w] {
    background-color: #6c757d;
    cursor: not-allowed;
}

.chat-input button:hover:not(:disabled)[b-srn2xerz7w] {
    background-color: #0056b3;
}
.btn-cancel[b-srn2xerz7w] {
    padding: 0.75rem 1.5rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-left: 0.5rem;
}

.btn-cancel:hover[b-srn2xerz7w] {
    background-color: #c82333;
}
