.btn-category {
    text-decoration: none;
    padding: 5px;
    background: var(--button-color);
    color: var(--title-color);
    border-radius: 5px;
    border: 1px solid transparent;
    transition: 0.2s; /*Để tạo hiệu ứng chuyển đổi mượt mà*/
}

.btn-category.active {
    border: 3px solid var(--border-color);
}

.text-title {
    color: var(--title-color);
}

/* ===============================
   TOOLBAR ĐỊNH DẠNG MÔ TẢ
================================ */

.description-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    padding: 10px 12px;
    background: #f8f9fa;

    border: 1px solid #dee2e6;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

/* Nút định dạng */
.description-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    height: 36px;
    padding: 0 10px;

    color: #495057;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hiệu ứng khi rê chuột */
.description-toolbar button:hover {
    color: #000;
    background: #fff8ed;
    border-color: #000;
}

/* Hiệu ứng khi bấm */
.description-toolbar button:active {
    background: #f3e5ce;
    transform: scale(0.97);
}

/* Nút in đậm */
.description-toolbar button strong,
.description-toolbar button b {
    font-weight: 700;
}

/* Nút in nghiêng */
.description-toolbar button em,
.description-toolbar button i {
    font-style: italic;
}

/* Hộp chọn cỡ chữ */
.description-toolbar select {
    height: 36px;
    min-width: 76px;
    padding: 0 10px;

    color: #495057;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;

    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.description-toolbar select:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(151, 96, 23, 0.12);
}

/* Bộ chọn màu */
.description-toolbar input[type="color"] {
    width: 40px;
    height: 36px;
    padding: 4px;

    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;

    cursor: pointer;
    transition: border-color 0.2s ease;
}

.description-toolbar input[type="color"]:hover {
    border-color: #000;
}

/* ===============================
   KHUNG SOẠN THẢO
================================ */

.description-editor {
    min-height: 200px;
    max-height: 450px;
    overflow-y: auto;

    padding: 14px 16px;

    color: #212529;
    background: #fff;

    border: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;

    font-size: 15px;
    line-height: 1.7;

    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Khi bấm vào khung nhập */
.description-editor:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(151, 96, 23, 0.1);
}

/* Placeholder */
.description-editor:empty::before {
    content: attr(data-placeholder);
    color: #adb5bd;
    pointer-events: none;
}

/* Hình ảnh trong nội dung */
.description-editor img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px 0;
}

/* Nội dung danh sách */
.description-editor ul,
.description-editor ol {
    padding-left: 24px;
}

/* Nội dung đoạn văn */
.description-editor p {
    margin-bottom: 10px;
}

/* Trên màn hình nhỏ */
@media (max-width: 576px) {
    .description-toolbar {
        gap: 6px;
        padding: 8px;
    }

    .description-toolbar button,
    .description-toolbar select {
        height: 34px;
    }

    .description-toolbar button {
        min-width: 34px;
        padding: 0 8px;
    }
}
