/* /Components/Barcode/CodeScanner.razor.rz.scp.css */
.code-scanner-container[b-bjaclxsprv] {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-scanner-container.scanning[b-bjaclxsprv] {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.scan-overlay[b-bjaclxsprv] {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 12px;
}

.scan-line[b-bjaclxsprv] {
    position: absolute;
    left: 5%;
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    box-shadow: 0 0 8px var(--accent-primary);
    animation: scanMove-b-bjaclxsprv 2s ease-in-out infinite;
}

@keyframes scanMove-b-bjaclxsprv {
    0%, 100% { top: 10%; }
    50% { top: 90%; }
}

.scanner-placeholder[b-bjaclxsprv] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
    min-height: 200px;
    width: 100%;
}

.scanner-placeholder:hover[b-bjaclxsprv] {
    opacity: 0.8;
}

.scanner-error[b-bjaclxsprv] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    color: var(--danger);
    z-index: 10;
}

.scanner-error .material-icons[b-bjaclxsprv] {
    font-size: 3rem;
    opacity: 0.7;
}
/* /Components/Chat/ChatPanel.razor.rz.scp.css */
.avatar[b-qu6dk3agjc] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-back-btn[b-qu6dk3agjc] {
    display: none;
}

.chat-messages-container[b-qu6dk3agjc] {
    flex: 1;
    overflow-y: auto;
    padding: 0rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    word-break: break-all;
    word-wrap: break-word;
    line-break: loose;
    text-wrap-mode: wrap;
}

.message-wrapper[b-qu6dk3agjc] {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    position: absolute;
    padding-bottom: 10px;
    padding-top: 10px;
}

.message-wrapper.mine[b-qu6dk3agjc] {
    align-self: flex-end;
}

.message-wrapper.theirs[b-qu6dk3agjc] {
    align-self: flex-start;
}

.new-message-pill[b-qu6dk3agjc] {

    position: absolute;
    bottom: 100px;
    /* distance from bottom of wrapper */
    left: 50%;
    transform: translateX(-50%);

    background: #0078d4;
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeInUp-b-qu6dk3agjc 0.2s ease-out;
}

@keyframes fadeInUp-b-qu6dk3agjc {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
/* /Components/Chat/ContactsPanel.razor.rz.scp.css */
.relay-info[b-k3izbnl323] {
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.relays-no-relays-configured[b-k3izbnl323] {
    color: var(--text-muted);
    font-style: italic;
}

.new-contact-panel[b-k3izbnl323] {
    padding: 1rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-glass);
}
/* /Components/Chat/MessageComponent.razor.rz.scp.css */
.message-bubble[b-dcj6bzxncw] {
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 80%;
    /* Evita que los mensajes largos ocupen todo el ancho */
    overflow-wrap: anywhere;
}

/* Burbuja del usuario actual (Derecha) */
.message-bubble.mine[b-dcj6bzxncw] {
    background: var(--accent-gradient);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    margin-left: auto;
    /* Empuja a la derecha en Flexbox */
    margin-right: 1em;
    /* Empuja a la derecha en Flexbox */
}

/* Burbuja de otros (Izquierda) */
.message-bubble.theirs[b-dcj6bzxncw] {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    color: var(--text-main);
    /* Asegúrate de definir el color del texto */
    margin-left: 1em;
}

.message-inner[b-dcj6bzxncw] {
    display: flex;
}

/* My message */
.message-inner.mine[b-dcj6bzxncw] {
    align-self: flex-end;
}

/* Other user's message */
.message-inner.theirs[b-dcj6bzxncw] {
    align-self: flex-start;
}
/* /Components/LoadingOverlay.razor.rz.scp.css */
.loading-overlay[b-un9oxl8d0s] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-content: center;
    align-self: center;
    align-items: center;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(8px);
}

.loading-content[b-un9oxl8d0s] {
    text-align: center;
    z-index: 10000;
    pointer-events: none;
}

.loading-message[b-un9oxl8d0s] {
    color: white;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.loading-subtext[b-un9oxl8d0s] {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    animation: flicker-b-un9oxl8d0s 1.5s infinite;
}

.spinner-modern[b-un9oxl8d0s] {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin-b-un9oxl8d0s 1s ease-in-out infinite;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

@keyframes spin-b-un9oxl8d0s {
    to {
        transform: rotate(360deg);
    }
}

@keyframes flicker-b-un9oxl8d0s {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-6jxdja7zxm] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-6jxdja7zxm] {
    flex: 1;
}

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

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

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

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

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

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

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

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

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

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

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

    .top-row[b-6jxdja7zxm], article[b-6jxdja7zxm] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-4eaeho16ut] {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

.bi[b-4eaeho16ut] {
    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-4eaeho16ut] {
    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-4eaeho16ut] {
    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-4eaeho16ut] {
    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-4eaeho16ut] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

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

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

    .nav-item[b-4eaeho16ut]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

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

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

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

    .collapse[b-4eaeho16ut] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-4eaeho16ut] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/Chat.razor.rz.scp.css */


