/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-plgr2ny4xb] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-plgr2ny4xb] {
    flex: 1;
}

/* Sidebar suave substituindo gradiente forte original */
.sidebar[b-plgr2ny4xb] {
    background: linear-gradient(180deg, #f5f7fb 0%, #f4f2f9 55%, #f7f5fb 100%);
    border-right: 1px solid #e6e9f1;
    overflow: visible; /* Remove scroll da sidebar */
}

/* Top bar clara minimalista */
.top-row[b-plgr2ny4xb] {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e4e7ef;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-plgr2ny4xb]  a, .top-row[b-plgr2ny4xb]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
        color: #374151;
        font-weight: 500;
    }

    .top-row[b-plgr2ny4xb]  a:hover, .top-row[b-plgr2ny4xb]  .btn-link:hover {
        color: #111;
        text-decoration: underline;
    }

    .top-row[b-plgr2ny4xb]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-plgr2ny4xb] {
        justify-content: space-between;
    }

    .top-row[b-plgr2ny4xb]  a, .top-row[b-plgr2ny4xb]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-plgr2ny4xb] {
        flex-direction: row;
    }

    .sidebar[b-plgr2ny4xb] {
        width: 180px;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow: visible; /* Garante que n�o h� scroll */
    }

    .top-row[b-plgr2ny4xb] {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .top-row.auth[b-plgr2ny4xb]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-plgr2ny4xb], article[b-plgr2ny4xb] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-plgr2ny4xb] {
    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-plgr2ny4xb] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* /Components/Layout/ModalHost.razor.rz.scp.css */
/* ===== Delete Confirmation Modal ===== */

.delete-overlay[b-1p3u0y2ypr] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.delete-modal[b-1p3u0y2ypr] {
    background: #fff;
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    text-align: center;
}

.delete-modal p[b-1p3u0y2ypr] {
    margin: 0 0 .4rem;
    font-size: .88rem;
    color: #1f2937;
}

.delete-hint[b-1p3u0y2ypr] {
    font-size: .76rem;
    color: #9ca3af;
    margin-bottom: .8rem !important;
}

.delete-actions[b-1p3u0y2ypr] {
    display: flex;
    gap: .6rem;
    justify-content: center;
    margin-top: .6rem;
}

.btn-cancel[b-1p3u0y2ypr] {
    padding: .4rem 1rem;
    font-size: .8rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: background .15s;
}

.btn-cancel:hover[b-1p3u0y2ypr] {
    background: #f3f4f6;
}

.btn-confirm-delete[b-1p3u0y2ypr] {
    padding: .4rem 1rem;
    font-size: .8rem;
    border: none;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: background .15s;
}

.btn-confirm-delete:hover:not(:disabled)[b-1p3u0y2ypr] {
    background: #b91c1c;
}

.btn-confirm-delete:disabled[b-1p3u0y2ypr] {
    opacity: .6;
    cursor: default;
}

/* ===== Project Delete Modal (3-button variant) ===== */

.delete-actions-project[b-1p3u0y2ypr] {
    flex-wrap: wrap;
}

.btn-keep-files[b-1p3u0y2ypr] {
    padding: .4rem 1rem;
    font-size: .8rem;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    background: #fff;
    color: #3b82f6;
    cursor: pointer;
    font-weight: 500;
    transition: background .15s;
}

.btn-keep-files:hover:not(:disabled)[b-1p3u0y2ypr] {
    background: #eff6ff;
}

