.student-sidebar-shell {
    display: flex;
    align-items: stretch;
}

.student-sidebar {
    position: fixed;
    top: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 999999;
    width: calc(var(--app-sidebar-width, 292px) - 24px);
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(53,133,33, .1);
    border-radius: 30px;
    background: rgba(255, 255, 255, .98);
    color: #18182a;
    box-shadow: 0 18px 55px rgba(32, 24, 72, .1);
}

.student-sidebar__body {
    display: flex;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px 24px 24px;
    box-sizing: border-box;
    scrollbar-width: none;
}

.student-sidebar__body::-webkit-scrollbar {
    display: none;
}

.student-sidebar__brand {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    box-sizing: border-box;
    color: #171717;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.045em;
    text-decoration: none;
}

/* Pole SVG logo ma u gory zapas na listek nad "i", wiec srodek liter lezy ok. 3px nizej niz srodek pola - podnosimy je do osi znaku. */
.student-sidebar__brand .skillmint-logo {
    position: relative;
    top: -3px;
}

.student-sidebar__brand:hover,
.student-sidebar__brand:focus {
    color: #171717;
    text-decoration: none;
}

.student-sidebar__brand:focus-visible,
.student-sidebar__link:focus-visible,
.student-mobile-link:focus-visible {
    outline: 3px solid rgba(54,134,33, .28);
    outline-offset: 3px;
}

.student-sidebar__mark {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #111114;
}

.student-sidebar__mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.student-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.student-sidebar__link {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 17px;
    color: #171717;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.student-sidebar__link:hover {
    background: #f4f9ef;
    color: #111114;
    text-decoration: none;
    transform: translateX(2px);
}

.student-sidebar__link.is-active {
    background: linear-gradient(160deg, #F6F8C2 0%, #D6ECB2 100%);
    color: #111114;
}

.student-sidebar__group,
.student-mobile-group {
    padding: 14px 16px 2px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.student-sidebar__group:first-child {
    padding-top: 0;
}

.student-sidebar__icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
}

.student-sidebar__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.student-sidebar__link-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-sidebar__count {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #eef8ec;
    color: #368621;
    font-size: 13px;
    font-weight: 800;
}








.student-mobile-menu {
    background: #fff !important;
    color: #171717;
}

.student-mobile-menu .student-mobile-menu__top {
    border-bottom: 1px solid #eff6ea;
}

.student-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 0 32px;
    text-align: left;
}

.student-mobile-link {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border-radius: 16px;
    color: #171717;
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
}

.student-mobile-link:hover {
    background: #f4f9ef;
    color: #111114;
    text-decoration: none;
}

.student-mobile-link.is-active {
    background: linear-gradient(160deg, #F6F8C2 0%, #D6ECB2 100%);
    color: #111114;
    text-decoration: none;
}

.student-mobile-menu__top .student-sidebar__brand {
    width: auto;
    padding: 0;
}

.student-mobile-link .student-sidebar__count {
    margin-left: auto;
}

@media (max-height: 760px) and (min-width: 992px) {
    .student-sidebar__body {
        gap: 12px;
        padding-top: 20px;
        padding-bottom: 18px;
    }

    .student-sidebar__brand {
        min-height: 46px;
        font-size: 26px;
    }


    .student-sidebar__nav {
        gap: 4px;
    }

    .student-sidebar__link {
        min-height: 48px;
    }


}

@media (prefers-reduced-motion: reduce) {
    .student-sidebar__link {
        transition: none;
    }
}

/* Przycisk zwijania menu i tryb samych ikon (html[data-sidebar-collapsed], student-menu.twig). */
.student-sidebar__collapse { margin-top: auto; border: 0; background: transparent; color: #98a2b3; font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.student-sidebar__collapse::before { content: ""; position: absolute; left: 16px; right: 16px; top: -12px; border-top: 1px solid #f2f4f7; }
.student-sidebar__collapse { position: relative; }
.student-sidebar__collapse:hover { color: #171717; }
.student-sidebar__collapse:focus-visible { outline: 2px solid #368621; outline-offset: 2px; }
.student-sidebar__collapse svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.student-sidebar, .student-sidebar__link, .student-sidebar__body { transition: width .2s ease, padding .2s ease, background-color .18s ease, color .18s ease; }
html[data-sidebar-collapsed] .student-sidebar__collapse svg { transform: rotate(180deg); }
.student-sidebar__collapse .student-sidebar__icon svg { transition: transform .2s ease; }
html[data-sidebar-collapsed] .student-sidebar__collapse .student-sidebar__icon svg { transform: rotate(180deg); }
html[data-sidebar-collapsed] .student-sidebar__body { padding: 20px 8px 14px; gap: 14px; align-items: center; }
html[data-sidebar-collapsed] .student-sidebar__nav { gap: 4px; }
html[data-sidebar-collapsed] .student-sidebar__brand .skillmint-logo,
html[data-sidebar-collapsed] .student-sidebar__link-label,
html[data-sidebar-collapsed] .student-sidebar__group { display: none !important; }
html[data-sidebar-collapsed] .student-sidebar__brand { justify-content: center; padding: 0; }
html[data-sidebar-collapsed] .student-sidebar__nav { width: 100%; align-items: center; }
html[data-sidebar-collapsed] .student-sidebar__link { position: relative; width: 44px; min-height: 44px; border-radius: 14px; justify-content: center; padding: 0; overflow: visible; }
html[data-sidebar-collapsed] .student-sidebar__link:hover { transform: none; }
html[data-sidebar-collapsed] .student-sidebar__count { position: absolute; top: 0; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font-size: 10px; }
html[data-sidebar-collapsed] .student-sidebar__link::after { content: attr(data-tip); position: fixed; left: 90px; z-index: 1000000; padding: 7px 11px; border-radius: 10px; background: #111114; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
html[data-sidebar-collapsed] .student-sidebar__link:hover::after,
html[data-sidebar-collapsed] .student-sidebar__link:focus-visible::after { opacity: 1; transform: none; }
html[data-sidebar-collapsed] .student-sidebar { overflow: visible; }
html[data-sidebar-collapsed] .student-sidebar__body { overflow-x: visible; }
@media (prefers-reduced-motion: reduce) { .student-sidebar, .student-sidebar__link, .student-sidebar__body, .student-sidebar__collapse svg { transition: none; } }

/* Menu przewija sie niezaleznie od strony, ale jako cala ramka: przewijany jest staly pas po lewej (.student-sidebar),
   a ramka menu (.student-sidebar__body) ma naturalna wysokosc, wiec przesuwaja sie tez jej zaokraglone rogi. */
@media (min-width: 992px) {
    #app-sidebar.student-sidebar { top: 0; bottom: 0; left: 0; width: var(--app-sidebar-width, 292px) !important; padding: 12px; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    #app-sidebar.student-sidebar::-webkit-scrollbar { display: none; }
    #app-sidebar .student-sidebar__body { height: auto; min-height: 100%; overflow: visible; border: 1px solid rgba(53,133,33, .1); border-radius: 30px; background: rgba(255, 255, 255, .98); box-shadow: 0 18px 55px rgba(32, 24, 72, .1); }
    html[data-sidebar-collapsed] #app-sidebar .student-sidebar__body { border-radius: 24px; }
    html[data-sidebar-collapsed] #app-sidebar.student-sidebar { overflow-x: visible; }
}
