#report-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: Arial, sans-serif;
}

#report-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

#report-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 15px;
    font-family: Arial, sans-serif;
}

#report-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#report-form button:hover {
    background-color: #0056b3;
}

.genre-item {
    background-color: #FFB6C1;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 5px 5px 0 0; /* Khoảng cách giữa các thẻ */
    display: inline-block; /* Đảm bảo mỗi <span> là một block nhỏ */
}

.new-star {
    position: absolute;
    top: 1px;
}

.rating-tag {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    background-color: #fd4724;
    padding: 4px;
    border-radius: 4px;
    font-size: 17px;
}

button#chapterListButton {
    padding: 5px;
    font-size: 20px;
    border-radius: 7px;
}

button#reviewButton {
    padding: 5px;
    font-size: 20px;
    border-radius: 7px;
}

.note {
    background-color: #D3D3D3;
    padding: 3px 15px;
    margin-top: 6px;
    border-radius: 10px;
}

p.note{
    margin:1px;
}

.green-button {
    background-color: #00CC66;
    color: white;
    padding: 10px;
    border-radius: 10px;
}

.blue-button {
    background-color: #4285f4;
    color: white;
    padding: 10px;
    border-radius: 10px;
}

.yellow-button {
    background-color: #ffeb3b;
    color: black;
    padding: 10px;
    border-radius: 10px;
}

.blue-button .icon, .yellow-button .icon, .green-button .icon {
    margin-left: 10px;
}

#searchChapter {
    flex: 1; /* Để ô tìm kiếm chiếm toàn bộ chiều rộng còn lại */   
}

button#sortButton {
    height: 40px;
    border-radius: 5px;
    margin-right: 3px;
}

.content {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    overflow-y: auto;
    border-radius: 8px;
    box-sizing: border-box;
}

.header, .description, .chapter-container {
    width: 100%;
    box-sizing: border-box;
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.description {
    margin: 20px 0;
    line-height: 1.6;
}

.chapter-container {
    margin-top: 20px;
}

.avatar {
    width: 15%;
    border-radius: 8px;
    margin-right: 20px;
    position: absolute;
    top: 0px;
}

.rating-tag {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 0, 0.8);
    color: #000;
    padding: 3px 6px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 10;
}

.btn_top {
    margin-top: 17px;
}

.title {
    font-size: 1.5em;
    font-weight: bold;
}

.author {
    font-size: 1em;
    color: #555;
}

.status-container {
    margin: 10px 0;
    font-weight: bold;
}

.vip-status, .free-status, .hot-status, .story-status {
    display: inline-block;
    border-radius: 5px;
    padding: 5px 10px;
    margin: -5px 5px 0 0;
}

.vip-status {
    background-color: #FFD700;
}

.free-status {
    background-color: #32CD32;
}

.hot-status {
    background-color: #FF4500;
}

.story-status {
    background-color: #e0e0e0;
}

.genre {
    background-color: #fff;
    color: white;
}

.search-container {
    display: flex;
    width: 95%;
    top: 0;
    background-color: white;
    padding: 1px;
    z-index: 10;
}

input[type="number"] {
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 5px;
}

.tag {
    background-color: #00FFCC; /* Màu nền */
    border-radius: 4px; /* Bo tròn các góc */
    padding: 2px 6px; /* Khoảng cách bên trong */
    margin-left: 10px; /* Khoảng cách bên trái */
    font-weight: bold; /* Đậm chữ */
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 5px 0;
}

.chapter-list {
    list-style: none;
    padding: 0;
}

.chapter-item {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-link {
    margin: 0 5px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
}

.page-link:hover {
    background-color: #007bff;
    color: white;
}

.infor1 {
    margin-bottom: auto;
    margin-left:17%;
}

#toggle-button {
    display: none; /* Ẩn nút trên desktop */
}

p.note {
    border:1px;
}

#paginationControls button.active {
    background-color: #4CAF50; /* Màu nền nổi bật */
    color: white; /* Màu chữ trắng */
    font-weight: bold; /* In đậm chữ */
    border: 1px solid #4CAF50; /* Đường viền cùng màu nền */
    cursor: default; /* Không cho phép nhấn lại */
}

