/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-i2a6bpregt] {
    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-i2a6bpregt] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


/* /Components/Layout/NoSidebarLayout.razor.rz.scp.css */
.page[b-vlnyy0pwmb] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-vlnyy0pwmb] {
    flex: 1;
}

.sidebar[b-vlnyy0pwmb] {
    /*background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);*/
    background-image: none;
    background-color: rgb(5, 39, 103);
}

.top-row[b-vlnyy0pwmb] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: space-between;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-vlnyy0pwmb]  a, .top-row .btn-link[b-vlnyy0pwmb] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-vlnyy0pwmb] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-vlnyy0pwmb] {
        display: none;
    }

    .top-row.auth[b-vlnyy0pwmb] {
        justify-content: space-between;
    }

    .top-row a[b-vlnyy0pwmb], .top-row .btn-link[b-vlnyy0pwmb] {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-vlnyy0pwmb] {
        flex-direction: row;
    }

    .sidebar[b-vlnyy0pwmb] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-vlnyy0pwmb] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-vlnyy0pwmb], article[b-vlnyy0pwmb] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

.bottom-row[b-vlnyy0pwmb] {
    background-color: #f7f7f7;
    border-top: 1px solid #d6d5d5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    position: fixed; /* This will fix the position relative to the browser window */
    bottom: 0; /* This will align it with the bottom edge */
    left: 0; /* Align with the left edge */
    right: 0; /* Align with the right edge */
    z-index: 1000; /* High z-index to ensure it's above other content */
}

.cancel-button[b-vlnyy0pwmb], .back-button[b-vlnyy0pwmb], .submit-button[b-vlnyy0pwmb] {
    background-color: #808080; /* Gray background */
    color: white; /* White text */
    font-weight: bold; /* Bold text */
    border: none; /* No border */
    padding: 0.5rem 1rem; /* Some padding for aesthetics */
    border-radius: 4px; /* Rounded corners */
    cursor: pointer; /* Hand cursor on hover */
    margin-left: 1rem; /* Space from other items if any */
    /*margin-right: 1rem;  Space from other items if any */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

    .cancel-button:hover[b-vlnyy0pwmb], .back-button:hover[b-vlnyy0pwmb], .submit-button:hover[b-vlnyy0pwmb] {
        background-color: #666666; /* Darker gray on hover */
    }
/* /Components/Layout/TwoColumnLayout.razor.rz.scp.css */
#blazor-error-ui[b-5fhpkquq2f] {
    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-5fhpkquq2f] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
html[b-5fhpkquq2f],
body[b-5fhpkquq2f] {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* kill the outer scroll bar */
}

.layout.layout-2col[b-5fhpkquq2f] {
    display: grid;
    grid-template-columns: var(--left-width) 1fr;
    grid-template-rows: 1fr;
    gap: var(--gutter);
    height: 100%; /* use full body height */
    padding: var(--gutter);
    box-sizing: border-box;
    overflow: hidden; /* no outer scrolling from this container */
}



.content-area[b-5fhpkquq2f] {
    background: #0b0f14;
    color: #e5e7eb;
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    overflow: auto; /* RESTORE this � do NOT use hidden here */
}



.two-col-layout[b-5fhpkquq2f] {
    display: flex;
    height: 100%;
    overflow: hidden;
}

.left-nav[b-5fhpkquq2f] {
    width: 250px;
    flex-shrink: 0;
    overflow-y: auto;
}

