﻿

/*:root {
    --colorprimary: #0074bd;
    --colorbackgroundgrid: #FFFFFF;
    --bs-primary: #0074bd;*/ /* Ghi đè màu primary của boostrap */
    /*--bs-primary-rgb: 0, 116, 189;
    --button-border-radius: 8px;*/
    /*font-size: 16px;*/ /* Hoặc kích thước mong muốn */
/*}*/

.dxbl-menu-item {
    padding: 0.3rem;
}

.sidebar {
    max-height: 100%; /* Giới hạn chiều cao menu */
    overflow-y: auto; /* Hiển thị thanh cuộn */
}

.dxbl-image {
    --dxbl-image-height: 1.2rem;
    --dxbl-image-width: 1.2rem;
}

.dxbl-menu .dxbl-menu-item-list > .dxbl-menu-list-item > .dxbl-menu-item > .dxbl-btn {
    --dxbl-btn-border-radius: 0.4rem;
}

.dxbl-menu .dxbl-menu-item-list {
    --dxbl-btn-border-radius: 0.4rem;
}

    .dxbl-menu .dxbl-menu-item-list > .dxbl-menu-list-item > .dxbl-menu-item > .dxbl-btn > span {
        font-size: 1.5rem;
        color: var(--colorprimary);
       
    }

.dxbl-menu-dropdown.dxbl-dropdown-dialog > .dxbl-dropdown-body .dxbl-menu-item-list > .dxbl-menu-list-item > .dxbl-menu-item > .dxbl-btn > span {
    font-size: 1.5rem;
    color: var(--colorprimary);
}

.dxbl-menu-dropdown.dxbl-dropdown-dialog {
    --dxbl-dropdown-border-radius: 0.4rem;
}


.dxbl-menu-dropdown {
    --dxbl-menu-item-hover-color: var(--colorprimary);
    --dxbl-menu-item-selected-color: var(--colorprimary);
    --dxbl-menu-item-selected-hover-color: var(--colorprimary);
    --dxbl-menu-dropdown-border-radius: 0.4rem;
}

    .dxbl-menu-dropdown.dxbl-dropdown-dialog > .dxbl-dropdown-body .dxbl-menu-item-list > .dxbl-menu-list-item > .dxbl-menu-item > .dxbl-btn {
        --dxbl-btn-border-radius: 0.4rem;
     
    }


.dxbl-menu-dropdown {
    --dxbl-menu-item-padding-y: 0.4rem;
}

.dxbl-menu.dxbl-menu-vertical {
    --dxbl-menu-item-padding-y: 0.4rem;
 
}

.dxbl-menu {
    --dxbl-menu-item-hover-color: var(--colorprimary);
    --dxbl-menu-top-left-border-radius: 0.4rem;
    --dxbl-menu-top-right-border-radius: 0.4rem;
    --dxbl-menu-bottom-left-border-radius: 0.4rem;
    --dxbl-menu-bottom-right-border-radius: 0.4rem;
    --dxbl-menu-item-selected-hover-color: var(--colorprimary);
    --dxbl-menu-item-selected-color: var(--colorprimary);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    /*  border-radius: 16px; */
    /* padding: 0.5rem 1rem; */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.dxbl-dropdown-body {
    max-height: 400px;
}

.dxbl-menu {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    /*  border-radius: 16px; */
    /* padding: 0.5rem 1rem; */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

    /* Item chính */
    .dxbl-menu .dxbl-btn {
        font-weight: 500;
        font-size: 15px;
        /*  padding: 10px 18px; */
        border-radius: 12px;
        transition: all 0.3s ease;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.2);
    }

        /* Hover item */
        .dxbl-menu .dxbl-btn:hover {
            background: rgba(0, 116, 189, 0.4);
            box-shadow: 0 4px 15px rgba(0,116,189,0.4);
            transform: translateY(-2px);
        }

/* Submenu - Glass style */
.dxbl-menu-item-list .dxbl-menu-list-item .dxbl-menu-item .dxbl-menu {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-top: 8px;
    padding: 3px 0;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    animation: fadeSlide 0.3s ease;
}

/* Item submenu */
.dxbl-menu-item-list .dxbl-menu-list-item .dxbl-menu-item .dxbl-btn {
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.05);
}

    /* Hover submenu */
    .dxbl-menu-item-list .dxbl-menu-list-item .dxbl-menu-item .dxbl-btn:hover {
        background: rgba(0, 116, 189, 0.5);
        box-shadow: 0 2px 10px rgba(0,116,189,0.3);
    }
/* Class này dùng để điều khiển scrollbar */
.sidebar-container.collapsed {
    width: 0 !important;
    overflow: hidden !important;
}

/*.sidebar-container.collapsed .dxbl-menu.dxbl-menu-vertical
.dxbl-menu-item-list >
.dxbl-menu-list-item >
.dxbl-menu-item >
.dxbl-btn >
.dxbl-menu-item-text-container,
.sidebar-container.collapsed .dxbl-menu .dxbl-menu-item-list > .dxbl-menu-list-item > .dxbl-menu-item > .dxbl-btn > svg.dxbl-image {
    display: none !important;
}*/
/* Animation submenu */
  @keyframes fadeSlide {
        from

    {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

    }
