﻿@font-face {
    font-family: 'SF Pro Rounded';
    src: url('/fonts/SF-Pro-Rounded-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Rounded';
    src: url('/fonts/SF-Pro-Rounded-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Rounded';
    src: url('/fonts/SF-Pro-Rounded-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Rounded';
    src: url('/fonts/SF-Pro-Rounded-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

.item-button {
    display: none
}

.content-contain {
    margin: 120px 100px;
    font-family: 'SF Pro Rounded', sans-serif !important;
}

.navbar-close-button {
    display: none
}

.close-sidebar {
    display: none;
    cursor: pointer
}

.sidebar-header {
    display: flex;
    justify-content: space-between; /* Đẩy tiêu đề sang trái và icon sang phải */
    align-items: center; /* Căn chỉnh theo chiều dọc ở giữa */
}

.content-item {
    width: 100%;
}

.pagination-ellipsis {
    padding: 5px 10px;
    margin: 0 2px;
    display: inline-block;
    user-select: none;
}

.header-breadcrumb-mobile {
    display: none;
}

.search-container-mobile {
    display: none; /* Ẩn mặc định trên màn hình lớn */
}

.navbar-dark .navbar-toggler {
    border: none;
}

.filter-button {
    display: none;
    padding: 12px;
    border: 1px solid #2764E7;
    background-color: #2764E7;
    color: #FFFFFF;
    border-radius: 100px;
    font-weight: 400;
    font-size: 14px
}

.nav-title, .nav-title-bot {
    color: #EBECF0 !important;
    font-size: 17px !important;
    font-weight: 400;
    white-space: nowrap
}

.title {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    color: #EBECF0;
    font-size: 17px;
}

.nav-title-bot {
    font-weight: 800 !important;
}

.menu-item {
    color: #EBECF0;
    font-size: 18px;
    font-family: "SF Pro Rounded", sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.combo-icon-menu {
    display: flex;
    align-items: center;
    gap: 16px
}

.header-top {
    background-color: #4942bd !important;
    height: 108px;
}

.footer-2 {
    background: #4942bd !important;
}

.filter-icon {
    display: none;
}

.navbar-nav {
    flex-direction: row;
    justify-content: start !important;
    white-space: nowrap
}

.nav-logo {
    display: flex;
    align-items: center
}

.nav-link-menu {
    color: #EBECF0 !important;
    font-size: 18px !important;
    font-weight: 600
}

.nav-item.active a {
    color: #FFB017 !important;
}

.modal.show .modal-dialog {
    margin-top: 100px;
}

.navbar-header {
    width: 100%;
    position: fixed;
    top: 0;
    padding: 10px 60px;
    background-color: #4942BD !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    z-index: 9999
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Màu đen, opacity 60% */
    z-index: 500; /* Dưới sidebar nhưng trên nội dung khác */
    display: none; /* Ẩn mặc định */
}

    .overlay.active {
        display: block; /* Hiển thị khi active */
    }

.button-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.button {
    padding: 12px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    border: 1px solid #EBECF0;
    font-size: 15px;
    font-weight: 500;
    color: #EBECF0;
    text-align: center;
    background: transparent;
    cursor: pointer;
}

    .button:hover {
        color: #EBECF0 !important;
        background-color: #3BD5FF;
        transition: background-color 0.3s ease;
    }

.nav-item.menu-item:hover a.nav-link.nav-link-menu {
    color: #FFB017 !important;
}

.button-group .button:hover {
    color: #007AFF;
}

.nav-link-text {
    font-weight: 400;
    font-size: 16px;
    color: #6c6c6c;
}

.text-title-h4 {
    font-weight: 600;
    color: #0f2239;
    line-height: 34px;
}

.main-content {
    display: flex;
    gap: 20px;
    margin-top: 28px;
}

.sidebar-content {
    box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05);
    border: 1px solid #ebedf0;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    min-width: 312px;
    height: 100%;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ebedf0;
    border-radius: 8px;
    margin-top: 4px;
    margin-bottom: 16px;
}

.search-input {
    border: none;
    outline: none;
    padding: 8px 36px 8px 8px;
    height: 36px;
    font-size: 16px;
    width: 100%;
    border-radius: 20px;
}
    .search-input::placeholder {
        color: #999999;
        font-size: 14px;
    }
    

.search-icon {
    position: absolute;
    right: 12px;
}

.form-check-input {
    width: 24px;
    height: 24px;
    margin-top: 0
}
.form-check{
    align-items: center;
    display: flex;
}
.form-check > label{
    cursor: pointer !important
}

.form-type-check input, .form-type-check div {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

type-check {
    border: 1px solid rgba(0, 0, 0, .25);
}

.type-check {
    width: 24px;
    height: 24px;
}

input[type="checkbox"] {
    border: 1px solid #1E1E1E;
}

.type-check:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e")
}

.type-check:checked {
    background-color: #0d6efd;
    border-color: #0d6efd
}

.type-check[type=checkbox] {
    border-radius: 3px;
}

.type-check {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    appearance: none;
}

.form-type-check {
    display: flex;
    align-items: center;
    margin-bottom: 12px
}

.form-check-label {
    font-size: 15px;
    font-weight: 400;
    color: #1e1e1e;
    position: relative;
    top: 1px
}

.form-tilte {
    color: #0f2239;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-item {
    border: 1px solid #ebedf0;
    box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #fff;
}

    .post-item h4 {
        color: #0f2239;
        margin-bottom: 24px;
        text-align: justify;
        font-weight: 600;
    }

.post-item-details {
    display: flex;
    gap: 32px;
    padding-bottom: 16px;
}

.post-meta {
    color: #606060;
    font-size: 14px;
}

.status-label {
    background-color: #0d5ef4;
    border-radius: 4px;
    display: flex;
    height: 36px;
    padding: 12px 8px 12px 12px;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.status-high {
    background-color: #3bd5ff;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    width: 132px;
}

.status-normal {
    background-color: #2bc155;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.status-medium {
    background-color: #999999;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.status-very-high {
    background-color: #BF58D9;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    width: 132px;
}

.post-item-footer {
    display: flex;
    justify-content: end;
    margin-top: 16px;
    gap: 20px;
}

.post-item-meta {
    display: flex;
    padding-bottom: 12px;
    border-bottom: 1px dashed #007aff;
}

.meta-icon {
    background: #dde8fb;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center
}
.meta-item {
    display: flex;
    gap: 4px;
    align-items: center;
}

    .meta-item p {
        font-size: 14px;
        color: #606060;
    }

.post-item-actions {
    display: flex;
    gap: 16px;
    justify-content: end;
}

.button-actions {
    margin-top: 24px;
    display: flex;
    gap: 24px
}

.btn-remove {
    background-color: #FFFFFF;
    border-radius: 4px;
    display: flex;
    width: 100%;
    height: 36px;
    color: #1E1E1E;
    border: 1px solid #777777;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}
    .btn-remove:hover {
        background-color: #3BD5FF;
    }

    .btn-active {
        color: #fff;
        background-color: #0D5EF4;
        border-color: #0D5EF4;
    }

.btn-primary {
    background-color: #0d5ef4;
    border-radius: 4px;
    display: flex;
    width: 132px;
    height: 36px;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

    .btn-primary:hover {
        background-color: #ff7350;
        border: 1px solid #ff7350;
    }

.pagination-container {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 400;
    line-height: 22px;
    justify-content: flex-end;
}

    .pagination-container .total-pages {
        margin-right: 10px;
    }

        .pagination-container .total-pages span {
            color: #007aff;
        }

    .pagination-container button {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        border: 1px solid #d2d2d2;
        background-color: #f5f7fa;
        color: #000000;
        padding: 5px 10px;
        margin: 0 5px;
        cursor: pointer;
        transition: background-color 0.2s;
    }

        .pagination-container button:hover {
            background-color: #e0e4ea;
        }

        .pagination-container button.active {
            background-color: #007aff;
            color: #fff;
        }

@media screen and (min-width: 768px) and (max-width: 1199px) {

    .filter-button {
        display: block;
    }

    .navbar-toggler {
        display: block !important;
    }

    .content-contain {
        margin: 120px 100px 0;
    }

    .close-sidebar {
        display: block
    }

    .navbar-header {
        height: auto !important;
        padding: 20px 60px
    }

    .search-container-mobile {
        display: none; /* Ẩn trên màn hình lớn */
    }

    .main-content {
        flex-direction: column;
    }

    .navbar-collapse {
        position: absolute;
        top: calc(100% + 20px);
        width: 100vw;
        right: -60px;
        z-index: 1050;
        background-color: #403A9E;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

        .navbar-collapse .navbar-nav {
            flex-direction: column;
            width: 100%;
            align-items: flex-start;
            white-space: normal;
        }

        .navbar-collapse .nav-item {
            width: 100%;
        }

        .navbar-collapse .nav-link {
            padding: 10px 30px;
            color: #EBECF0 !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 16px !important;
        }

        .navbar-collapse .nav-item:last-child .nav-link {
            border-bottom: none; /* Bỏ border dưới của mục cuối */
        }

        .navbar-collapse .nav-item .nav-link.active,
        .navbar-collapse .nav-item .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: #FFFFFF !important; /* Màu chữ khi active/hover */
        }

    .navbar-nav {
        white-space: unset;
        margin-bottom: 0px !important;
    }

    .post-item-actions {
        justify-content: flex-start;
        align-items: center;
    }

    .sidebar-content {
        /*        display: none;*/
        position: fixed;
        top: 90px;
        right: 0;
        z-index: 600;
        background: #EBEDF0;
        transform: translate(100%);
        transition: transform 0.3s ease-in-out;
    }

        .sidebar-content.open {
            display: block;
            transform: translateX(0);
        }

    .sidebar-content-item {
        background: #FFFFFF;
        padding: 20px;
        border-radius: 12px;
    }

    .breadcrumb-container {
        display: flex;
        justify-content: space-between;
        align-items: center
    }

    .filter-icon {
        display: block;
        cursor: pointer;
        z-index: 100;
    }

    .button-group {
        display: none;
    }

    .item-button {
        display: block
    }
}

@media (max-width: 1024px) {
    .collapse:not(.show) {
        display: none !important
    }
}

@media screen and (min-width: 1024px) and (max-width: 1100px) {
    .navbar-collapse {
        right: -75px !important
    }
}

@media (min-width: 1900px) {
    .navbar-header {
        padding: 20px 114px !important;
    }

    .content-contain {
        margin: 140px;
    }
}

@media screen and (max-width: 767px) {
    .navbar {
        padding: 0
    }

    .button-group {
        display: none;
    }

    .combo-icon-menu {
        margin-left: 4px;
        gap: 8px;
    }

    .content-contain {
        margin: 20px 0px !important;
        height: auto;
        min-height: calc(100vh - 250px);
    }

    .filter-button {
        display: block;
        z-index: 400;
        margin: 15px auto; /* Căn giữa và tạo khoảng cách */
    }

    #search-container { /* Ẩn search của desktop */
        display: none;
    }

    /* --- Header Styling --- */
    header {
        background-color: #4942BD; /* Màu nền header */
        padding-bottom: 20px; /* Thêm padding dưới cho header */
    }

    .close-sidebar {
        display: block;
    }

    .navbar-header {
        height: auto !important;
        display: flex;
        padding: 12px;
        justify-content: space-between; /* Đẩy logo sang trái, toggler sang phải */
        align-items: center;
        width: 100%;
        position: fixed;
        z-index: 9999;
    }

    .combo-icon-menu .title span {
        font-size: 12px !important; /* Chỉnh lại font size title cho mobile */
    }

    /* --- Breadcrumb Mobile Styling --- */
    .header-mobile-extras { /* Div mới bao breadcrumb và search */
        padding: 40px 12px 20px; /* Padding cho phần dưới header */
        background-color: #4942BD;
    }

    .header-breadcrumb-mobile {
        display: block; /* Hiển thị breadcrumb */
        text-align: center; /* Căn giữa */
    }
        /* Điều chỉnh màu chữ cho breadcrumb mobile */
        .header-breadcrumb-mobile .nav-link-text {
            color: #EBECF0 !important; /* Màu chữ thường */
            opacity: 0.8;
            font-size: 14px; /* Giảm font size */
        }

        .header-breadcrumb-mobile .nav-item a.active {
            color: #FFFFFF !important; /* Màu chữ active */
            font-weight: 400 !important;
            opacity: 1;
        }

        .header-breadcrumb-mobile .nav-item.nav-item-icon { /* Dấu / */
            color: #A29DFF !important;
            opacity: 0.8;
        }

        .header-breadcrumb-mobile .navbar-nav {
            justify-content: center; /* Căn giữa các item breadcrumb */
            flex-direction: row; /* Đảm bảo breadcrumb nằm ngang */
            white-space: nowrap; /* Ngăn xuống dòng */
            margin-bottom: 12px
        }


    /* --- Search Mobile Styling --- */
    .search-container-mobile {
        display: flex;
        border: 1px solid #fff;
        align-items: center;
        border-radius: 12px;
        background-color: #fff;
        position: relative;
        margin: 0;
        overflow: hidden;
    }

        .search-container-mobile .search-input {
            border: none;
            border-radius: 12px;
            padding: 8px 12px; /* Padding cho input */
            flex-grow: 1; /* Cho input chiếm hết phần còn lại */
            font-size: 14px; /* Chỉnh font size */
            height: 40px; /* Đồng bộ chiều cao */
            outline: none; /* Bỏ outline khi focus */
        }

        .search-container-mobile .search-button-mobile {
            background-color: #FF7350;
            color: #fff;
            border: none;
            border-radius: 4px;
            padding: 7px 19px;
            cursor: pointer;
            white-space: nowrap;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin: 6px 9px;
            font-size: 14px;
            line-height: 18px;
        }

            .search-container-mobile .search-button-mobile:hover {
                background: #2764E7
            }

            .search-container-mobile .search-button-mobile img {
                height: 1em;
                margin-left: 5px;
                filter: brightness(0) invert(1);
            }


    /* --- Menu Collapse Styling --- */
    .navbar-collapse {
        position: fixed !important;
        width: 100vw;
        /*        height: calc(100vh - 100px);*/
        height: 100vh;
        top: 0;
        right: 0;
        z-index: 1050;
        background-color: #fff;
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

        .navbar-collapse.show {
            transform: translateX(0);
        }

        .navbar-collapse .navbar-close-button {
            padding: 0.5rem;
            float: right;
            margin-top: 10px;
            margin-right: 10px;
            display: block;
        }

        .navbar-collapse .navbar-nav {
            flex-direction: column;
            width: 100%;
            align-items: flex-start;
            white-space: normal;
        }

        .navbar-collapse .nav-item {
            width: 100%;
            border-bottom: 1px solid #EBEDF0
        }

        .navbar-collapse .nav-link {
            padding: 16px;
            color: #0F2239 !important;
            font-size: 16px !important;
        }

        .navbar-collapse .nav-item:last-child .nav-link {
            border-bottom: none; /* Bỏ border dưới của mục cuối */
        }

        .navbar-collapse .nav-item .nav-link.active,
        .navbar-collapse .nav-item .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: #0F2239 !important; /* Màu chữ khi active/hover */
        }


    /* --- Các điều chỉnh khác cho mobile --- */
    .text-title-h4 {
        margin-bottom: 0px;
    }

    .main-content {
        flex-direction: column;
        margin: 20px 12px 0; /* Giảm margin top */
        gap: 20px; /* Giảm khoảng cách */
    }

    .sidebar-content {
        background: #EBEDF0;
        position: fixed;
        width: 80%;
        height: 100%;
        overflow: auto;
        border-top-left-radius: 12px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
        top: 0;
        right: 0; /* Đặt sidebar ban đầu ở bên phải */
        z-index: 1000;
        min-width: 280px;
        padding: 74px 20px 20px 20px;
        transform: translateX(100%); /* Đẩy sidebar ra ngoài màn hình bên phải */
        transition: transform 0.3s ease-in-out;
    }

        .sidebar-content.open {
            transform: translateX(0); /* Kéo sidebar vào vị trí khi mở */
        }

    .sidebar-content-item {
        background: #FFFFFF;
        padding: 20px;
        border-radius: 12px;
    }

    .breadcrumb-container {
        /* Ẩn breadcrumb trong content nếu đã có ở header */
        display: none;
    }

    .filter-icon { /* Style cho nút filter nếu bạn dùng */
        display: block;
        cursor: pointer;
        z-index: 100;
    }


    /* --- Pagination Mobile --- */
    .pagination-container {
        justify-content: center; /* Căn giữa pagination */
        margin-top: 20px;
    }

        .pagination-container .total-pages {
            display: none; /* Ẩn text tổng số trang */
        }

        .pagination-container button,
        .pagination-container .pagination-ellipsis {
            padding: 6px 10px;
            font-size: 0.9em;
            min-width: 32px;
            height: 32px;
            margin: 0 3px;
        }

        .pagination-container .pagination-ellipsis {
            padding: 6px 4px;
        }

    .filter-button {
        display: block;
        z-index: 400;
        margin: 0 auto;
        width: 100%
    }

    #search-container {
        display: none;
    }

    /* Ẩn breadcrumb trong content và hiển thị trong header */
    .breadcrumb-container .navbar-nav {
        display: none;
    }

    .custom-divider {
        margin-top: 20px
    }

    .combo-icon-menu img {
        width: 50px;
    }

    .main-content {
        flex-direction: column;
        margin-top: 20px
    }

    .navbar-nav {
        white-space: unset;
    }

    .post-item-footer {
        flex-direction: column;
        gap: 16px
    }

    .post-item-actions {
        justify-content: space-between
    }
        .post-item-actions > span, .post-item-actions > p {
            width: 50%
        }

    .breadcrumb-container {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        gap: 20px;
        margin: 20px 12px 0;
    }

    .filter-icon {
        display: block;
        cursor: pointer;
        z-index: 100;
    }

    .item-button {
        display: block
    }

    .post-item{
        padding: 16px
    }
    .post-item h4{
        margin-bottom: 16px
    }


    .post-item-meta, .post-item-details {
        gap: 0px;
        row-gap: 8px;
    }
    .meta-item, .post-meta {
        padding: 0px
    }
}