.main-content[b-5fhpkquq2f] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* /Components/Pages/AccessDenied.razor.rz.scp.css */
.access-denied-container[b-58h7xzin31] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4; /* Or your theme's background color */
}

    .access-denied-container h2[b-58h7xzin31] {
        color: #333; /* Or your theme's main text color */
        margin-bottom: 20px;
    }

    .access-denied-container p[b-58h7xzin31] {
        color: #666; /* Or your theme's secondary text color */
        margin-bottom: 20px;
    }

    .access-denied-container button[b-58h7xzin31] {
        padding: 10px 15px;
        background-color: #007bff; /* Or your theme's primary color */
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .access-denied-container button:hover[b-58h7xzin31] {
            background-color: #0056b3; /* A darker shade of your theme's primary color */
        }
/* /Components/Pages/Admin/AgentProfiles.razor.rz.scp.css */
h3[b-omeko6nqvn] {
    font-size: 1.4rem;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.table[b-omeko6nqvn] {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #0b0f14;
    color: #e5e7eb;
    border: 1px solid #1f2937;
    border-radius: 8px;
    overflow: hidden;
}

    .table th[b-omeko6nqvn] {
        background-color: #15171c;
        color: #cbd5e1;
        padding: 10px;
        text-align: left;
        font-weight: 600;
        border-bottom: 1px solid #2d2f35;
    }

    .table td[b-omeko6nqvn] {
        padding: 10px;
        border-bottom: 1px solid #1f2937;
        font-size: 0.95rem;
    }

    .table tr:hover[b-omeko6nqvn] {
        background-color: #1f2128;
    }


/* /Components/Pages/Admin/Companies.razor.rz.scp.css */
/* Page header */
h3[b-73hklnr5px] {
    font-size: 1.4rem;
    color: #e5e7eb; /* matches dashboard text color */
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Table styling */
.table[b-73hklnr5px] {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-family: inherit;
    color: #d1d5db; /* soft gray for readability */
    background: #0b0f14; /* match panels */
    border: 1px solid #1f2937;
    border-radius: 8px;
}

    .table th[b-73hklnr5px] {
        background-color: #1f2128; /* dark header row */
        color: #e5e7eb;
        padding: 10px;
        text-align: left;
        font-weight: 600;
        border-bottom: 1px solid #2d2f35;
    }

    .table td[b-73hklnr5px] {
        border-top: 1px solid #2d2f35;
        padding: 10px;
        color: #cbd5e1;
    }

    .table tr:hover td[b-73hklnr5px] {
        background: #15171c; /* subtle hover highlight */
    }




/* /Components/Pages/Admin/VectorStoreFiles.razor.rz.scp.css */
h3[b-txj1tv3q1s] {
    font-size: 1.4rem;
    color: #e5e7eb; /* light text like dashboard */
    margin-bottom: 1rem;
}

/* Table styling consistent with Companies page */
.table[b-txj1tv3q1s] {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-family: inherit;
    background: #0b0f14; /* match panels */
    color: #e5e7eb;
    border: 1px solid #1f2937;
    border-radius: 8px;
    overflow: hidden;
}

    .table th[b-txj1tv3q1s] {
        background-color: #15171c;
        color: #cbd5e1;
        padding: 10px;
        text-align: left;
        font-weight: 600;
        border-bottom: 1px solid #2d2f35;
    }

    .table td[b-txj1tv3q1s] {
        padding: 10px;
        border-bottom: 1px solid #1f2937;
        font-size: 0.95rem;
    }

    .table tr:hover[b-txj1tv3q1s] {
        background-color: #1f2128;
    }
    /* Add subtle alignment for action buttons */
    .table td:last-child[b-txj1tv3q1s] {
        text-align: right;
    }



/* /Components/Pages/Admin/VectorStores.razor.rz.scp.css */
h3[b-exk13i88t2] {
    font-size: 1.4rem;
    color: #e5e7eb;
    margin-bottom: 1rem;
    font-weight: 600;
}

.table[b-exk13i88t2] {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-family: inherit;
    color: #d1d5db;
    background: #0b0f14;
    border: 1px solid #1f2937;
    border-radius: 8px;
}

    .table th[b-exk13i88t2] {
        background-color: #1f2128;
        color: #e5e7eb;
        padding: 10px;
        text-align: left;
        font-weight: 600;
        border-bottom: 1px solid #2d2f35;
    }

    .table td[b-exk13i88t2] {
        border-top: 1px solid #2d2f35;
        padding: 10px;
        color: #cbd5e1;
    }

    .table tr:hover td[b-exk13i88t2] {
        background: #15171c;
    }


/* /Components/Pages/AIOutputCard.razor.rz.scp.css */
.aiout-card[b-7p824oitlc] {
    position: relative;
    border: 1px solid rgba(255,255,255,.10);
    background: #2a2a2a;
    color: #eaeaea;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 16px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    transition: border-color .2s ease, background .2s ease;
}

    .aiout-card:hover[b-7p824oitlc] {
        border-color: rgba(255,255,255,.18);
        background: #303030;
    }

.aiout-hdr[b-7p824oitlc] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aiout-badge[b-7p824oitlc] {
    font-size: .72rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: #3a3a3a;
    color: #cfcfcf;
    border: 1px solid rgba(255,255,255,.12);
}

.aiout-title[b-7p824oitlc] {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    color: #fff;
}

.aiout-copy[b-7p824oitlc] {
    margin-left: auto;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    color: inherit;
    transition: background .15s ease;
}

    .aiout-copy:hover[b-7p824oitlc] {
        background: rgba(255,255,255,.08);
    }

.aiout-ico[b-7p824oitlc] {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: .9;
}

.aiout-body[b-7p824oitlc] {
    margin-top: 8px;
    line-height: 1.5;
}

/* Markdown text + code blocks */
.aiout-pre[b-7p824oitlc] {
    white-space: pre-wrap;
    margin: 0;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    line-height: 1.4;
    background: #1f1f1f;
    padding: 8px 10px;
    border-radius: 8px;
    overflow-x: auto;
}

/* Chart or image rendering */
/* Keep charts and images proportional inside AIOutputCard */
.aiout-body img[b-7p824oitlc],
.aiout-body .ai-chart[b-7p824oitlc] {
    display: block;
    max-width: 100%; /* responsive scaling */
    height: auto; /* preserve aspect ratio */
    border-radius: 8px;
    margin: 8px auto;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    object-fit: contain; /* prevents distortion */
}


/* Tables (Markdown-generated or split) */
.table-bubble table[b-7p824oitlc] {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0;
}

.table-bubble th[b-7p824oitlc],
.table-bubble td[b-7p824oitlc] {
    border: 1px solid rgba(255,255,255,.12);
    padding: 6px 10px;
    text-align: left;
    font-size: .88rem;
}

.table-bubble th[b-7p824oitlc] {
    background: #3a3a3a;
    color: #fff;
}

.table-bubble tr:nth-child(even) td[b-7p824oitlc] {
    background: rgba(255,255,255,.03);
}

/* Copy toast */
.aiout-toast[b-7p824oitlc] {
    position: absolute;
    top: 10px;
    right: 42px;
    background: #16a34a;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .75rem;
    opacity: 0;
    animation: fadeInOut-b-7p824oitlc 1.2s ease forwards;
}

@keyframes fadeInOut-b-7p824oitlc {
    0% {
        opacity: 0;
        transform: translateY(-4px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-4px);
    }
}


    .aiout-copy:hover[b-7p824oitlc] {
        background: rgba(255,255,255,.08);
    }

.aiout-ico[b-7p824oitlc] {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: .9;
}

.aiout-body[b-7p824oitlc] {
    margin-top: 8px;
}

.aiout-pre[b-7p824oitlc] {
    white-space: pre-wrap;
    margin: 0;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    line-height: 1.4;
}

.aiout-toast[b-7p824oitlc] {
    position: absolute;
    top: 10px;
    right: 42px;
    background: #16a34a;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .75rem;
}

/* === Add to Library ("pin") icon === */
.aiout-actions .aiout-pin[b-7p824oitlc] {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

    /* Match other icons in size and tint */
    .aiout-actions .aiout-pin .aiout-ico[b-7p824oitlc] {
        width: 18px;
        height: 18px;
        fill: #e5e7eb; /* same as other icon stroke/fill */
        opacity: 0.85;
    }

    /* Hover / focus feedback */
    .aiout-actions .aiout-pin:hover[b-7p824oitlc] {
        background-color: rgba(255,255,255,0.06); /* subtle highlight */
    }

        .aiout-actions .aiout-pin:hover .aiout-ico[b-7p824oitlc] {
            opacity: 1;
        }

    /* Optional: when clicked (active) */
    .aiout-actions .aiout-pin:active[b-7p824oitlc] {
        transform: scale(0.95);
    }

/* Keep spacing consistent between icons */
.aiout-actions .aiout-pin[b-7p824oitlc],
.aiout-actions .aiout-copy[b-7p824oitlc] {
    margin-left: 2px;
}

/* If you want a “saved” state visual (optional) */
.aiout-pin.saved .aiout-ico[b-7p824oitlc] {
    fill: #60a5fa; /* light blue tint for "added to library" */
    opacity: 1;
}


/* Thumbnail container keeps rows tidy */
.aiout-card .img-frame[b-7p824oitlc] {
    width: 100%;
    background: #0b0f14;
    border-radius: 10px;
    overflow: hidden;
}

.aiout-card .aiout-img[b-7p824oitlc] {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px; /* cap thumbnail height */
    object-fit: contain; /* letterbox if aspect ratio differs */
    border-radius: 10px;
}

/* /Components/Pages/ChatArea.razor.rz.scp.css */
/* /Components/Pages/Communications.razor.rz.scp.css */

.page-header[b-nhgefzbkvj] {
    margin-bottom: 4px;
}

/* toolbar & panel shell */
.page-toolbar[b-nhgefzbkvj] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.panel[b-nhgefzbkvj] {
    background: #111827;
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid #1f2937;
    /* optional subtle elevation */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* ---------- main layout ---------- */

/* container for this page body (inside TwoColumnLayout main area) */
.communications-layout[b-nhgefzbkvj] {
    display: flex;
    flex-direction: column;
    height: 100%; /* fill the main content area */
    min-height: 0; /* allow children to shrink for flex scrolling */
    gap: 10px; /* small gap between email panel and chat panel */
}

/* TOP: emails area with fixed max height */
.comm-top[b-nhgefzbkvj] {
    flex: 0 0 auto;
    max-height: 40vh; /* or use a fixed px height, e.g. 280px */
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* panel that holds title + list */
.emails-panel[b-nhgefzbkvj] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    /* reduce right padding so we can align scrollbar cleanly */
    padding-right: 8px;
}

/* scrolling list of emails inside the panel */
.email-list[b-nhgefzbkvj] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-top: 0.5rem;
    /* key part: pull scrollbar to edge but keep text gutter */
    padding-right: 8px;
    margin-right: -8px;
}


/* BOTTOM: chat section */
.comm-bottom[b-nhgefzbkvj] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}


/* Chat panel wrapper: keep spacing & border radius but NOT the dark panel background */
.chat-panel[b-nhgefzbkvj] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: transparent !important; /* key change */
    border: none !important; /* remove dark border */
    box-shadow: none !important; /* remove panel shadow */
    padding: 0; /* let ChatArea control its own padding */
}


/* ---------- email list cards ---------- */

.email-card[b-nhgefzbkvj] {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #1f2937;
    cursor: pointer;
}

    .email-card.unread .email-subject[b-nhgefzbkvj] {
        font-weight: 600;
    }

.email-header[b-nhgefzbkvj] {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 2px;
}

.email-subject-row[b-nhgefzbkvj] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.email-unread-dot[b-nhgefzbkvj] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2b6cb0;
    flex-shrink: 0;
}

.email-subject[b-nhgefzbkvj] {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
}

.email-snippet[b-nhgefzbkvj] {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* ---------- status & misc ---------- */

.status-warn[b-nhgefzbkvj] {
    color: #f97316;
    font-size: 0.85rem;
}

.meta[b-nhgefzbkvj] {
    color: #9ca3af;
    font-size: 0.8rem;
}

.nav-btn[disabled][b-nhgefzbkvj] {
    opacity: 0.5;
    cursor: default;
}

/* ---------- modal ---------- */

.email-modal-backdrop[b-nhgefzbkvj] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.email-modal[b-nhgefzbkvj] {
    background: #111827;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    position: relative;
    display: flex;
    flex-direction: column;
}

.email-modal-close[b-nhgefzbkvj] {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.email-modal-body[b-nhgefzbkvj] {
    margin-top: 0.75rem;
    white-space: pre-wrap; /* preserve newlines */
    overflow-y: auto;
    flex: 1 1 auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
}
/* /Components/Pages/Library.razor.rz.scp.css */
/* library */
.library-wrapper[b-xcvv7kwiuj] {
    padding: 12px;
}

.library-header[b-xcvv7kwiuj] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.lib-search[b-xcvv7kwiuj] {
    width: 280px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.lib-tabs[b-xcvv7kwiuj] {
    display: flex;
    gap: 8px;
    margin: 8px 0 12px;
}

.lib-tab[b-xcvv7kwiuj] {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    color: #fff;
    cursor: pointer;
}

    .lib-tab.active[b-xcvv7kwiuj] {
        background: rgba(255,255,255,0.12);
    }

.sources-list[b-xcvv7kwiuj] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.source-row[b-xcvv7kwiuj] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease;
}

    .source-row:hover[b-xcvv7kwiuj] {
        background: rgba(255,255,255,0.07);
        border-color: rgba(255,255,255,0.12);
    }

    .source-row .meta[b-xcvv7kwiuj] {
        display: flex;
        flex-direction: column;
    }

        .source-row .meta .dim[b-xcvv7kwiuj] {
            opacity: .7;
            font-size: .9rem;
            margin-top: 3px;
        }

.row-actions .nav-btn[b-xcvv7kwiuj] {
    text-decoration: none;
}
.lib-toolbar[b-xcvv7kwiuj] {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.lib-tab[b-xcvv7kwiuj] {
    padding: 6px 10px;
    border: 1px solid #1f2937;
    border-radius: 8px;
    background: #0b0f14;
    color: #e5e7eb;
    cursor: pointer;
}

    .lib-tab.active[b-xcvv7kwiuj] {
        outline: 1px solid #334155;
    }

.lib-empty[b-xcvv7kwiuj] {
    opacity: .8;
    padding: 24px 8px;
    text-align: center;
}

.lib-grid[b-xcvv7kwiuj] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
}

.lib-card[b-xcvv7kwiuj] {
    position: relative;
    background: #0b0f14;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 8px;
}

.lib-card-actions[b-xcvv7kwiuj] {
    position: absolute;
    top: 5px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 1; /* ensure it sits above card content */
}


.lib-remove[b-xcvv7kwiuj] {
    background: transparent;
    border: 0;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px;
}

    .lib-remove .ico[b-xcvv7kwiuj] {
        width: 18px;
        height: 18px;
        fill: #e5e7eb;
        opacity: .85;
    }

    .lib-remove:hover[b-xcvv7kwiuj] {
        background: rgba(255,255,255,0.06);
    }

        .lib-remove:hover .ico[b-xcvv7kwiuj] {
            opacity: 1;
        }

.lib-card-meta[b-xcvv7kwiuj] {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    opacity: .8;
    margin-top: 8px;
}

.lib-more[b-xcvv7kwiuj] {
    display: flex;
    justify-content: center;
    margin: 14px 0 4px;
}

.btn-more[b-xcvv7kwiuj] {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #1f2937;
    background: #0b0f14;
    color: #e5e7eb;
    cursor: pointer;
}

    .btn-more:disabled[b-xcvv7kwiuj] {
        opacity: .6;
        cursor: not-allowed;
    }
/* /Components/Pages/Login.razor.rz.scp.css */
.login-wrapper[b-um696cr7lc] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--bg-color);
}

.login-card[b-um696cr7lc] {
    background: #0b0f14;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 2rem;
    width: 500px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    color: #e5e7eb;
    text-align: center;
}

.newlogin-logo img[b-um696cr7lc] {
    max-width: 240px;
    margin-bottom: 2rem; /* Reduced from 5rem for better balance */
    opacity: 0.9;
}

.newlogin-form[b-um696cr7lc] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Fixed typo from 30rem to 1.5rem for reasonable spacing */
    margin-top: 1rem; /* Reduced from 30rem for better layout */
}

