LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
/*
* The sidebar is a LIGHT surface.
*
* It has been three colours: a hardcoded #0d3a63 navy, then `var(--primary)`
* violet (which it shared with the top nav). The Figma design puts the nav on
* the same white plane as the rest of the shell and keeps the brand violet for
* the ACTIVE item only, so this is now `--sidebar` -- the token that exists for
* exactly this surface and that follows light/dark on its own.
*
* Every rule below is therefore written for a light surface: `--sidebar-
* foreground` text, `--sidebar-border` hairlines, and icons tinted through
* `currentColor`. Putting the background back to a dark value without also
* reverting those would leave dark-on-dark text.
*/
.side-bar {
background-color: var(--sidebar);
/*
* The nav and the content area are both white now. Without this hairline the
* boundary between them only exists where an active pill happens to sit.
*/
border-inline-end: 1px solid var(--sidebar-border);
overflow: hidden;
height: 100%;
}
/* Ant Design's internal wrapper - needs flex layout for scroll */
.side-bar .ant-layout-sider-children {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
/* Wrapper for scrollable content - scrollbar hidden but scrollable */
.sidebar-content-wrapper {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: none;
}
.sidebar-content-wrapper::-webkit-scrollbar {
display: none;
}
/*
* The collapsed rail scrolls too.
*
* This rule used to set `overflow-y: hidden`, and its comment said "hide
* scrollbar" — but the scrollbar is already hidden by `scrollbar-width: none`
* and the ::-webkit-scrollbar rule above. Setting `hidden` did not hide a
* scrollbar, it disabled SCROLLING: the collapsed rail needs 929px for its
* icons in a 668px viewport, so the bottom entries were unreachable on any
* window shorter than ~1000px.
*/
.side-bar.ant-layout-sider-collapsed .sidebar-content-wrapper {
overflow-y: auto;
}
/* Toggle container - fixed at bottom */
.sidebar-toggle-container.ant-btn {
display: flex;
justify-content: center;
align-items: center;
padding: 8px;
height: auto;
border: none;
border-top: 1px solid var(--sidebar-border);
border-radius: 0;
flex-shrink: 0;
background: transparent;
width: 100%;
}
.sidebar-toggle-container.ant-btn:hover {
background: var(--sidebar-accent);
}
.sidebar-toggle-icon {
color: var(--muted-foreground);
font-size: 13px;
/* width/height, not font-size alone: antd shipped an icon FONT (sized by
* font-size); lucide ships SVGs, which ignore it and fall back to their
* own 24px default. font-size is kept for any text in the same element. */
width: 13px;
height: 13px;
transition: color 0.2s;
}
/*
* The pinned state just needs to read as "on" against the muted rest colour
* above. It has been #1890ff (antd's default blue) and then #ffffff for the
* violet bar; on a light surface the brand violet is both on-palette and the
* same accent the active item uses, so the two agree.
*/
.sidebar-toggle-icon.pinned {
color: var(--sidebar-primary);
}
.secondary-list-wrapper {
padding: 10px 0px;
}
.secondary-list-wrapper .sidebar-item-icons {
margin-top: 1;
height: auto;
width: 25px;
}
.side-bar .menu-item-body {
padding: 10px 0px;
width: 100%;
}
/*
* The menu icons are single-colour SVGs with `fill="#90A4B7"` baked in -- a
* slate picked for the old navy sidebar. They arrive as a per-item `src`, so
* `color` cannot reach them; the file used to recolour them wholesale with
* `filter: brightness(0) invert(1)` to force them white for the dark surface.
*
* That filter can reach black or white but not an arbitrary hue, and the
* design needs the ACTIVE icon violet. So the SVG is used as a MASK over a
* `currentColor` fill instead: the icon takes whatever colour its row already
* has, which lets the active rule below tint label and icon in one
* declaration. `--menu-item-icon` is set per item in SideNavBar.jsx.
*/
.side-bar .menu-item-icon {
/*
* Was `width: 25px; height: auto` on an <img>. A masked span has no
* intrinsic size, so the height must be stated; `contain` keeps the 20px
* artwork at 20px inside the 25px column the collapsed rail is spaced for.
*/
/*
* `display` is load-bearing: this replaced an <img>, where width/height
* apply intrinsically. A <span> is inline by default, so both were ignored
* and the icon collapsed to a 0x0 box (present, masked, and invisible).
*/
display: inline-block;
width: 25px;
height: 20px;
flex-shrink: 0;
background-color: currentColor;
mask: var(--menu-item-icon) no-repeat center / contain;
-webkit-mask: var(--menu-item-icon) no-repeat center / contain;
}
.sidebar-footer-icons {
color: var(--sidebar-foreground);
font-size: 20px;
/* width/height, not font-size alone: antd shipped an icon FONT (sized by
* font-size); lucide ships SVGs, which ignore it and fall back to their
* own 24px default. font-size is kept for any text in the same element. */
width: 20px;
height: 20px;
}
.sidebar-footer-text {
color: var(--sidebar-foreground);
padding-left: 10px;
}
.space-styles {
cursor: pointer;
padding: 10px 8px;
border-radius: 8px;
width: 100%;
/* Sets `currentColor` for the masked icon as well as the label. */
color: var(--sidebar-foreground);
}
/*
* Hover and active are washes of the brand colour rather than named tints:
* `color-mix` tracks `--primary` in both light and dark, the same reasoning
* that made the violet sidebar use rgba(255,255,255,.16) instead of naming a
* second colour. Deliberately NOT `--sidebar-accent`, which is a neutral grey
* and would drop the violet the design puts on the selected item.
*/
.space-styles:hover {
background: color-mix(in srgb, var(--primary) 8%, transparent);
}
/*
* `--primary` itself (#6f5cef) measures 4.04:1 on this wash -- under AA for
* the 13px label. `--violet-600` is the palette's own next step down, still
* reads as the same accent, and clears it at 5.2:1.
*
* Dark mode needs the opposite direction, not the same value: there the wash
* sits on a near-black sidebar, so a DARKER violet would be worse. Hence the
* override rather than one theme-agnostic colour.
*/
.space-styles-active,
.space-styles-active:hover {
background: color-mix(in srgb, var(--primary) 12%, transparent);
color: var(--violet-600);
}
.dark .space-styles-active,
.dark .space-styles-active:hover {
color: var(--violet-300);
}
.space-styles-disable {
cursor: not-allowed;
}
/* Section labels (BUILD / MANAGE / REVIEW) are secondary to the items. */
.sidebar-main-heading {
color: var(--muted-foreground);
font-weight: 600;
font-size: 15px;
}
/*
* Was rgba(255,255,255,.85) for the violet surface. antd's Typography sets its
* own colour, so this is stated rather than inherited from `.space-styles`;
* the active override below then has to be stated too.
*/
.sidebar-item-text {
color: var(--sidebar-foreground);
text-align: left;
}
/* `currentColor` so the label follows the row's per-theme active colour
* above instead of restating it twice. */
.space-styles-active .sidebar-item-text {
color: currentColor;
}
/*
* The 0.8 wash reads fine for the description on the plain surface (9.2:1),
* but on the active row's violet it falls to 2.97:1. 11px is normal text for
* WCAG, so it gets no large-text exemption -- the active row states it at
* full strength.
*/
.space-styles-active .fs-11 {
opacity: 1;
}
.slider-wrap {
padding: 12px;
}
.collapse-footer {
width: 65px;
}
.full-footer {
width: 240px;
}
/* Name kept (used by SideNavBar.jsx); the value follows the 13px body size. */
.fs-14 {
font-size: 13px;
}
.fs-11 {
font-size: 11px;
opacity: 0.8;
}
.main-slider {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.sidebar-divider {
background-color: var(--sidebar-border);
border-color: var(--sidebar-border);
margin: 10px 0;
}
/* A lucide SVG (stroke: currentColor), so it follows the row like the masked
* icons do -- no separate active/hover rules needed. */
.sidebar-antd-icon {
font-size: 22px;
color: inherit;
width: 25px;
display: flex;
align-items: center;
justify-content: center;
}
.sidebar-menu-tag {
margin-left: 6px;
font-size: 10px;
line-height: 16px;
padding: 0 4px;
border-radius: 4px;
}