/* icons: local sprite, sized and coloured by the surrounding text */
.lz-icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex-shrink: 0; }

/* the app container dims while a page is being fetched */
.lz-app { transition: opacity .15s; }
.lz-app.lz-busy { opacity: .5; pointer-events: none; }

/* sidebar */
/* full width: sidebar flush left, content fills the rest */
.lz-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); min-height: 100vh; }
.lz-aside { position: sticky; top: 0; align-self: start; height: 100vh; background: var(--bs-body-bg); overflow-y: auto; scrollbar-width: none; padding: 1rem; border-right: 1px solid var(--bs-border-color); }
.lz-aside::-webkit-scrollbar { display: none; }
.lz-main { padding: 1rem 1.5rem; }
.lz-topbar, .lz-backdrop { display: none; }
.lz-burger { position: relative; width: 2.5rem; height: 2.5rem; border: 0; border-radius: .6rem; background: none; color: inherit; }
.lz-burger:hover { background: var(--bs-tertiary-bg); }
.lz-burger span, .lz-burger span::before, .lz-burger span::after { position: absolute; left: .6rem; width: 1.3rem; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s; content: ""; }
.lz-burger span { top: calc(50% - 1px); }
.lz-burger span::before { left: 0; top: -6px; }
.lz-burger span::after { left: 0; top: 6px; }
.lz-open .lz-burger span { background: none; }
.lz-open .lz-burger span::before { transform: translateY(6px) rotate(45deg); }
.lz-open .lz-burger span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 991.98px) {
  .lz-layout { grid-template-columns: minmax(0, 1fr); }
  .lz-topbar { display: flex; align-items: center; gap: .5rem; position: sticky; top: 0; z-index: 1020; padding: .5rem 1rem; background: var(--bs-body-bg); border-bottom: 1px solid var(--bs-border-color); }
  .lz-aside { position: fixed; inset: 0 auto 0 0; z-index: 1040; width: min(20rem, 85vw); height: 100dvh; background: var(--bs-body-bg); border-right: 0; box-shadow: 0 0 2rem rgb(0 0 0 / .25); transform: translateX(-100%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .lz-open .lz-aside { transform: none; visibility: visible; }
  .lz-backdrop { position: fixed; inset: 0; z-index: 1030; background: rgb(0 0 0 / .4); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .lz-open .lz-backdrop { display: block; opacity: 1; pointer-events: auto; }
  .lz-main { padding: 1rem; }
  .lz-main form .form-control.w-auto { flex: 1 1 100%; }
  .lz-main form .form-select.w-auto { flex: 1 1 auto; }
  .lz-app > .alert { margin: 1rem 1rem 0; }
}
.lz-sidebar .nav-link, .lz-sidebar ul.list-unstyled a { display: flex; align-items: center; gap: .5rem; padding: .35rem .6rem; border-radius: .5rem; transition: background-color .15s; }
.lz-sidebar .nav-link { padding-left: .6rem !important; }
.lz-sidebar a:hover { background: var(--bs-tertiary-bg); }
.lz-sidebar a.fw-bold { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.lz-sidebar summary { cursor: pointer; }
.lz-sidebar h2 { margin-top: 1rem; text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; }
.lz-sidebar ul.list-unstyled a, .lz-sidebar .nav-link { min-height: 2.25rem; }

/* toolbar and list polish */
.lz-main form .form-control:focus, .lz-main form .form-select:focus { box-shadow: 0 0 0 .2rem rgb(var(--bs-primary-rgb) / .2); }
.lz-item.card { transition: box-shadow .15s, transform .15s; }
.lz-item.card:hover { box-shadow: 0 .5rem 1.25rem rgb(0 0 0 / .1); transform: translateY(-2px); }
@media (max-width: 575.98px) { .lz-btn { width: 2.5rem; height: 2.5rem; } .lz-main > form:first-child .btn { padding-inline: .75rem; } }
@media (prefers-reduced-motion: reduce) { .lz-aside, .lz-backdrop, .lz-burger span, .lz-burger span::before, .lz-burger span::after, .lz-item.card { transition: none; } }

/* forms and buttons */
.lz-app .form-control, .lz-app .form-select, .lz-app .btn { border-radius: .6rem; }
.lz-app .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; transition: background-color .15s, border-color .15s, transform .1s; }
.lz-app .btn:active { transform: scale(.97); }
.lz-app .btn-group .btn { border-radius: 0; }
.lz-app .btn-group .btn:first-child { border-radius: .6rem 0 0 .6rem; }
.lz-app .btn-group .btn:last-child { border-radius: 0 .6rem .6rem 0; }

/* icon buttons on bookmarks, always visible */
.lz-btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: .5rem; background: none; color: var(--bs-secondary-color); transition: background-color .15s, color .15s; }
.lz-btn:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.lz-btn-danger:hover { background: var(--bs-danger-bg-subtle); color: var(--bs-danger); }

/* cards and rows */
.lz-item.card { border-radius: .9rem; overflow: hidden; }
.lz-item:not(.card) { border-radius: .5rem; padding-inline: .5rem; transition: background-color .15s; }
.lz-item:not(.card):hover { background: var(--bs-tertiary-bg); }
.badge { border-radius: 2rem; padding: .35em .7em; }
.lz-app .alert { border-radius: .75rem; }

.lz-moodboard { columns: 3 16rem; column-gap: 1rem; }
.lz-moodboard .lz-item { break-inside: avoid; }
.lz-item img.card-img-top { aspect-ratio: 16 / 10; object-fit: cover; }
.lz-sidebar a { color: inherit; }

/* login: centered card, the page header and the content element heading would only repeat the brand */
.lz-login { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 14rem); }
.lz-login-card { width: 100%; max-width: 26rem; border-radius: 1rem; }
.lz-login-logo { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--bs-primary); color: #fff; }
.frame-type-felogin_login > header { display: none; }
body:has(.lz-login) .lz-site-header { display: none; }
body:has(.lz-login) { background: var(--bs-tertiary-bg); }

/* pages without the sidebar layout (tools, edit) stay readable */
.lz-app:not(:has(.lz-layout)) { max-width: 60rem; margin: 0 auto; padding: 1.5rem 1rem; }
.lz-app > .alert { margin: 1rem 1.5rem 0; }
.lz-actions { display: inline-flex; align-items: center; gap: .25rem; }
.lz-actions form { display: inline-flex; margin: 0; }
.lz-actions form > div { display: none; }
.min-w-0 { min-width: 0; }

/* drag and drop */
.lz-item[draggable] { cursor: grab; }
.lz-dragging { opacity: .4; }
.lz-sidebar .lz-drop-over { background: var(--bs-primary-bg-subtle) !important; outline: 2px dashed var(--bs-primary); }