.form-group[b-um696cr7lc] {
    display: flex;
    flex-direction: column; /* Changed to column for better control */
    align-items: stretch; /* Ensures inputs stretch to full width */
    margin-bottom: 1rem; /* Consistent spacing between form groups */
}

    .form-group label[b-um696cr7lc] {
        text-align: left; /* Keep left-aligned labels */
        margin-bottom: 0.5rem; /* Space between label and input */
        font-size: 1rem;
    }

    .form-group input[b-um696cr7lc] {
        width: 100%; /* Full width of the parent (.form-group) */
        padding: 12px;
        border-radius: 8px;
        border: 1px solid #374151;
        background: #15171c;
        color: #e5e7eb;
        box-sizing: border-box; /* Ensures padding doesn't affect width */
    }

.dark-input:focus[b-um696cr7lc] {
    outline: none;
    border-color: #2563eb;
    background: #1f2128;
}

.register-link[b-um696cr7lc] {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #cbd5e1; /* body text color */
}

    .register-link a[b-um696cr7lc] {
        color: #e5e7eb; /* light gray – highly readable on dark background */
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .register-link a:hover[b-um696cr7lc] {
            color: #ffffff; /* pure white on hover for clarity */
            text-decoration: underline;
        }



.login-result[b-um696cr7lc] {
    margin-top: 1.5rem;
    color: #f87171;
    font-size: 0.95rem;
}
/* /Components/Pages/RegisterUser.razor.rz.scp.css */
/* ===== Shared Auth Theme (Login + Register) ===== */

/* Wrappers */
.auth-wrapper[b-v9l5pllauy],
.login-wrapper[b-v9l5pllauy] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* use min-height so long forms don't overflow */
    background: var(--bg-color);
    padding: 2rem; /* breathing room on small screens */
}

