@import '_content/Blazor.QRCode/Blazor.QRCode.bundle.scp.css';

/* /Components/ChatHistory.razor.rz.scp.css */
/* Component-scoped styles for ChatHistory.
   Migrated from the global wwwroot/css/components/chat-history.css.
   Own <div> elements (container, header, list, items, conversation-*, empty-state,
   loading-container) are scoped automatically. Elements rendered by Radzen child
   components (RadzenText/RadzenIcon/RadzenButton: chat-history-title, history-icon,
   conversation-button, delete-button, empty-icon, empty-text) are reached via
   ::deep anchored on the owned root .chat-history-container.
   Uses --brand-teal (chat.css :root) with a hardcoded fallback. */

.chat-history-container[b-rhyjfbegv9] {
    width: 300px;
    height: 100%;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.rz-material-dark .chat-history-container[b-rhyjfbegv9] {
    background-color: #2c2b30;
    border-right-color: #6d6d6d;
}

.chat-history-header[b-rhyjfbegv9] {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.rz-material-dark .chat-history-header[b-rhyjfbegv9] {
    border-bottom-color: #6d6d6d;
}

.chat-history-container[b-rhyjfbegv9]  .chat-history-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #495057;
}

.rz-material-dark .chat-history-container[b-rhyjfbegv9]  .chat-history-title {
    color: #f8f9fa;
}

.chat-history-container[b-rhyjfbegv9]  .history-icon {
    font-size: 1.2rem;
    color: #6c757d;
}

.rz-material-dark .chat-history-container[b-rhyjfbegv9]  .history-icon {
    color: #adb5bd;
}

.chat-history-list[b-rhyjfbegv9] {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    max-height: 70vh;
}

/* Nuovo contenitore per conversazione + pulsante delete */
.conversation-item[b-rhyjfbegv9] {
    display: flex;
    align-items: stretch;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    position: relative;
}

.conversation-item:hover[b-rhyjfbegv9] {
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
}

.rz-material-dark .conversation-item:hover[b-rhyjfbegv9] {
    background-color: #495057 !important;
    border-color: #6c757d !important;
}

.chat-history-container[b-rhyjfbegv9]  .conversation-button {
    flex: 1 !important;
    text-align: left !important;
    text-transform: none !important;
    padding: 0.75rem !important;
    border-radius: 8px 0 0 8px !important;
    border: 1px solid transparent !important;
    background-color: transparent !important;
    color: #495057 !important;
    display: block !important;
    height: auto !important;
    min-height: 60px !important;
    margin-bottom: 0 !important;
}

.chat-history-container[b-rhyjfbegv9]  .conversation-button.selected {
    background-color: var(--brand-teal, #0EA299) !important;
    color: white !important;
    border-color: var(--brand-teal, #0EA299) !important;
}

.rz-material-dark .chat-history-container[b-rhyjfbegv9]  .conversation-button {
    color: #f8f9fa !important;
}

.rz-material-dark .chat-history-container[b-rhyjfbegv9]  .conversation-button.selected {
    background-color: var(--brand-teal, #0EA299) !important;
    color: white !important;
}

.chat-history-container[b-rhyjfbegv9]  .delete-button {
    width: 40px !important;
    min-width: 40px !important;
    height: 100% !important;
    min-height: 86px !important;
    border-radius: 0 8px 8px 0 !important;
    background-color: transparent !important;
    border: 1px solid transparent !important;
    border-left: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1;
    transition: opacity 0.2s ease;
    color: #6c757d !important;
}

.chat-history-container[b-rhyjfbegv9]  .delete-button.selected {
    background-color: var(--brand-teal, #0EA299) !important;
    color: white !important;
    border-color: var(--brand-teal, #0EA299) !important;
}

.chat-history-container[b-rhyjfbegv9]  .delete-button:hover {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: #dc3545 !important;
}

.rz-material-dark .chat-history-container[b-rhyjfbegv9]  .delete-button {
    background-color: rgba(255, 107, 107, 0.1) !important;
    color: #ff6b6b !important;
}

.rz-material-dark .chat-history-container[b-rhyjfbegv9]  .delete-button:hover {
    background-color: #ff6b6b !important;
    color: #2c2b30 !important;
}

.conversation-content[b-rhyjfbegv9] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.conversation-title[b-rhyjfbegv9] {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-preview[b-rhyjfbegv9] {
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-date[b-rhyjfbegv9] {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: auto;
}

.loading-container[b-rhyjfbegv9] {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.empty-state[b-rhyjfbegv9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 2rem;
    text-align: center;
}

.chat-history-container[b-rhyjfbegv9]  .empty-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.rz-material-dark .chat-history-container[b-rhyjfbegv9]  .empty-icon {
    color: #adb5bd;
}

.chat-history-container[b-rhyjfbegv9]  .empty-text {
    color: #6c757d;
}

.rz-material-dark .chat-history-container[b-rhyjfbegv9]  .empty-text {
    color: #adb5bd;
}

.chat-history-list[b-rhyjfbegv9]::-webkit-scrollbar {
    width: 6px;
}

.chat-history-list[b-rhyjfbegv9]::-webkit-scrollbar-track {
    background: transparent;
}

.chat-history-list[b-rhyjfbegv9]::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.rz-material-dark .chat-history-list[b-rhyjfbegv9]::-webkit-scrollbar-thumb {
    background: #6c757d;
}

.chat-history-list[b-rhyjfbegv9]::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

@media (max-width: 768px) {
    .chat-history-container[b-rhyjfbegv9] {
        width: 250px;
    }

    .chat-history-container[b-rhyjfbegv9]  .conversation-button {
        min-height: 50px !important;
        padding: 0.5rem !important;
    }

    .chat-history-container[b-rhyjfbegv9]  .delete-button {
        height: 50px !important;
    }

    .conversation-title[b-rhyjfbegv9] {
        font-size: 0.8rem;
    }

    .conversation-preview[b-rhyjfbegv9] {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .chat-history-container[b-rhyjfbegv9] {
        width: 100%;
        height: auto;
    }
}
/* /Components/FloatingAgent.razor.rz.scp.css */
/* Component-scoped styles for FloatingAgent.
   Migrated from the global wwwroot/css/components/floating-agent.css.
   Own <div> elements are scoped automatically; RadzenButton roots
   (.floating-agent-button, .floating-close-button) are reached via ::deep,
   anchored on an owned ancestor. */

.floating-chat-overlay[b-dgr62y6wd1] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.floating-chat-main[b-dgr62y6wd1] {
    display: flex;
    position: relative;
    height: 70vh;
    max-width: 95vw;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
}

.floating-chat-container[b-dgr62y6wd1] {
    width: 600px;
    height: 100%;
    background-color: white;
}

.rz-material-dark .floating-chat-container[b-dgr62y6wd1] {
    background-color: #2d2d2d;
}

/* Launcher button (top-level RadzenButton) — reached via ::deep from its
   display:contents wrapper. */
.floating-agent-launcher[b-dgr62y6wd1]  .floating-agent-button {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    margin-left: 1rem;
}

.floating-agent-launcher[b-dgr62y6wd1]  .floating-agent-button img {
    width: 30px !important;
    height: 30px !important;
}

/* Close button (RadzenButton) — reached via ::deep from the owned main panel. */
.floating-chat-main[b-dgr62y6wd1]  .floating-close-button {
    color: black !important;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    align-items: center;
    transition: all 0.2s ease;
}

.floating-chat-main[b-dgr62y6wd1]  .floating-close-button:hover {
    background-color: rgba(240, 240, 240, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.rz-material-dark .floating-chat-main[b-dgr62y6wd1]  .floating-close-button {
    background-color: rgba(60, 60, 60, 0.9) !important;
    color: white !important;
}

.rz-material-dark .floating-chat-main[b-dgr62y6wd1]  .floating-close-button:hover {
    background-color: rgba(80, 80, 80, 1) !important;
}

/* Responsive design for mobile */
@media (max-width: 750px) {
    .floating-chat-main[b-dgr62y6wd1] {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
    }

    .floating-chat-container[b-dgr62y6wd1] {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}
/* /Components/Shared/SkillProgressIndicator.razor.rz.scp.css */
/* Component-scoped styles for SkillProgressIndicator.
   Migrated from the global wwwroot/css/components/skill-progress.css.
   Own elements are scoped automatically; the RadzenProgressBar root and its
   internals (.rz-progressbar*) are reached via ::deep, anchored on the owned
   root .skill-progress-inline. */

.skill-progress-inline[b-ve1hbn7hp2] {
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-progress-status[b-ve1hbn7hp2] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--rz-text-secondary-color, #666);
}

.skill-spinner[b-ve1hbn7hp2] {
    width: 14px;
    height: 14px;
    border: 2px solid var(--rz-primary-lighter, #90caf9);
    border-top-color: var(--rz-primary, #1e88e5);
    border-radius: 50%;
    animation: skill-spin-b-ve1hbn7hp2 0.8s linear infinite;
    flex-shrink: 0;
}

.skill-status-text[b-ve1hbn7hp2] {
    font-weight: 500;
}

.skill-elapsed[b-ve1hbn7hp2] {
    opacity: 0.5;
    font-size: 0.75rem;
}

.skill-heartbeat[b-ve1hbn7hp2] {
    color: var(--rz-warning, #ff9800);
    font-size: 0.75rem;
    font-weight: 500;
    animation: skill-heartbeat-pulse-b-ve1hbn7hp2 1.5s ease-in-out infinite;
}

/* RadzenProgressBar (child component) — not reachable by the scope attribute,
   so target it through ::deep from the owned root. */
.skill-progress-inline[b-ve1hbn7hp2]  .skill-progress-bar-inline {
    max-width: 200px;
    height: 4px !important;
}

.skill-progress-inline[b-ve1hbn7hp2]  .skill-progress-bar-inline .rz-progressbar-value {
    height: 4px !important;
    border-radius: 2px;
}

.skill-progress-inline[b-ve1hbn7hp2]  .skill-progress-bar-inline .rz-progressbar {
    height: 4px !important;
    border-radius: 2px;
    background: var(--rz-base-200, #e0e0e0);
}

/* Keyframes are emitted globally (Blazor does not scope @keyframes names). */
@keyframes skill-spin-b-ve1hbn7hp2 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes skill-heartbeat-pulse-b-ve1hbn7hp2 {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
/* /Components/Widgets/SkillKindBadge.razor.rz.scp.css */
.skill-kind-badge[b-1jzhsh7v0s] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
    line-height: 1;
}

.skill-kind-badge-icon[b-1jzhsh7v0s] {
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.75;
}

.skill-kind-badge--icon-only .skill-kind-badge-icon[b-1jzhsh7v0s] {
    font-size: 1.25rem;
    opacity: 1;
}
/* /Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-w2srgorhdh] {
    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-w2srgorhdh] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-8crvomlmgu] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-8crvomlmgu] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-8crvomlmgu] {
    font-size: 1.1rem;
}

.bi[b-8crvomlmgu] {
    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-8crvomlmgu] {
    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-8crvomlmgu] {
    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-8crvomlmgu] {
    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-8crvomlmgu] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-8crvomlmgu] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-8crvomlmgu] {
        padding-bottom: 1rem;
    }

    .nav-item[b-8crvomlmgu]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-8crvomlmgu]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-8crvomlmgu]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-8crvomlmgu] {
        display: none;
    }

    .collapse[b-8crvomlmgu] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-8crvomlmgu] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