[b-qfnyjfmq44] .chat-screen {
    width: 100%!important; 
    height: calc(var(--vh, 1vh) * var(--h-factor));
    padding: 1rem;
    box-sizing: border-box;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1) 0%, var(--bg-base) 80%);
}
/* /Pages/Dialogs/ContactWizard/ContactWizardDialog.razor.rz.scp.css */
.wizard-container[b-tw9j0c25mz] {
    justify-self: center;
    min-width: 380px;
    max-width: 550px;
    padding: 1.5rem;
}

@media only screen and (max-width: 600px) {
    .wizard-container[b-tw9j0c25mz] {
        min-width: unset;
        width: 100%;
        padding: 1rem;
    }
}

.wizard-step[b-tw9j0c25mz] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.wizard-header[b-tw9j0c25mz] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.wizard-icon[b-tw9j0c25mz] {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

/* ─── Method cards ─── */

.method-card[b-tw9j0c25mz] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.right[b-tw9j0c25mz] {
    margin-left: auto;
}

.chevron-right[b-tw9j0c25mz] {
    margin-left: auto;
    color: var(--text-muted);
}

.method-card:hover[b-tw9j0c25mz] {
    background: var(--bg-surface-hover);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.method-card:active[b-tw9j0c25mz] {
    transform: translateY(0);
}

.method-icon[b-tw9j0c25mz] {
    font-size: 2rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* ─── QR display ─── */

.qr-display[b-tw9j0c25mz] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #AAA;
    border-radius: 5px;
    padding: 0.5rem;
    align-self: center;
    width: 100%;
    min-width: 100%;
    margin: -5;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.15);
}

.qr-display svg[b-tw9j0c25mz] {
    width: 100%;
    height: auto;
}

.scan-progress-container[b-tw9j0c25mz] {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid var(--border-glass);
}

.segment-grid[b-tw9j0c25mz] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.segment-pip[b-tw9j0c25mz] {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.segment-pip.scanned[b-tw9j0c25mz] {
    background: var(--success);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.segment-pip.missing[b-tw9j0c25mz] {
    background: rgba(255, 255, 255, 0.1);
}

/* ─── Validation error ─── */

.validation-error[b-tw9j0c25mz] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ─── Animations (reuse global) ─── */

.animate-fade-in[b-tw9j0c25mz] {
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* /Pages/Index.razor.rz.scp.css */
.welcome-card[b-0r43sl6l6n] {
    width: 100%;
    max-width: 480px;
    text-align: center;
    padding: 3rem 2rem;
}

.logo-text[b-0r43sl6l6n] {
    font-size: 3.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle[b-0r43sl6l6n] {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.action-buttons[b-0r43sl6l6n] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.w-100[b-0r43sl6l6n] {
    width: 100%;
}

.divider[b-0r43sl6l6n] {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: var(--text-muted);
}

.divider[b-0r43sl6l6n]::before,
.divider[b-0r43sl6l6n]::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-glass);
}

.divider span[b-0r43sl6l6n] {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.restore-section[b-0r43sl6l6n] {
    margin-top: 1.5rem;
    text-align: left;
}

.warning-text[b-0r43sl6l6n] {
    color: var(--danger);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.error-text[b-0r43sl6l6n] {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.mnemonic-box[b-0r43sl6l6n] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--accent-primary);
    word-spacing: 0.5rem;
    line-height: 1.5;
    user-select: all;
}

.spinner[b-0r43sl6l6n] {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin-b-0r43sl6l6n 1s ease-in-out infinite;
    margin: 0 auto 1.5rem auto;
}

@keyframes spin-b-0r43sl6l6n {
    to {
        transform: rotate(360deg);
    }
}

.unlock-section[b-0r43sl6l6n] {
    text-align: left;
    margin-top: 1rem;
}

.unlock-section h3[b-0r43sl6l6n] {
    text-align: center;
    margin-bottom: 1rem;
}

.unlock-section p[b-0r43sl6l6n] {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