/* Card */
.auth-card[b-v9l5pllauy],
.login-card[b-v9l5pllauy] {
    background: #0b0f14;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    color: #e5e7eb;
    text-align: left;
    position: relative; /* <-- add this so .close-btn anchors to the card */
}

/* Replace .auth-header h2 / .auth-header .sub with these (or keep yours if you prefer) */
.auth-title[b-v9l5pllauy] {
    margin: 0 0 .25rem;
    font-size: 1.4rem;
    font-weight: 650;
}

.auth-sub[b-v9l5pllauy] {
    opacity: .9;
    margin: 0 0 1rem;
}

/* Close button (you already added this; keep as-is) */
.close-btn[b-v9l5pllauy] {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

    .close-btn:hover[b-v9l5pllauy] {
        color: #fff;
    }


/* Register page card can be wider; keep login compact below */
.auth-card[b-v9l5pllauy] {
    max-width: 760px;
}

.login-card[b-v9l5pllauy] {
    max-width: 500px;
}



/* Grid for register form */
.grid-2[b-v9l5pllauy] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid-2[b-v9l5pllauy] {
        grid-template-columns: 1fr 1fr;
    }
}

/* Unified form groups */
.form-group[b-v9l5pllauy],
.form-field[b-v9l5pllauy] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    margin-bottom: 1rem;
}

    .form-group label[b-v9l5pllauy],
    .form-field label[b-v9l5pllauy] {
        text-align: left;
        font-size: 1rem;
    }

    /* Inputs (dark theme) */
    .form-group input[b-v9l5pllauy],
    .form-field input[b-v9l5pllauy],
    .form-field textarea[b-v9l5pllauy],
    .dark-input[b-v9l5pllauy] {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid #374151;
        background: #15171c;
        color: #e5e7eb;
        box-sizing: border-box;
    }

        .dark-input:focus[b-v9l5pllauy],
        .form-group input:focus[b-v9l5pllauy],
        .form-field input:focus[b-v9l5pllauy],
        .form-field textarea:focus[b-v9l5pllauy] {
            outline: none;
            border-color: #2563eb;
            background: #1f2128;
        }

