.SideNoteList {
    /* Fill the sidebar slot and scroll the list area (not the whole sidebar),
       matching the SidePinnedNoteList / SideSpecialCharacterView pattern. */
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.SideNoteList_searchBar {
    position: relative;
    flex: 0 0 auto;
    padding: 6px;
}

.SideNoteList_searchIcon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.6;
    font-size: 12px;
}

.SideNoteList_searchInput {
    padding-left: 28px;

    /* Liquid-glass treatment — same recipe used by SearchBox in MainToolbar
       (backdrop blur + saturate, glassSurfaceBackground fill, layered shadow
       with inset top highlight). Bootstrap's form-control border / focus
       shadow are overridden so the input reads as the same material as the
       toolbar SearchBox and NoteView cards instead of a generic Bootstrap
       form field. */
    border: 0 !important;
    /* !important because Bootstrap's `.form-control-sm` declares its own
       border-radius at equal specificity and loads later in the cascade. */
    border-radius: var(--cardBorderRadius) !important;
    background: var(--glassSurfaceBackground);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    backdrop-filter: blur(10px) saturate(180%);

    @media (prefers-color-scheme: light) {
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.04),
            0 4px 12px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
    @media (prefers-color-scheme: dark) {
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}

.SideNoteList_searchInput:focus {
    /* Replace Bootstrap's default focus shadow with the project-wide
       outline so the glass surface stays clean while focused. */
    outline: var(--focusOutline);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);

    @media (prefers-color-scheme: dark) {
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}

.SideNoteList_scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;

    /* Symmetric horizontal padding does two jobs at once:
         • on the RIGHT, keeps notes from visually touching the scrollbar gutter
         • on the LEFT, leaves room for the focused NoteView's 3px outline.
       The outline is drawn OUTSIDE the NoteView's border box and would
       otherwise be clipped by `.Sidebar_content { overflow: hidden }` (the
       panel-shrink fix we set in Sidebar.css). 6px is comfortably more than
       the 3px outline width and keeps the gap symmetrical with the search
       bar's padding above. */
    padding: 0 6px;
}

/* The embedded NoteList lives inside a narrow column — keep its own page-level
   layout/margins from leaking out and let it size to the panel. */
.SideNoteList_scroll .NoteList {
    width: 100%;
    margin: 0;
    padding: 0;
}
