/* LearnicoreHub slide-out sidebar.
   Upload to: public_html/public/assets/css/learnico-sidebar.css */

/* Invisible hover strip on the left edge, with a small tab as a hint */
.lc-sidebar-edge {
    position: fixed; top: 0; left: 0; width: 16px; height: 100%;
    z-index: 998; background: transparent;
}
.lc-sidebar-edge::after {
    content: ""; position: absolute; left: 2px; top: 50%;
    width: 5px; height: 72px; margin-top: -36px; border-radius: 6px;
    background: rgba(255, 255, 255, .45); transition: opacity .2s;
}
.lc-sidebar-edge:hover::after { opacity: 0; }

/* The sidebar itself */
.lc-sidebar {
    position: fixed; top: 0; left: 0; height: 100%;
    width: 290px; max-width: 85vw; box-sizing: border-box;
    padding: 24px 14px 32px; overflow-y: auto;
    background: #0b0b0b; color: #f4f4f4;
    border-right: 1px solid #2a2a2a; box-shadow: 8px 0 30px rgba(0, 0, 0, .55);
    transform: translateX(-100%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
    z-index: 1000;
}
.lc-sidebar.open {
    transform: translateX(0); visibility: visible;
    transition: transform .25s ease;
}
.lc-sidebar-title {
    font-size: 1.25rem; font-weight: 700; padding: 4px 14px 16px;
    border-bottom: 1px solid #2a2a2a; margin-bottom: 12px;
}
.lc-sidebar .lc-sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.lc-sidebar .lc-sidebar-nav a,
.lc-sidebar .lc-sidebar-nav .link-button {
    display: block; width: 100%; box-sizing: border-box;
    padding: 12px 14px; border: 0; border-radius: 10px;
    background: transparent; color: #f4f4f4; text-align: left;
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.lc-sidebar .lc-sidebar-nav a:hover,
.lc-sidebar .lc-sidebar-nav .link-button:hover { background: #1c1c1c; }
.lc-sidebar .lc-sidebar-nav a.active { background: #ffffff; color: #000000; }
.lc-sidebar .lc-sidebar-nav a.btn { background: #ffffff; color: #000000; text-align: center; margin-top: 8px; }
.lc-sidebar .lc-sidebar-nav .inline-form { margin: 8px 0 0; padding: 0; }
.lc-sidebar a:focus-visible, .lc-sidebar button:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

/* Dark overlay behind the sidebar (tap to close) */
.lc-sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .55);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
    z-index: 999;
}
.lc-sidebar-overlay.open { opacity: 1; visibility: visible; transition: opacity .25s ease; }

/* Round menu button for phones and tablets (no cursor to move to the side) */
.lc-sidebar-toggle {
    position: fixed; left: 16px; bottom: 18px; width: 50px; height: 50px;
    border: 0; border-radius: 50%; background: #ffffff; color: #000000;
    font-size: 24px; line-height: 1; cursor: pointer; z-index: 997;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .5); display: none;
}
@media (hover: none), (max-width: 900px) {
    .lc-sidebar-toggle { display: block; }
    .lc-sidebar-edge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .lc-sidebar, .lc-sidebar-overlay { transition: none; }
}