/* Password eye overlay (used by both password & confirm password) */
.password-wrapper[b-v9l5pllauy] {
    position: relative;
    display: flex;
    align-items: center;
}

    .password-wrapper input[b-v9l5pllauy] {
        width: 100%;
        padding-right: 40px; /* space for the eye icon */
    }

.password-toggle[b-v9l5pllauy] {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .password-toggle:hover[b-v9l5pllauy] {
        color: #3b82f6;
    }

/* Actions row (register) */
.actions[b-v9l5pllauy] {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

/* Buttons (reuse existing primary) */
.btn[b-v9l5pllauy] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-ghost[b-v9l5pllauy] {
    border-color: #2d2f35;
    background: transparent;
    color: #cbd5e1;
}

/* Optional spinner (only if you show a “Registering…” state) */
.spinner[b-v9l5pllauy] {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    display: inline-block;
    animation: spin-b-v9l5pllauy 0.8s linear infinite;
}

@keyframes spin-b-v9l5pllauy {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Existing Login Bits (kept) ===== */

.newlogin-logo img[b-v9l5pllauy] {
    max-width: 240px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newlogin-form[b-v9l5pllauy] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.btn-loginprimary[b-v9l5pllauy] {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #2d2f35;
    background: #15171c;
    color: #cbd5e1;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
    margin-top: 1.5rem;
}

    .btn-loginprimary:hover[b-v9l5pllauy] {
        background: #1f2128;
        border-color: #2563eb;
        color: #fff;
    }

.register-link[b-v9l5pllauy] {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #cbd5e1;
}

    .register-link a[b-v9l5pllauy] {
        color: #3b82f6;
        text-decoration: none;
    }

        .register-link a:hover[b-v9l5pllauy] {
            text-decoration: underline;
        }

.login-result[b-v9l5pllauy] {
    margin-top: 1.5rem;
    color: #f87171;
    font-size: 0.95rem;
}
/* ===== Close / Cancel button (top right) ===== */
.close-btn[b-v9l5pllauy] {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

    .close-btn:hover[b-v9l5pllauy] {
        color: #fff;
    }
/* /Components/Pages/Settings.razor.rz.scp.css */

.settings-wrap.minimal[b-4yx3gstjny] {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 18px 28px;
}

.settings-header h2[b-4yx3gstjny] {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.card[b-4yx3gstjny] {
    background: #0b0f14;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 14px;
}

.row[b-4yx3gstjny] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choices[b-4yx3gstjny] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.opt[b-4yx3gstjny] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.note[b-4yx3gstjny] {
    color: #9aa4af;
    margin-left: 28px;
}

.actions[b-4yx3gstjny] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}



.status[b-4yx3gstjny] {
    color: #9aa4af;
    font-size: .9rem;
}
/* /Components/Pages/signout.razor.rz.scp.css */
.auth-wrapper[b-fccwlij6bo] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--bg-color); /* same as dashboard */
}

.auth-card[b-fccwlij6bo] {
    background: #0b0f14;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 2.5rem;
    width: 420px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    color: #e5e7eb;
    text-align: center;
}

.auth-logo img[b-fccwlij6bo] {
    max-width: 180px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.auth-title[b-fccwlij6bo] {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.auth-sub[b-fccwlij6bo] {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* Themed button – same as other pages */
.btn-loginprimary[b-fccwlij6bo] {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #2d2f35;
    background: #15171c;
    color: #cbd5e1;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

    .btn-loginprimary:hover[b-fccwlij6bo] {
        background: #1f2128;
        border-color: #2563eb;
        color: #fff;
    }
/* /Components/Pages/SourcesPanel.razor.rz.scp.css */
.sources-header[b-qbnoexotxu] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

    .sources-header h3[b-qbnoexotxu] {
        margin: 0;
        font-size: 1.1rem;
        color: #e5e7eb;
    }

/* Web Search chip */
.chip[b-qbnoexotxu] {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid #2d2f35;
    color: #cbd5e1;
    background: #12151b;
    opacity: 0.9;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip-web[b-qbnoexotxu] {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15) inset;
}

    .chip-web:hover[b-qbnoexotxu],
    .chip-web:focus[b-qbnoexotxu] {
        background: #1d2531;
        border-color: #3b82f6;
        color: #e0e7ff;
    }

/* spacing between title and chip */
.sources-header h3 + .chip[b-qbnoexotxu] {
    margin-left: 0.5rem;
}