.btn-keep-files:disabled[b-1p3u0y2ypr] {
    opacity: .6;
    cursor: default;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ===== Sidebar (mais clean / discreta) ===== */

:host[b-kidi85toco] {
    background: linear-gradient(180deg,#f6f8fb 0%, #f5f4fa 100%);
 border-right:1px solid #e6e9f1;
    color:#374151;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    overflow: visible;
}

.top-row[b-kidi85toco] {
    height:3.5rem;
    background:rgba(255,255,255,0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom:1px solid #e6eaf3;
    display:flex;
    align-items:center;
}

.navbar-brand[b-kidi85toco] {
    font-size:1rem;
    font-weight:600;
    letter-spacing:.5px;
    color:#1f2937 !important;
}

/* Toggle (mobile) */
.navbar-toggler[b-kidi85toco] {
    appearance:none;
    cursor:pointer;
    width:2.75rem;
    height:2.1rem;
    top:.7rem;
    right:.85rem;
    border:1px solid #d9dde5;
    border-radius:8px;
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2364758b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e") no-repeat center/1.55rem;
    transition:.2s;
    box-shadow:0 2px 4px -2px rgba(0,0,0,.08);
}
.navbar-toggler:checked[b-kidi85toco] { background-color:#eef2ff; border-color:#d1d7f5; }

/* Scroll / �rea de navega��o - SEM OVERFLOW */
.nav-scrollable[b-kidi85toco] { 
    display:none; 
    padding:.6rem .7rem 1.1rem;
    overflow: visible;
}

.navbar-toggler:checked ~ .nav-scrollable[b-kidi85toco] { display:block; }

@media (min-width:641px){
    .navbar-toggler[b-kidi85toco] { display:none; }
    .nav-scrollable[b-kidi85toco] { 
        display:block; 
        height:calc(100vh - 3.5rem); 
   overflow: visible;
    }
}

/* ===== Top Action Buttons (GPT-style) ===== */

.top-actions[b-kidi85toco] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: .4rem .3rem .2rem;
}

.top-action-btn[b-kidi85toco] {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .7rem;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 500;
    color: #565869;
    text-decoration: none;
    transition: background .15s, color .15s;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: .1px;
}

.top-action-btn:hover[b-kidi85toco] {
    background: #ececf1;
    color: #2d2d30;
}

.top-action-btn svg[b-kidi85toco] {
    flex-shrink: 0;
    color: #8e8ea0;
    transition: color .15s;
}

.top-action-btn:hover svg[b-kidi85toco] {
    color: #565869;
}

/* ===== File Tree Section ===== */

.file-tree-section[b-kidi85toco] {
    padding: .3rem .5rem .4rem;
    margin: .2rem 0;
}

.file-tree-section:first-of-type[b-kidi85toco] {
    margin-top: .4rem;
    border-top: 1px solid #e9ecf2;
    padding-top: .6rem;
}

.file-tree-header[b-kidi85toco] {
    display: flex;
    align-items: center;
    padding: 0 .4rem .3rem;
}

.file-tree-title[b-kidi85toco] {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #8c95a6;
}

.file-tree-loading[b-kidi85toco],
.file-tree-error[b-kidi85toco],
.file-tree-empty[b-kidi85toco] {
    font-size: .78rem;
    color: #9ca3af;
    padding: .3rem .5rem;
    font-style: italic;
}

.file-tree-error[b-kidi85toco] {
    color: #ef4444;
}

.file-tree[b-kidi85toco] {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.file-node[b-kidi85toco] {
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: background .15s;
    position: relative;
}

.file-node:hover[b-kidi85toco] {
    background: #eff2f7;
}

.file-node-name[b-kidi85toco] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 450;
    color: #4b5563;
    padding: .35rem .4rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.3;
    transition: color .15s;
}

.file-node-name:hover:not(:disabled)[b-kidi85toco] {
    color: #2563eb;
}

.file-node-name:disabled[b-kidi85toco] {
    cursor: default;
    opacity: .6;
}

.file-node-pending .file-node-name[b-kidi85toco] {
    color: #9ca3af;
    font-style: italic;
}

/* ===== Selected file (currently viewed model) ===== */

.file-node-selected[b-kidi85toco] {
    background: #ececf1;
}

.file-node-selected .file-node-name[b-kidi85toco] {
    color: #2d2d30;
    font-weight: 600;
}

.file-node-selected .file-node-actions[b-kidi85toco] {
    opacity: 1;
}

.file-node-actions[b-kidi85toco] {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s, background .15s, color .15s;
}

.file-node:hover .file-node-actions[b-kidi85toco] {
    opacity: 1;
}

.file-node-actions:hover[b-kidi85toco] {
    background: #dbeafe;
    color: #2563eb;
}

.file-node-actions:focus-visible[b-kidi85toco] {
    opacity: 1;
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}

/* ===== Context Menu ===== */

.context-overlay[b-kidi85toco] {
    position: fixed;
    inset: 0;
    z-index: 999;
}

.context-menu[b-kidi85toco] {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 160px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.06);
    padding: .3rem 0;
    animation: ctx-in-b-kidi85toco .12s ease-out;
}

@keyframes ctx-in-b-kidi85toco {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.context-menu-item[b-kidi85toco] {
    display: block;
    width: 100%;
    padding: .45rem .9rem;
    font-size: .78rem;
    font-weight: 450;
    color: #374151;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: background .12s, color .12s;
}

.context-menu-item:hover:not(:disabled)[b-kidi85toco] {
    background: #f3f4f6;
    color: #1f2937;
}

.context-menu-item:disabled[b-kidi85toco] {
    color: #c0c5ce;
    cursor: default;
}

.context-menu-separator[b-kidi85toco] {
    height: 1px;
    background: #e5e7eb;
    margin: .25rem 0;
}

.context-menu-item.danger[b-kidi85toco] {
    color: #dc2626;
}

.context-menu-item.danger:hover[b-kidi85toco] {
    background: #fef2f2;
    color: #b91c1c;
}

/* ===== Delete Confirmation Modal ===== */

.delete-overlay[b-kidi85toco] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.delete-modal[b-kidi85toco] {
    background: #fff;
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    text-align: center;
}

.delete-modal p[b-kidi85toco] {
    margin: 0 0 .4rem;
    font-size: .88rem;
    color: #1f2937;
}

.delete-hint[b-kidi85toco] {
    font-size: .76rem;
    color: #9ca3af;
    margin-bottom: .8rem !important;
}

.delete-actions[b-kidi85toco] {
    display: flex;
    gap: .6rem;
    justify-content: center;
    margin-top: .6rem;
}

.btn-cancel[b-kidi85toco] {
    padding: .4rem 1rem;
    font-size: .8rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: background .15s;
}

.btn-cancel:hover[b-kidi85toco] {
    background: #f3f4f6;
}

.btn-confirm-delete[b-kidi85toco] {
    padding: .4rem 1rem;
    font-size: .8rem;
    border: none;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: background .15s;
}

.btn-confirm-delete:hover:not(:disabled)[b-kidi85toco] {
    background: #b91c1c;
}

.btn-confirm-delete:disabled[b-kidi85toco] {
    opacity: .6;
    cursor: default;
}

/* ===== Project Node ===== */

.project-node[b-kidi85toco] {
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: background .15s;
    position: relative;
    padding: .1rem 0;
}

.project-node:hover[b-kidi85toco] {
    background: #eff2f7;
}

.project-node-toggle[b-kidi85toco] {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: .3rem .4rem;
    border-radius: 8px;
    overflow: hidden;
}

.project-node-icon[b-kidi85toco] {
    flex-shrink: 0;
    font-size: .85rem;
    transition: transform .2s;
}

.project-node.expanded .project-node-icon[b-kidi85toco] {
    transform: rotate(12deg);
}

.project-node-name[b-kidi85toco] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 500;
    color: #374151;
    text-align: left;
    line-height: 1.3;
}

.project-node:hover .file-node-actions[b-kidi85toco] {
    opacity: 1;
}

/* ===== Project Children (indented files) ===== */

.project-children[b-kidi85toco] {
    padding-left: 16px;
    border-left: 1px solid #e5e7eb;
    margin-left: 12px;
    margin-bottom: .2rem;
}

.project-empty-hint[b-kidi85toco] {
    font-size: .72rem;
    color: #b0b8c5;
    padding: .25rem .4rem;
    font-style: italic;
}

/* ===== Inline Rename / Create Input ===== */

.project-rename-input[b-kidi85toco] {
    flex: 1;
    min-width: 0;
    font-size: .78rem;
    padding: .3rem .5rem;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #1f2937;
    font-family: inherit;
}

.project-rename-input:focus[b-kidi85toco] {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* ===== Create Button [+] ===== */

.project-create-btn[b-kidi85toco] {
    margin-left: auto;
    width: 1.4rem;
    height: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s;
    line-height: 1;
}

.project-create-btn:hover[b-kidi85toco] {
    background: #dbeafe;
    color: #2563eb;
}

/* ===== Context Submenu (Move to) ===== */

.context-menu-item-with-submenu[b-kidi85toco] {
    position: relative;
}

.context-submenu[b-kidi85toco] {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.06);
    padding: .3rem 0;
    animation: ctx-in-b-kidi85toco .12s ease-out;
    z-index: 1001;
}
/* /Components/Shared/AnalysisChatPanel.razor.rz.scp.css */
/* AnalysisChatPanel.razor.css - Modern Chat Design with AI/Human Avatars */

/* ===== CONTAINER ===== */
.chat-panel[b-r4d1mvkh8h] {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    margin: 0;
    padding: 0;
}

/* ===== HEADER ===== */
.chat-header[b-r4d1mvkh8h] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.chat-header-left[b-r4d1mvkh8h] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-logo[b-r4d1mvkh8h] {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-logo .material-symbols-outlined[b-r4d1mvkh8h] {
    font-size: 1.4rem;
    color: #6b7280;
}

.chat-header-info[b-r4d1mvkh8h] {
    display: flex;
    flex-direction: column;
}

.chat-title[b-r4d1mvkh8h] {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}

.chat-subtitle[b-r4d1mvkh8h] {
    font-size: 0.72rem;
    color: #6b7280;
}

.btn-clear[b-r4d1mvkh8h] {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear:hover[b-r4d1mvkh8h] {
    background: #e5e7eb;
}

.btn-clear .material-symbols-outlined[b-r4d1mvkh8h] {
    font-size: 1.1rem;
    color: #6b7280;
}

/* ===== MESSAGES AREA ===== */
.chat-messages[b-r4d1mvkh8h] {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Loading */
.chat-loading[b-r4d1mvkh8h] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: #64748b;
    font-size: 0.85rem;
}

.spinner-small[b-r4d1mvkh8h] {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin-b-r4d1mvkh8h 0.8s linear infinite;
}

@keyframes spin-b-r4d1mvkh8h {
    to { transform: rotate(360deg); }
}

/* Welcome State */
.chat-welcome[b-r4d1mvkh8h] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
}

.welcome-avatar[b-r4d1mvkh8h] {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.welcome-avatar .material-symbols-outlined[b-r4d1mvkh8h] {
    font-size: 2rem;
    color: white;
}

.chat-welcome h3[b-r4d1mvkh8h] {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #1e293b;
}

.chat-welcome p[b-r4d1mvkh8h] {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

.chat-welcome p strong[b-r4d1mvkh8h] {
    color: #6366f1;
}

.welcome-hint[b-r4d1mvkh8h] {
    margin-top: 1rem !important;
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
}

/* ===== MESSAGE ROWS ===== */
.message-row[b-r4d1mvkh8h] {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.message-row.user[b-r4d1mvkh8h] {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.message-row.ai[b-r4d1mvkh8h] {
    flex-direction: row;
}

/* Avatars */
.message-avatar[b-r4d1mvkh8h] {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-avatar.ai[b-r4d1mvkh8h] {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.message-avatar.ai .material-symbols-outlined[b-r4d1mvkh8h] {
    font-size: 1.2rem;
    color: #6b7280;
}

.message-avatar.ai.analyzing[b-r4d1mvkh8h] {
    background: #eff6ff;
    border-color: #bfdbfe;
    animation: pulse-avatar-b-r4d1mvkh8h 1.5s ease-in-out infinite;
}

.message-avatar.ai.analyzing .material-symbols-outlined[b-r4d1mvkh8h] {
    color: #3b82f6;
}

@keyframes pulse-avatar-b-r4d1mvkh8h {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
}

.message-avatar.ai.success[b-r4d1mvkh8h] {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.message-avatar.ai.success .material-symbols-outlined[b-r4d1mvkh8h] {
    color: #22c55e;
}

.message-avatar.ai.error[b-r4d1mvkh8h] {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.message-avatar.ai.error .material-symbols-outlined[b-r4d1mvkh8h] {
    color: #ef4444;
}

.message-avatar.user[b-r4d1mvkh8h] {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.message-avatar.user .material-symbols-outlined[b-r4d1mvkh8h] {
    font-size: 1.2rem;
    color: #3b82f6;
}

/* Message Content */
.message-content[b-r4d1mvkh8h] {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 50px);
}

.message-row.user .message-content[b-r4d1mvkh8h] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Message Bubbles */
.message-bubble[b-r4d1mvkh8h] {
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-row.user .message-bubble[b-r4d1mvkh8h] {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-bottom-right-radius: 4px;
}

.message-row.ai .message-bubble[b-r4d1mvkh8h] {
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Success/Error Bubbles */
.success-bubble[b-r4d1mvkh8h] {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

.error-bubble[b-r4d1mvkh8h] {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

/* ===== OPTIONS ===== */
.message-options[b-r4d1mvkh8h] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-option[b-r4d1mvkh8h] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-option:hover:not(:disabled)[b-r4d1mvkh8h] {
    background: linear-gradient(135deg, #94a3b8 0%, #a1aebf 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.3);
}

.btn-option:disabled[b-r4d1mvkh8h] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ✅ NOVO: Estilo para opções já processadas */
.btn-option.processed[b-r4d1mvkh8h] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #94a3b8;
    position: relative;
}

.btn-option.processed[b-r4d1mvkh8h]::after {
    content: "✓";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #86efac;
    border-radius: 50%;
    font-size: 10px;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-option.processed:hover:not(:disabled)[b-r4d1mvkh8h] {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #64748b;
    transform: none;
    box-shadow: none;
}

.option-icon[b-r4d1mvkh8h] {
    font-size: 1rem;
}

/* ===== PROGRESS ===== */
.progress-bubble[b-r4d1mvkh8h] {
    width: 100%;
    max-width: 100%;
}

.progress-bubble.complete[b-r4d1mvkh8h] {
    background: #f0fdf4 !important;
    border-color: #10b981 !important;
}

.progress-header[b-r4d1mvkh8h] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.progress-header.complete[b-r4d1mvkh8h] {
    color: #4ade80;
}

.progress-header.complete .material-symbols-outlined[b-r4d1mvkh8h] {
    color: #86efac;
}

.progress-bar-wrapper.complete .progress-bar[b-r4d1mvkh8h] {
    background: linear-gradient(90deg, #86efac 0%, #6ee7b7 100%);
}

.progress-header .material-symbols-outlined[b-r4d1mvkh8h] {
    font-size: 1.1rem;
}

.rotating[b-r4d1mvkh8h] {
    animation: rotate-b-r4d1mvkh8h 1s linear infinite;
}

@keyframes rotate-b-r4d1mvkh8h {
    to { transform: rotate(360deg); }
}

.progress-segments[b-r4d1mvkh8h] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.segment-item[b-r4d1mvkh8h] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.78rem;
}

.segment-item.completed[b-r4d1mvkh8h] {
    background: #ecfdf5;
}

.segment-item.inprogress[b-r4d1mvkh8h] {
    background: #eff6ff;
    animation: pulse-b-r4d1mvkh8h 1.5s infinite;
}

.segment-item.pending[b-r4d1mvkh8h] {
    opacity: 0.6;
}

.segment-item.error[b-r4d1mvkh8h] {
    background: #fef2f2;
}

@keyframes pulse-b-r4d1mvkh8h {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.segment-icon[b-r4d1mvkh8h] {
    font-size: 0.9rem;
}

.segment-label[b-r4d1mvkh8h] {
    flex: 1;
    font-weight: 500;
}

.segment-count[b-r4d1mvkh8h] {
    background: rgba(0,0,0,0.06);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    color: #64748b;
}

.progress-bar-wrapper[b-r4d1mvkh8h] {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar[b-r4d1mvkh8h] {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #10b981 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-stats[b-r4d1mvkh8h] {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #64748b;
}

/* ===== FOOTER ===== */
.chat-footer[b-r4d1mvkh8h] {
    border-top: 1px solid #e2e8f0;
    background: white;
}

/* Action Buttons */
.action-buttons[b-r4d1mvkh8h] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.btn-action-main[b-r4d1mvkh8h] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.btn-action-main .material-symbols-outlined[b-r4d1mvkh8h] {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.btn-action-text[b-r4d1mvkh8h] {
    display: flex;
    flex-direction: column;
}

.btn-action-title[b-r4d1mvkh8h] {
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-action-desc[b-r4d1mvkh8h] {
    font-size: 0.72rem;
    opacity: 0.85;
}

.btn-action-main.standardize[b-r4d1mvkh8h] {
    background: linear-gradient(135deg, #94a3b8 0%, #a1aebf 100%);
    color: white;
}

.btn-action-main.standardize:hover:not(:disabled)[b-r4d1mvkh8h] {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.35);
}

.btn-action-main.verify[b-r4d1mvkh8h] {
    background: linear-gradient(135deg, #86efac 0%, #6ee7b7 100%);
    color: #166534;
}

.btn-action-main.verify:hover:not(:disabled)[b-r4d1mvkh8h] {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(134, 239, 172, 0.35);
}

.btn-action-main:disabled[b-r4d1mvkh8h] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Prompt Input Area */
.prompt-input-area[b-r4d1mvkh8h] {
    padding: 1rem;
}

.prompt-label[b-r4d1mvkh8h] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.prompt-label .material-symbols-outlined[b-r4d1mvkh8h] {
    font-size: 1rem;
    color: #6366f1;
}

.prompt-input-wrapper[b-r4d1mvkh8h] {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.prompt-textarea[b-r4d1mvkh8h] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
}

.prompt-textarea:focus[b-r4d1mvkh8h] {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.prompt-textarea[b-r4d1mvkh8h]::placeholder {
    color: #94a3b8;
}

.btn-send[b-r4d1mvkh8h] {
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, #94a3b8 0%, #a1aebf 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-end;
}

.btn-send:hover:not(:disabled)[b-r4d1mvkh8h] {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.35);
}

.btn-send:disabled[b-r4d1mvkh8h] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-send .material-symbols-outlined[b-r4d1mvkh8h] {
    font-size: 1.2rem;
    color: white;
}

.prompt-suggestions[b-r4d1mvkh8h] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.suggestion-label[b-r4d1mvkh8h] {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-right: 0.25rem;
}

.btn-suggestion[b-r4d1mvkh8h] {
    padding: 0.35rem 0.65rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 16px;
    font-size: 0.7rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-suggestion:hover[b-r4d1mvkh8h] {
    background: #94a3b8;
    border-color: #94a3b8;
    color: white;
}

/* Analyzing Footer */
.analyzing-footer[b-r4d1mvkh8h] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8fafc;
}

.analyzing-info[b-r4d1mvkh8h] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.analyzing-pulse[b-r4d1mvkh8h] {
    width: 12px;
    height: 12px;
    background: #94a3b8;
    border-radius: 50%;
    animation: analyzing-pulse-b-r4d1mvkh8h 1.5s ease-in-out infinite;
}

@keyframes analyzing-pulse-b-r4d1mvkh8h {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.4);
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 0 0 8px rgba(148, 163, 184, 0);
    }
}

.btn-cancel[b-r4d1mvkh8h] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid #fca5a5;
    background: white;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #f87171;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover[b-r4d1mvkh8h] {
    background: #fca5a5;
    color: #7f1d1d;
}

.btn-cancel .material-symbols-outlined[b-r4d1mvkh8h] {
    font-size: 1rem;
}

/* ===== SCROLLBAR ===== */
.chat-messages[b-r4d1mvkh8h]::-webkit-scrollbar {
    width: 6px;
}

.chat-messages[b-r4d1mvkh8h]::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages[b-r4d1mvkh8h]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chat-messages[b-r4d1mvkh8h]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
/* /Components/Shared/ProcessingSteps.razor.rz.scp.css */
.processing-steps[b-h1ok36dr2d] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--card-bg, #1e1e2e);
    border-radius: 12px;
    border: 1px solid var(--border-color, #2d2d3d);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.processing-steps.fade-out[b-h1ok36dr2d] {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* Step container */
.step[b-h1ok36dr2d] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.step.active[b-h1ok36dr2d] {
    background: rgba(59, 130, 246, 0.1);
}

/* Step icon */
.step-icon[b-h1ok36dr2d] {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: 600;
}

.step.completed .step-icon[b-h1ok36dr2d] {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.step.active .step-icon[b-h1ok36dr2d] {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    animation: pulse-b-h1ok36dr2d 1.5s ease-in-out infinite;
}

.step.pending .step-icon[b-h1ok36dr2d] {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

.step.failed .step-icon[b-h1ok36dr2d] {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* Step label */
.step-label[b-h1ok36dr2d] {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary, #e5e5e5);
    flex-grow: 1;
}

.step.pending .step-label[b-h1ok36dr2d] {
    color: var(--text-muted, #9ca3af);
}

.step.failed .step-label[b-h1ok36dr2d] {
    color: #ef4444;
}

/* Progress indicator */
.step-progress[b-h1ok36dr2d] {
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}

.step.active .step-progress[b-h1ok36dr2d] {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* Pulse animation for active step */
@keyframes pulse-b-h1ok36dr2d {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}

/* Connector line between steps */
.step:not(:last-child)[b-h1ok36dr2d]::after {
    content: '';
    position: absolute;
    left: 2.15rem;
    top: 100%;
    width: 2px;
    height: 0.75rem;
    background: var(--border-color, #2d2d3d);
}

/* Make steps relative for connector positioning */
.step[b-h1ok36dr2d] {
    position: relative;
}

/* Completed connector */
.step.completed:not(:last-child)[b-h1ok36dr2d]::after {
    background: #22c55e;
}

/* Active connector */
.step.active:not(:last-child)[b-h1ok36dr2d]::after {
    background: linear-gradient(to bottom, #3b82f6, var(--border-color, #2d2d3d));
}
