

ul.forum-titles .forum-freshness {
    flex-basis: 100%;
}

.form-edit {
    padding: 60px 0;
    background: #fbfbfc;

    .wrapper-form {
        background: var(--bs-white);
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 30px 60px 0 rgba(2, 2, 48, 0.08);
    }

    .wrapper-lang {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

.item-textbook {
    margin-bottom: 15px;
}

.sub-collection {
    padding: 0 .75rem;
}

.btn-add-rs {
    color: var(--brand_color);
    border-color: var(--brand_color);
    &:hover {
        background-color: var(--brand_color);
        border-color: var(--brand_color);
    }
    outline: none;
    box-shadow: none;
}

.btn-modal-add-rs {
    background-color: var(--brand_color);
    border-color: var(--brand_color);
    outline: none;
    box-shadow: none;
}

#add-document {
    .modal-body.scroll-content {
        height: 500px;
        overflow-y: scroll;
    }

    .title {
        width: 90%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    .document-item {
        margin-bottom: 5px;
    }

    .modal-header {
        display: block;
        h3 {
            font-size: 16px;
            margin-bottom: 10px;
        }
        input {
            height: 30px;
            &:focus {
                outline: none;
                box-shadow: none;
            }
            &::placeholder {
                font-size: 13px;
            }
            font-size: 13px;
            padding-left: 30px;

            &:focus + ion-icon {
                color: #80bdff;
            }
        }

        .search-box {
            position: relative; 
            i {
                position: absolute;
                left: 10px;
                top: 24%;
            }
        }
    }
}

#render-document {
    /* .btn-delete {
        display: none !important;
        cursor: pointer;
    }

    .item-textbook:hover > .btn-delete{
        display: flex !important;
    }

    .collection-item:hover > .btn-delete {
        display: flex !important;
    }

    .outside-item {
        text-align: left;
    } */

    .btn-dr-menu {
        .dropdown-toggle{
            width: 15px;
            height: 15px;
            border-radius: 99%;
            background: var(--brand_color);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            cursor: pointer;
        }

        .dropdown-toggle::after {
            content: unset;
        }
        .dropdown-menu {
            padding: 0;
            a {
                font-size: 13px;
                padding-top: 0;
                padding-bottom: 0;
            }
        }
    }

    & > div {
        margin-bottom: 10px;
        &:last-child {
            margin-bottom: 0;
        }

        & .content {
            padding: 10px 0;
            border-left: 1px solid var(--black_50);
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
    }

    margin-left: -10px;
}

#index-sidebar-textbook {
    .index-outside {  
        .header {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 14px;
        }
        cursor: pointer;
    }

    .index-inside {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 13px;
        cursor: pointer;
    }

    .title {
        width: 90%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wrapper-inside {
        padding-left: 20px;
    }

    .active-color {
        font-weight: 700;
        color: var(--brand_color);
    }

    .subtitle {
        font-weight: 700;
    }

    ion-icon {
        color: var(--brand_color);
    }

    padding: 10px 10px 10px 0;

    .content {
        padding-left: 10px;
    }
}

.forum-post-content .content {
    h1 {font-size: 1.5rem !important;}
    h2 {font-size: 1.4rem !important;}
    h3 {font-size: 1.3rem !important;}
    h4 {font-size: 1.2rem !important;}
    h5 {font-size: 1.1rem !important;}
    h6 {font-size: 1rem !important;}

    .title-document {
        font-size: 2rem;
        border-bottom: 1px solid var(--black_50);
        color: var(--brand_color);
        font-weight: 700;
        padding: 20px 0 20px 0;
    }
}

.form-filter {
    .block-filter {
        border-bottom: 1px solid var(--black_50);
        padding-bottom: 1rem;
        &:last-child {
            border-bottom: 0;
        }
    }

    .box-input-search {
        position: relative;
        input[type="search"] {
            &:focus {
                outline: none;
                box-shadow: none;
            }
            &::placeholder {
                font-size: 13px;
            }

            &:focus + i {
                color: #80bdff;
            }
            font-size: 13px;
            padding-left: 30px;
        }
        i {
            position: absolute;
            left: 10px;
            top: 27%;
        }
    }
}

.content-child {
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
    &.hide {
        height: 0;
    }
    &.show {
        height: auto;
    }
}

.item-outside {
    .header > *{
        font-size: 14px;
        font-weight: bold;
    }
    .header {
        background: #eee;
        padding: 5px 20px;
        border-radius: 5px;
        width: 100%;
        cursor: pointer;
        .title {
            display: -webkit-box;
            -webkit-line-clamp: 1; /* Giới hạn tối đa 2 dòng */
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }
    .gr-btn-add {
        font-size: 13px;
        color: var(--brand_color);
        cursor: pointer;
    }
    margin-left: 10px; 

    .content.hide {
       display: none !important;
    }

    .content.show {
        display: flex !important;
    }
    
}

.item-inside {
    margin-left: 10px;
    & > * {
        font-size: 14px;
    }
    .btn-remove {
        visibility: hidden;
        cursor: pointer;
        height: 16px;
        width: 16px;
        border-radius: 99%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--black_50);
    }
    .btn-remove i{
        color: var(--brand_color);
    }
    span.title {
        display: -webkit-box;
        -webkit-line-clamp: 1; /* Giới hạn tối đa 2 dòng */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    &:hover {
        .btn-remove {
            visibility: visible;
        }
    }
}

.input-add-sub-collection {
    position: relative;
    .gr-btn-input {
        height: 100%;
        position: absolute;
        right: 0;
        top: 0;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    input {
        border: 0 !important;
        border-bottom: 1px solid #e3e8ea !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding-right: 40px;
        &::placeholder {
            font-size: 13px;
        }
    }

    .btn-close-c > i{
        color: #dc3545;
        cursor: pointer;
    }

    .btn-add-c > i{
        color: #28a745;
        cursor: pointer;
    }
}