#paginationControls button {
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#paginationControls button:hover:not(.active) {
    background-color: #ddd; /* Đổi màu khi hover trừ khi là nút active */
}


/* CSS cho thiết bị di động */
@media (max-width: 768px) {
    * {
        text-decoration: none; /* Bỏ gạch chân cho tất cả các phần tử */
    }

    .infor1 {
        
        width: 100%;
        margin-left: 0em;
    }

    .new-star {
        position: absolute;
        top: 5px;
        left: 91px;
    }
    
    button#chapterListButton {
        padding: 5px;
        font-size: 12px;
        border-radius: 7px;
    }

    button#reviewButton {
        padding: 5px;
        font-size: 12px;
        border-radius: 7px;
    }

    .header {
        flex-direction: column; /* Đặt các phần tử theo chiều dọc */
        align-items: center; /* Căn chỉnh sang trái */
        gap: 10px;
    }

    .avatar-container {
        position: relative;
        display: inline-block; /* hoặc block, tuỳ ý bạn */
    }

    .avatar {
        display: block;
        width: 100%; /* Đổi chiều rộng của avatar */
        max-height: 300px;
        margin-right: 0; /* Bỏ khoảng cách bên phải */
        margin-bottom: 10px; /* Thêm khoảng cách phía dưới */
        position: static;
    }

    .rating-tag {
        position: absolute;
        top: 0;
        left: 0;
        background-color: rgba(255, 255, 0, 0.8);
        color: #000;
        padding: 3px 6px;
        font-weight: bold;
        border-radius: 3px;
        z-index: 10;
    }

    .title {
        font-size: 1.2em; /* Điều chỉnh kích thước tiêu đề */
        padding-bottom: 8px;
    }

    .author, .status-container {
        font-size: 0.9em; /* Điều chỉnh kích thước văn bản */
    }

    /* Ẩn phần giới thiệu ban đầu trên mobile */
    .description.collapsed {
        max-height: 50px; /* Chiều cao tối đa */
        overflow: hidden; /* Ẩn nội dung thừa */
        transition: max-height 0.3s ease; /* Hiệu ứng chuyển động khi thay đổi */
    }

    .description.expanded {
        max-height: none; /* Hiển thị toàn bộ nội dung */
    }
    /* CSS cho nút Xem thêm */
    #toggle-button {
        margin-top: 10px; /* Khoảng cách phía trên */
        margin-left: auto; /* Tự động tạo khoảng cách bên trái */
        display: block; /* Để đảm bảo nó có thể căn lề */
        background-color: #007bff; /* Màu nền */
        color: white; /* Màu chữ */
        border: none; /* Không có viền */
        padding: 10px 15px; /* Khoảng cách bên trong */
        border-radius: 5px; /* Bo góc */
        cursor: pointer; /* Con trỏ chuột */
    }

    #toggle-button:hover {
        background-color: #0056b3; /* Màu nền khi di chuột */
    }

    .btn_cr {
        display: flex;
        margin-top: 10px;
        height: 35px;
        background-color: #fff;
    }

    .btn_cr button {
        width: 50%; /* Mỗi nút sẽ chiếm 50% chiều rộng của div cha */
        box-sizing: border-box; /* Đảm bảo padding và border không làm tăng kích thước */
        padding: 10px; /* Thêm khoảng cách xung quanh chữ */
        border: none; /* Bỏ viền mặc định của button */
        color: black; /* Màu chữ */
        font-size: 16px; /* Kích thước chữ */
        cursor: pointer; /* Hiển thị con trỏ khi hover */
        transition: background-color 0.6s; /* Hiệu ứng chuyển đổi màu nền */
        background-color: #fff;
    }

    .btn_cr button.active {
        background-color: #0099CC; /* Màu nền khi button được click */
        color: #000;
    }

    .btn_top {
        display: flex;
        width: 100%;
    }

    .btn_top .button {
        flex: 1; /* Chia đều chiều rộng cho mỗi nút */
        text-align: center; /* Canh giữa nội dung của nút */
        padding: 10px 0;
        margin: 5px; /* Khoảng cách giữa các nút */
        text-decoration: none;
        border-radius: 5px;
    }
}