/* =========================================================
   ARTICLE FLOATING VERTICAL TOOLBAR
   File: wwwroot/css/templates/eduportal/article-toolbar.css
   ========================================================= */

/* Bố cục bài viết: toolbar trái + content phải */
.article-layout {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

/* ── TOOLBAR ── */
.art-toolbar {
    position: sticky;
    top: 100px;        /* khoảng cách tính từ đầu viewport khi sticky */
    flex: 0 0 48px;    /* chiều rộng cố định */
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
    /* Không cần margin-right vì nội dung tự giãn */
    margin-right: 16px;
    /* Tự dừng khi hết article-wrap nhờ align-self */
    align-self: flex-start;
}

/* Mỗi nút */
.art-tool-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: .88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    line-height: 1;
    flex-shrink: 0;
}

.art-tool-btn:hover {
    background: var(--navy, #163C74);
    color: #fff;
    border-color: var(--navy, #163C74);
    box-shadow: 0 4px 12px rgba(22,60,116,.2);
}

.art-tool-btn.active {
    background: var(--navy, #163C74);
    color: #fff;
    border-color: var(--navy, #163C74);
}

/* Nút "aA" chữ nhỏ hơn */
.art-tool-btn--label {
    font-size: .7rem;
    letter-spacing: .02em;
}

/* Nội dung bài viết chiếm phần còn lại */
.article-content {
    flex: 1;
    min-width: 0;
}

/* ── RESPONSIVE: ẩn toolbar trên màn hình nhỏ ── */
@media (max-width: 991.98px) {
    .art-toolbar {
        display: none;
    }
    .article-layout {
        display: block;
    }
}
