body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden; /* Bỏ scroll ngang */
}

.gx-toggle-sidebar img {
    width: 60px;
}

.header {
    position: sticky;     /* hoặc fixed */
    top: 0;               /* dính ở trên cùng */
    left: 0;
    right: 0;
    z-index: 1000;        /* nằm trên các phần khác */
    background: #fff;  
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header .header-search {
    display: flex;
    align-items: center;
    gap: 40px;
    width: auto;
    padding: 10px 0px 10px 50px;
}

.search-box {
    flex: none;
}

.search-box input {
    height: 38px;
    width: 450px;
    padding: 10px 15px;
    color: #485568;
    border-radius: 6px;
    border: 1px solid #b5b5b5;
}

.search-box input:focus {
    border: 1px solid #485568;
    box-shadow: none;
    color: #1c1d1f;
    font-weight: 300;
    /* tắt viền xanh dày của Bootstrap */
    outline: none;
    /* bỏ outline mặc định */
}

.search-box .form-control {
    font-size: 14px;
    font-weight: 200;
}

.container {
    margin-top: 40px;
}

.sidebar {
    position: fixed;
    top: 120px;  
    width: 20%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    height: 80vh;                    /* sidebar 80% full màn hình */
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    overflow: hidden;
}

.sidebar .title {
    flex: 0 0 50px;                /* giữ cố định cao 60px */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px -1px #cbcbcb;
}

.sidebar .title h5 {
    margin: 0;
    font-weight: 700;
    color: #485568;
}

.sidebar .content {
    flex: 1;                  /* chiếm hết phần còn lại */
    overflow-y: auto;         /* chỉ phần này scroll */
    overscroll-behavior: none; /* hoặc contain */
    -webkit-overflow-scrolling: touch; /* mượt hơn trên mobile */
    padding: 10px;
}

.sidebar .content::-webkit-scrollbar {
    width: 7px;
}

.sidebar .content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar .content::-webkit-scrollbar-thumb {
    background: #aab2bd;
    border-radius: 10px;
}

.sidebar .content::-webkit-scrollbar-button {
    display: none;
}

.sidebar .content .menu-ul {
    padding-left: 1rem;
}

.sidebar .content .menu-ul .menu-li {
    list-style: none;
    font-size: 14px;
    letter-spacing: -0.5px;
    line-height: 40px;
    font-weight: 600;
}
.sidebar .content .menu-ul .menu-li a{
    display: block;
    text-decoration: none;
    color: #485568;
}

.sidebar .content .menu-ul .menu-ul .menu-li {
    list-style: none;
    font-size: 14px;
    letter-spacing: -0.5px;
    line-height: 40px;
    font-weight: 400;
}

.sidebar .content .menu-ul .menu-ul .menu-li a{
    display: block;
    text-decoration: none;
    color: #485568;
}

.menu-li.active > a {
    border-left: 2px solid #656363;
    background-color: rgb(196, 252, 196);
    padding-left: 10px;
}

.doc-content {
    height: 100%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
}

.doc-content .document-content {
    padding: 2rem 2rem 2rem 3rem;
}

.doc-content h5 {
    padding: 2rem 2rem 2rem 3rem;
}

.doc-content .title {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-content .title h5 {
    margin: 0;
    font-weight: 700;
    color: #485568;
}

/* Search Results Styling */
#search-results {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden; /* Bỏ scroll ngang cho search results */
    z-index: 1050;
    max-width: 450px; /* Giới hạn width theo input */
}

#search-results::-webkit-scrollbar {
    width: 6px;
}

#search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


#search-results .list-group-item {
    width: 100%;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 16px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    position: relative;
}


#search-results .list-group-item:hover {
    background: #dadada;
    color: black;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.search-box {
    position: relative;
}

.search-box input {
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}