﻿﻿:root {
    --bg-dark: #111;
    --bg-light: #F7F7F7;
    --sidebar-dark: #1c1f22;
    --sidebar-light: #ffffff;
    --text-dark: #ffffff;
    --text-light: #212529;
    --primary: #2563eb;
}

a {
    cursor: pointer;
}

ul {
    list-style: none
}
tbody, td, tfoot, th, thead, tr{
    border-width:1px;
}
body.dark {
    background: var(--bg-dark);
    color: var(--text-dark);
}

body.light {
    background: var(--bg-light);
    color: var(--text-light);
}



/* Theme Switch */
.theme-switch {
    width: 56px;
    height: 28px;
    background: #e5e7eb;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background .3s;
    display: flex;
    align-items: center;
    padding: 3px;
}

body.dark .theme-switch {
    background: #374151;
}

.switch-thumb {
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform .3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

body.dark .switch-thumb {
    transform: translateX(28px);
}

.icon-sun {
    display: block;
}

.icon-moon {
    display: none;
}

body.dark .icon-sun {
    display: none;
}

body.dark .icon-moon {
    display: block;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 300px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    padding: 12px;
    display: block;
    font-size: 14px;
    overflow: auto;
    height: 100%;
    position: fixed;
}

.header-content {
    margin-left: calc(300px + 1rem) !important;
    margin-top: 20px
}

.card-custom.card-custom {
    margin-left: calc(300px + 1rem) !important;
}

.close-btn {
    font-size: 25px;
    display: none;
    cursor: pointer;
    height: 35px;
    text-align: center;
    line-height: 35px;
    width: 35px;
}

/* ===== SIDEBAR TITLE ===== */
.sidebar-title {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .08em;
    color: #9ca3af;
    margin: 16px 8px 8px;
}

.copyright {
    position: absolute;
    height: 30px;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #196FD5;
    color: white;
    text-align: center;
}

/* ===== MENU ITEM ===== */
.nav-link {
    color: #374151;
    padding: 8px 12px;
    transition: all .15s ease;
    position: relative;
    cursor: pointer;
    font-weight: 600;
}



    /* ===== ICON ===== */
    .nav-link i,
    .menu-icon {
        width: 18px;
        opacity: .85;
    }

/* ===== SUB MENU ===== */
.collapse .nav-link {
    font-size: 13px;
    /* padding-left: 36px !important; */
    color: #4b5563;
    position: relative;
}


/* ===== CHEVRON ===== */
.togge-icon {
    transition: transform .2s ease;
    font-size: 12px;
    color: #6b7280;
}

.nav-link[aria-expanded="true"] .togge-icon {
    transform: rotate(180deg);
}


.sidebar .nav-link:hover {
    background: rgba(37, 99, 235, .15) !important;
    color: var(--primary) !important;
}

.sidebar .nav-link.active {
    color: #0d6efd !important;
    font-weight: bold;
    /*    border-left: 3px solid #0d6efd;*/
    background: rgba(37, 99, 235, .15) !important;
}

.sidebar .nav-link.this-active {
    color: #0d6efd !important;
    font-weight: bold;
    border: unset;
    background: rgba(37, 99, 235, .15) !important;
    border-left: 3px solid #0d6efd;
}

/*    .sidebar .nav-link.this-active:before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 6px;
        height: 6px;
        background: #0d6efd;
        border-radius: 50%;
        transform: translateY(-50%);
    }*/


.topbar {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.banner {
    background: #9fc2f7;
    border-radius: 14px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

.banner h1 {
    font-size: 32px;
    font-weight: 700;
}

.banner img {
    position: absolute;
    right: 30px;
    bottom: 0;
    max-height: 220px;
}

.content-wrapper {
    padding: 24px;
}

.card-custom {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    color: #000;
}

body.dark .card-custom {
    background: #1c1f22;
    color: #fff;
}

body.dark .breadcrumb-item a {
    color: #b7adad;
    text-decoration: none;
}

body.light .breadcrumb-item a {
    color: #413b3b;
    text-decoration: none;
}

body.dark .breadcrumb-item.active {
    color: #b7adad;
    font-weight: bold;
    text-decoration: none;
}

body.light .breadcrumb-item.active {
    color: #413b3b;
    font-weight: bold;
    text-decoration: none;
}

.no-select {
    -webkit-user-select: none;
    /* Chrome, Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE */
    user-select: none;
}

/* Search */
/* ===== MODAL OVERLAY ===== */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 10px 0;
    z-index: 9999;
}

.search-box {
    width: 720px;
    background: #f5f6f7;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
    overflow: hidden;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

    .search-header input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 16px;
    }

.search-section {
    padding: 10px 16px 4px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.search-results {
    max-height: 420px;
    overflow-y: auto;
    padding-bottom: 8px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: background 0.15s ease;
}

    .result-item:hover,
    .result-item.active {
        background: #e0e7ff;
    }

.result-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.result-content {
    display: flex;
    flex-direction: column;
}

.result-title {
    font-size: 14px;
    color: #111827;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.result-sub {
    font-size: 12px;
    color: #6b7280;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.search-highlight {
    color: #2563eb;
    font-weight: 500;
    background-color: #f1ff6f;
    padding: 1px 3px;
    display: inline-block;
}

.search-close {
    color: #6b7280;
    padding: 10px;
}


    .close-btn:hover,
    .search-close:hover {
        background: #003dff1a;
        color: #003dff;
    }

/* End search */
.post-date {
    font-size: 13px;
}

.badge {
    background-color: #ebedf0;
    color: black;
}

.doc-nav-card {
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 16px 20px;
    background-color: #fff;
    transition: all 0.25s ease;
    color: #212529;
}

    .doc-nav-card:hover {
        border-color: #0d6efd;
        box-shadow: 0 6px 18px rgba(13, 110, 253, 0.15);
        transform: translateY(-2px);
        text-decoration: none;
    }

.doc-prev:hover span {
    color: #0d6efd;
}

.doc-next:hover span {
    color: #0d6efd;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.nav-link[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.data-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem auto;
    display: block;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* .wrapper-content{
                                    height:65vh;
                                    overflow:auto;
                                } */
.list-category {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-item {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px; /* bo tròn pill */
    font-size: 14px;
    transition: all .2s ease;
}

.tab-question {
    background-color: #e8edff;
    color: #2563eb;
}

    .tab-question:hover {
        background-color: #dbe4ff; /* đậm hơn */
        color: #1d4ed8;
    }

.tab-introduce {
    background-color: #edfff0;
    color: #508d63;
}

    .tab-introduce:hover {
        background-color: #c7e7d2; /* đậm hơn */
        color: #5f9c73;
    }

.not-found-guide {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.not-found-guide {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .not-found-guide .nf-icon {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background-color: #f1f5ff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .not-found-guide .nf-icon i {
            font-size: 28px;
            color: #2563eb;
        }

    .not-found-guide h5 {
        font-weight: 600;
        color: #374151;
    }

    .not-found-guide p {
        font-size: 14px;
    }

.container-header {
    margin-left: calc(300px + 1rem) !important;
}

@media (min-width: 380px) and (max-width: 575.98px) {

    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        z-index: 1050;
        transition: left 0.3s ease;
        will-change: left;
    }

    .doc-next {
        text-align: left !important;
    }

    .sidebar.show {
        left: 0;
    }

        .sidebar.show .close-btn {
            display: block;
            cursor: pointer;
        }

    .card-custom.card-custom {
        margin-left: 0 !important;
    }

    .container-header,
    .header-content {
        margin-left: 1rem !important
    }
}



/* Small (mobile lớn) */
@media (min-width: 576px) and (max-width: 767.98px) {

    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        z-index: 1050;
        transition: left 0.3s ease;
        will-change: left;
    }

    .doc-next {
        text-align: left !important;
    }

    .sidebar.show {
        left: 0;
    }

        .sidebar.show .close-btn {
            display: block;
            cursor: pointer;
        }

    .card-custom.card-custom {
        margin-left: 0 !important;
    }

    .container-header,
    .header-content {
        margin-left: 1rem !important
    }
}

/* Medium (tablet) */
@media (min-width: 768px) and (max-width: 991.98px) {

    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        z-index: 1050;
        transition: left 0.3s ease;
        will-change: left;
    }

    .doc-next {
        text-align: left !important;
    }

    .sidebar.show {
        left: 0;
    }

        .sidebar.show .close-btn {
            display: block;
            cursor: pointer;
        }

    .card-custom.card-custom {
        margin-left: 0 !important;
    }

    .container-header,
    .header-content {
        margin-left: 1rem !important
    }
}

@media(min-width:992px) {
    .topbar {
        margin-left: 300px;
    }
}
/*Custom style */


.content li {
    padding: revert
}

.content ul, 
.content ol {
    list-style: revert;
    padding: revert
}

tbody, td, tfoot, th, thead, tr {
    border: 1px solid #e5e7eb;
}
    