/**
 * Two-column dashboard shell for the standalone "My Books" library page
 * (/ielts-dashboard/my-books-library/). Gives that page the same sidebar + content
 * layout as the main /ielts-dashboard/ app, without depending on that
 * app's compiled React bundle or CSS — this stays intact even if that
 * bundle is rebuilt or restyled.
 */

.ielts-lib-shell {
    --lib-nav-w: 256px;
    --lib-primary: #2563eb;
    --lib-primary-tint: rgba(37, 99, 235, .1);
    --lib-border: #e2e8f0;
    --lib-muted: #64748b;
    --lib-fg: #0f172a;
    --lib-hover-bg: #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.ielts-lib-shell__nav {
    flex: 0 0 var(--lib-nav-w);
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 12px;
    background: #fff;
    border: 1px solid var(--lib-border);
    border-radius: 14px;
}

.ielts-lib-shell__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 16px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--lib-border);
    color: var(--lib-fg);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.ielts-lib-shell__brand svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--lib-primary);
}

.ielts-lib-shell__label {
    padding: 10px 10px 6px;
    color: var(--lib-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ielts-lib-shell__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ielts-lib-shell__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    color: var(--lib-fg);
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.ielts-lib-shell__item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: var(--lib-muted);
    transition: color .15s ease;
}

a.ielts-lib-shell__item:hover {
    background: var(--lib-hover-bg);
}

.ielts-lib-shell__item.is-active {
    background: var(--lib-primary-tint);
    color: var(--lib-primary);
    font-weight: 600;
    cursor: default;
}

.ielts-lib-shell__item.is-active svg {
    color: var(--lib-primary);
}

.ielts-lib-shell__content {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 900px) {
    .ielts-lib-shell {
        flex-direction: column;
        gap: 16px;
    }

    .ielts-lib-shell__nav {
        position: static;
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .ielts-lib-shell__nav::-webkit-scrollbar {
        display: none;
    }

    .ielts-lib-shell__brand,
    .ielts-lib-shell__label {
        display: none;
    }

    .ielts-lib-shell__list {
        flex-direction: row;
    }

    .ielts-lib-shell__item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .ielts-lib-shell__item-label {
        display: none;
    }

    .ielts-lib-shell__item svg {
        width: 19px;
        height: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ielts-lib-shell__item {
        transition: none;
    }
}
