@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';
@import '_content/ReactorBlazorQRCodeScanner/ReactorBlazorQRCodeScanner.boasv5qmh0.bundle.scp.css';

/* /Components/AIAssistant.razor.rz.scp.css */
.ai-assistant-container[b-20kgdwobc9] {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.ai-assistant-container.expanded[b-20kgdwobc9] {
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ai-assistant-container.expanded.maximized[b-20kgdwobc9] {
    width: calc(100vw - 40px);
    height: calc(100vh - 40px);
    left: 20px !important;
    top: 20px !important;
    right: auto;
    bottom: auto;
    border-radius: 10px;
    max-width: 1200px;
    max-height: none;
}

.ai-assistant-container.collapsed[b-20kgdwobc9] {
    position: static;
    width: 0;
    height: 0;
}

/* Wrapper para o botão e balão */
.ai-toggle-wrapper[b-20kgdwobc9] {
    position: fixed;
    z-index: 9999;
}

.ai-assistant-toggle[b-20kgdwobc9] {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0094d8 0%, #007bb5 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 148, 216, 0.4);
    cursor: grab;
    transition: box-shadow 0.3s ease;
    position: relative;
    user-select: none;
    touch-action: none;
}

/* Balão de boas-vindas */
.ai-welcome-bubble[b-20kgdwobc9] {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    width: 280px;
    animation: bubbleIn-b-20kgdwobc9 0.4s ease-out;
    z-index: 10000;
}

.ai-welcome-bubble p[b-20kgdwobc9] {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.ai-welcome-bubble .ai-welcome-arrow[b-20kgdwobc9] {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid white;
}

.ai-welcome-close[b-20kgdwobc9] {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 50%;
    transition: all 0.2s;
}

.ai-welcome-close:hover[b-20kgdwobc9] {
    background: #f0f0f0;
    color: #666;
}

@keyframes bubbleIn-b-20kgdwobc9 {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.ai-assistant-toggle:hover[b-20kgdwobc9] {
    box-shadow: 0 6px 20px rgba(0, 148, 216, 0.5);
}

.ai-assistant-toggle:active[b-20kgdwobc9] {
    cursor: grabbing;
    box-shadow: 0 8px 25px rgba(0, 148, 216, 0.6);
}

.ai-assistant-toggle .drag-hint[b-20kgdwobc9] {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #0094d8;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-assistant-toggle:hover .drag-hint[b-20kgdwobc9] {
    opacity: 1;
}

.ai-assistant-toggle .badge[b-20kgdwobc9] {
    position: absolute;
    top: 5px;
    right: 5px;
}

.ai-assistant-header[b-20kgdwobc9] {
    background: linear-gradient(135deg, #0094d8 0%, #007bb5 100%);
    color: white !important;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-assistant-header h5[b-20kgdwobc9] {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white !important;
}

.ai-assistant-header h5 i[b-20kgdwobc9] {
    color: white !important;
}

.ai-assistant-actions button[b-20kgdwobc9] {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white !important;
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.ai-assistant-actions button i[b-20kgdwobc9] {
    color: white !important;
}

.ai-assistant-actions button:hover[b-20kgdwobc9] {
    background: rgba(255, 255, 255, 0.3);
}

.ai-assistant-messages[b-20kgdwobc9] {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.ai-welcome-message[b-20kgdwobc9] {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.ai-suggestions[b-20kgdwobc9] {
    margin-top: 20px;
}

.ai-message[b-20kgdwobc9] {
    display: flex;
    margin-bottom: 15px;
    animation: slideIn-b-20kgdwobc9 0.3s ease;
}

@keyframes slideIn-b-20kgdwobc9 {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message.user[b-20kgdwobc9] {
    flex-direction: row-reverse;
}

.ai-message-icon[b-20kgdwobc9] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.ai-message.user .ai-message-icon[b-20kgdwobc9] {
    background: #0094d8;
    color: white;
    margin-left: 10px;
}

.ai-message.assistant .ai-message-icon[b-20kgdwobc9] {
    background: #e9ecef;
    color: #495057;
    margin-right: 10px;
}

.ai-message-content[b-20kgdwobc9] {
    max-width: 70%;
}

/* Em modo maximizado, permitir mensagens mais largas */
[b-20kgdwobc9] .maximized .ai-message-content {
    max-width: 85%;
}

.ai-message.user .ai-message-content[b-20kgdwobc9] {
    text-align: right;
}

.ai-message-text[b-20kgdwobc9] {
    background: white;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
}

.ai-message.user .ai-message-text[b-20kgdwobc9] {
    background: #0094d8;
    color: white;
    border-bottom-right-radius: 5px;
}

.ai-message.assistant .ai-message-text[b-20kgdwobc9] {
    border-bottom-left-radius: 5px;
}

.ai-message.error .ai-message-text[b-20kgdwobc9] {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ai-message-time[b-20kgdwobc9] {
    font-size: 10px;
    color: #6c757d;
    margin-top: 5px;
    padding: 0 5px;
}

.ai-typing-indicator[b-20kgdwobc9] {
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

.ai-typing-indicator span[b-20kgdwobc9] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0094d8;
    margin: 0 2px;
    animation: typing-b-20kgdwobc9 1.4s infinite;
}

.ai-typing-indicator span:nth-child(2)[b-20kgdwobc9] {
    animation-delay: 0.2s;
}

.ai-typing-indicator span:nth-child(3)[b-20kgdwobc9] {
    animation-delay: 0.4s;
}

@keyframes typing-b-20kgdwobc9 {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.ai-assistant-input[b-20kgdwobc9] {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #dee2e6;
}

.ai-assistant-input input[b-20kgdwobc9] {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 8px 15px;
    margin-right: 10px;
    font-size: 14px;
}

.ai-assistant-input input:focus[b-20kgdwobc9] {
    outline: none;
    border-color: #0094d8;
    box-shadow: 0 0 0 0.2rem rgba(0, 148, 216, 0.25);
}

.ai-assistant-input button[b-20kgdwobc9] {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #0094d8;
    border: none;
}

.ai-assistant-input button:hover:not(:disabled)[b-20kgdwobc9] {
    background: #007bb5;
}

.ai-assistant-input button:disabled[b-20kgdwobc9] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scrollbar personalizada */
.ai-assistant-messages[b-20kgdwobc9]::-webkit-scrollbar {
    width: 6px;
}

.ai-assistant-messages[b-20kgdwobc9]::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ai-assistant-messages[b-20kgdwobc9]::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.ai-assistant-messages[b-20kgdwobc9]::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para links nas mensagens */
.ai-message-text a[b-20kgdwobc9],
.ai-message-text a.ai-link[b-20kgdwobc9] {
    color: #0094d8 !important;
    text-decoration: underline !important;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ai-message-text a:hover[b-20kgdwobc9],
.ai-message-text a.ai-link:hover[b-20kgdwobc9] {
    color: #007bb5 !important;
    text-decoration: underline !important;
}

.ai-message.user .ai-message-text a[b-20kgdwobc9],
.ai-message.user .ai-message-text a.ai-link[b-20kgdwobc9] {
    color: #fff !important;
    text-decoration: underline !important;
}

.ai-message.user .ai-message-text a:hover[b-20kgdwobc9],
.ai-message.user .ai-message-text a.ai-link:hover[b-20kgdwobc9] {
    color: #e0e0e0 !important;
    text-decoration: underline !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .ai-assistant-container.expanded[b-20kgdwobc9] {
        width: calc(100vw - 20px) !important;
        height: calc(100vh - 100px) !important;
        left: 10px !important;
        top: 10px !important;
        right: auto;
        bottom: auto;
    }

    .ai-assistant-container.expanded.maximized[b-20kgdwobc9] {
        width: calc(100vw - 20px) !important;
        height: calc(100vh - 20px) !important;
        left: 10px !important;
        top: 10px !important;
        right: auto;
        bottom: auto;
        max-width: none;
    }

    .ai-assistant-toggle .drag-hint[b-20kgdwobc9] {
        opacity: 0.7; /* Sempre visível em mobile */
    }

    .ai-welcome-bubble[b-20kgdwobc9] {
        width: 240px;
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* Diálogo de confirmação para fechar */
.ai-confirm-overlay[b-20kgdwobc9] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn-b-20kgdwobc9 0.2s ease;
}

@keyframes fadeIn-b-20kgdwobc9 {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ai-confirm-dialog[b-20kgdwobc9] {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 320px;
    animation: scaleIn-b-20kgdwobc9 0.2s ease;
}

@keyframes scaleIn-b-20kgdwobc9 {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ai-confirm-icon[b-20kgdwobc9] {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0094d8 0%, #007bb5 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px auto;
}

.ai-confirm-dialog h6[b-20kgdwobc9] {
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
}

.ai-confirm-dialog p[b-20kgdwobc9] {
    margin: 0 0 20px 0;
}

.ai-confirm-buttons[b-20kgdwobc9] {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ai-confirm-buttons button[b-20kgdwobc9] {
    min-width: 100px;
}

/* ======== Dark Mode ========= */

.ai-assistant-container.dark.expanded[b-20kgdwobc9] {
    background: #1e1e1e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ai-assistant-container.dark .ai-assistant-messages[b-20kgdwobc9] {
    background: #252525;
}

.ai-assistant-container.dark .ai-welcome-message[b-20kgdwobc9] {
    color: #aaa;
}

.ai-assistant-container.dark .ai-message-text[b-20kgdwobc9] {
    background: #333;
    color: #e0e0e0;
}

.ai-assistant-container.dark .ai-message.user .ai-message-text[b-20kgdwobc9] {
    background: #0094d8;
    color: white;
}

.ai-assistant-container.dark .ai-message.assistant .ai-message-icon[b-20kgdwobc9] {
    background: #444;
    color: #ccc;
}

.ai-assistant-container.dark .ai-message.error .ai-message-text[b-20kgdwobc9] {
    background: #4a1c1c;
    color: #f8a0a0;
    border-color: #6b2c2c;
}

.ai-assistant-container.dark .ai-message-time[b-20kgdwobc9] {
    color: #888;
}

.ai-assistant-container.dark .ai-assistant-input[b-20kgdwobc9] {
    background: #1e1e1e;
    border-top: 1px solid #444;
}

.ai-assistant-container.dark .ai-assistant-input input[b-20kgdwobc9] {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
}

.ai-assistant-container.dark .ai-assistant-input input[b-20kgdwobc9]::placeholder {
    color: #888;
}

.ai-assistant-container.dark .ai-welcome-bubble[b-20kgdwobc9] {
    background: #2b2b2b;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.ai-assistant-container.dark .ai-welcome-bubble p[b-20kgdwobc9] {
    color: #ccc;
}

.ai-assistant-container.dark .ai-welcome-bubble .ai-welcome-arrow[b-20kgdwobc9] {
    border-top-color: #2b2b2b;
}

.ai-assistant-container.dark .ai-welcome-close:hover[b-20kgdwobc9] {
    background: #444;
    color: #ccc;
}

.ai-assistant-container.dark .ai-confirm-dialog[b-20kgdwobc9],
.ai-confirm-overlay.dark .ai-confirm-dialog[b-20kgdwobc9] {
    background: #1e1e1e;
    color: #e0e0e0;
}

.ai-assistant-container.dark .ai-confirm-dialog h6[b-20kgdwobc9],
.ai-confirm-overlay.dark .ai-confirm-dialog h6[b-20kgdwobc9] {
    color: #ffffff;
}

.ai-assistant-container.dark .ai-confirm-dialog p[b-20kgdwobc9],
.ai-confirm-overlay.dark .ai-confirm-dialog p[b-20kgdwobc9] {
    color: #aaa;
}

.ai-assistant-container.dark .ai-assistant-messages[b-20kgdwobc9]::-webkit-scrollbar-track {
    background: #252525;
}

.ai-assistant-container.dark .ai-assistant-messages[b-20kgdwobc9]::-webkit-scrollbar-thumb {
    background: #555;
}
/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-msnefir6uf] {
    position: relative;
    display: flex;
    flex-direction: column;
}

.main[b-msnefir6uf] {
    flex: 1;
}

.sidebar[b-msnefir6uf] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-msnefir6uf] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-msnefir6uf]  a, .top-row .btn-link[b-msnefir6uf] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-msnefir6uf] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-msnefir6uf] {
        display: none;
    }

    .top-row.auth[b-msnefir6uf] {
        justify-content: space-between;
    }

    .top-row a[b-msnefir6uf], .top-row .btn-link[b-msnefir6uf] {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-msnefir6uf] {
        flex-direction: row;
    }

    .sidebar[b-msnefir6uf] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-msnefir6uf] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .main > div[b-msnefir6uf] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-2jeqxvw33a] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-2jeqxvw33a] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-2jeqxvw33a] {
    font-size: 1.1rem;
}

.oi[b-2jeqxvw33a] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item[b-2jeqxvw33a] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-2jeqxvw33a] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-2jeqxvw33a] {
        padding-bottom: 1rem;
    }

    .nav-item[b-2jeqxvw33a]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-2jeqxvw33a]  a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item[b-2jeqxvw33a]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-2jeqxvw33a] {
        display: none;
    }

    .collapse[b-2jeqxvw33a] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}
