/* Googlefont Poppins CDN Link */
/*@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');*/

:root {
    --bs-body-font-size: .75rem; /* Overwrite this variable .875rem or .835rem */
    font-size: var(--bs-body-font-size);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*font-family: 'Poppins', sans-serif;*/
}


.sidebar {
    position: fixed;
    height: 100%;
    width: 240px;
    top: 50px; /* height of header */
    background: #0A2558;
    transition: all 0.5s ease;
    z-index: 99; /* for tooltip */
}

    .sidebar ul {
        padding-left: 0px;
    }




    .sidebar.active {
        width: 60px;
    }

    .sidebar .logo-details {
        height: 35px;
        display: flex;
        align-items: center;
    }

        .sidebar .logo-details i {
            font-size: 28px;
            font-weight: 500;
            color: #fff;
            min-width: 60px;
            text-align: center;
            margin-left: auto;
        }

        .sidebar .logo-details .logo_name {
            color: #fff;
            font-size: 24px;
            font-weight: 500;
        }

    /*--[1]-- scrool bar to sidebar  */

    .sidebar .nav-links {
        /* margin-top: 10px;*/
        max-height: calc(100vh - 155px); /* 50 + 35 + 25 + 45*/
        /*overflow-y: auto;*/ /* remarked for tooltip */
    }


    .sidebar .nav-links {
        -ms-overflow-style: none; /* Internet Explorer 10+ */
        scrollbar-width: none; /* Firefox */
    }

        .sidebar .nav-links::-webkit-scrollbar {
            display: none; /* Safari and Chrome */
        }


        /*--[1]-- scrool bar to sidebar  */


        .sidebar .nav-links li {
            position: relative;
            list-style: none;
            height: 50px;
        }

            .sidebar .nav-links li a {
                height: 100%;
                width: 100%;
                display: flex;
                align-items: center;
                text-decoration: none;
                transition: all 0.4s ease;
            }

                .sidebar .nav-links li a.active {
                    background: #081D45;
                }

                .sidebar .nav-links li a:hover {
                    background: #081D45;
                }

            .sidebar .nav-links li i {
                min-width: 40px;
                margin-left: 20px;
                /* text-align: center;*/
                font-size: 1.25rem; /* 18 to 16 */
                color: #fff;
            }

            .sidebar .nav-links li a .links_name {
                color: #fff;
                font-size: 1.03rem; /* 15 to 13 */
                font-weight: 400;
                white-space: nowrap;
            }

    .sidebar.active .nav-links li a .links_name {
        width: 0;
        opacity: 0;
        transition: width 0.5s ease, opacity 0.5s ease;
    }

    .sidebar .nav-links .log_out {
        position: absolute;
        bottom: 45px; /* header size */
        width: 100%;
    }

    /* ToolTip */

    /* When sidebar is not active, make the entire li clickable */
    .sidebar.active .nav-links li a {
        pointer-events: none; /* Disable entire li when active */
    }

        .sidebar.active .nav-links li a .icon-wrapper {
            pointer-events: auto; /* Allow only icon-wrapper clickable */
        }


    /* New wrapper around icon to contain tooltip */
    .sidebar .nav-links li a .icon-wrapper {
        width: 60px; /* restrict hover/tooltip area */
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }


    .sidebar .nav-links li a .tooltip {
        position: absolute;
        top: -20px;
        left: calc(100% + 10px);
        z-index: 3;
        color: white;
        background: #0A2558;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 15px;
        font-weight: 400;
        opacity: 0;
        white-space: nowrap;
        pointer-events: none;
        transition: 0s;
    }

    /* Show tooltip only when sidebar is collapsed */
    .sidebar.active .nav-links li a .icon-wrapper:hover .tooltip {
        opacity: 1;
        pointer-events: auto;
        transition: all 0.4s ease;
        top: 50%;
        transform: translateY(-50%);
    }



/* Tool Tip */
.home-section {
    font-size: 1rem;
    position: relative;
    background: #f5f5f5; /* Tool Tip */
    background-color: #fff;
    min-height: 100vh;
    width: calc(100% - 240px);
    left: 240px;
    transition: all 0.5s ease;
}

.sidebar.active ~ .home-section,
.sidebar.active ~ .home-section .page-header {
    width: calc(100% - 60px);
    left: 60px;
}



/*--[1]-- My Work */
.mainheader {
    /*color: #fff; */
    background-color: rgba(248, 249, 250);
    /* background-image: linear-gradient(90deg, #0A2558 50%,  #9bb6ec 70%);*/

    border-bottom: 1px solid #dee2e6;
    /* Alignment */
    display: flex;
    align-items: center;
    font-size: 12px;
    /* Spacing */
    padding-left: 10px;
    padding-right: 5px;
    /*sticky position properties*/
    position: fixed;
    top: 0;
    z-index: 4;
    height: 50px;
    width: 100%;
    justify-content: space-between;
}

.home-section .page-header {
    display: flex;
    height: 35px;
    width: calc(100% - 240px); /* fixed */
    left: 240px;
    background-color: rgba(248, 249, 250);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    position: fixed; /* fixed */
    z-index: 1002; /*1002  z-index:998;*/
    top: 50px;
    /*---------------*/
    justify-content: space-between;
    /*  border: 1px solid rgba(0, 0, 0, .125);*/
}

.mainfooter {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 25px; /*Set the fixed height of the footer here */
    background-color: #fff !important;
    border-top: 1px solid var(--bs-gray-300);
    /* Alignment */
    display: flex;
    align-items: center;
    z-index: 2;
    font-size: 12px;
}

.home-section .home-content {
    background-color: #fff;
    position: relative;
    padding: 10px;
    /* overflow: auto;*/
    height: 100%;
    top: 85px;
}

/*--[1]-- My Work */

/*.home-section .home-content{
  position: relative;
  padding-top: 104px;
}*/

.home-content .overview-boxes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
    margin-bottom: 26px;
}

.overview-boxes .box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% / 4 - 15px);
    background: #fff;
    padding: 10px 11px;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.overview-boxes .box-topic {
    font-size: 15px;
    font-weight: 500;
}

.home-content .box .number {
    display: inline-block;
    font-size: 25px;
    margin-top: -6px;
    font-weight: 500;
}

.home-content .box .indicator {
    display: flex;
    align-items: center;
}

    .home-content .box .indicator i {
        height: 20px;
        width: 20px;
        background: #8FDACB;
        line-height: 20px;
        text-align: center;
        border-radius: 50%;
        color: #fff;
        font-size: 15px;
        margin-right: 5px;
    }

.box .indicator i.down {
    background: #e87d88;
}

.home-content .box .indicator .text {
    font-size: 12px;
}

.home-content .box .cart {
    display: inline-block;
    font-size: 32px;
    height: 50px;
    width: 50px;
    background: #cce5ff;
    line-height: 50px;
    text-align: center;
    color: #66b0ff;
    border-radius: 8px;
    margin: -15px 0 0 6px;
}

    .home-content .box .cart.two {
        color: #2BD47D;
        background: #C0F2D8;
    }

    .home-content .box .cart.three {
        color: #ffc233;
        background: #ffe8b3;
    }

    .home-content .box .cart.four {
        color: #e05260;
        background: #f7d4d7;
    }

.home-content .total-order {
    font-size: 20px;
    font-weight: 500;
}

.home-content .sales-boxes {
    display: flex;
    justify-content: space-between;
    /* padding: 0 20px; */
}

    /* left box */
    .home-content .sales-boxes .recent-sales {
        width: 65%;
        background: #fff;
        padding: 15px 20px;
        margin: 0 15px;
        border-radius: 8px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .home-content .sales-boxes .sales-details {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.sales-boxes .box .title {
    font-size: 18px;
    font-weight: 500;
    /* margin-bottom: 10px; */
}

.sales-boxes .sales-details li.topic {
    font-size: 13px;
    font-weight: 700;
}

.sales-boxes .sales-details li {
    list-style: none;
    margin: 8px 0;
}

    .sales-boxes .sales-details li a {
        font-size: 13px;
        color: #333;
        font-weight: 400;
        text-decoration: none;
    }

.sales-boxes .box .button {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

    .sales-boxes .box .button a {
        color: #fff;
        background: #0A2558;
        padding: 4px 12px;
        font-size: 15px;
        font-weight: 400;
        border-radius: 4px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .sales-boxes .box .button a:hover {
            background: #0d3073;
        }

/* Right box */
.home-content .sales-boxes .top-sales {
    width: 35%;
    background: #fff;
    padding: 15px 20px;
    margin: 0 15px 0 0;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.sales-boxes .top-sales li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

    .sales-boxes .top-sales li a img {
        height: 24px;
        width: 24px;
        object-fit: cover;
        border-radius: 12px;
        margin-right: 10px;
        background: #333;
    }

    .sales-boxes .top-sales li a {
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .sales-boxes .top-sales li .product,
    .price {
        font-size: 13px;
        font-weight: 400;
        color: #333;
    }
/* Responsive Media Query */
/* Media Query for screens smaller than 768px (typical tablets and phones) */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .home-section {
        width: calc(100% - 60px);
        left: 60px;
    }

        .home-section .page-header {
            width: calc(100% - 60px);
            left: 60px;
        }

    /* Optionally hide tooltips on very small screens to avoid clutter */
    /* .sidebar.active .nav-links li a .icon-wrapper:hover .tooltip {
        display: none;
    }*/

    /* Ensure content doesn't overflow */
    .home-content {
        padding: 10px;
        overflow-x: auto;
    }

    .overview-boxes .box {
        width: 100%; /* Stack boxes vertically on small screens */
        margin-bottom: 10px;
    }

    .home-content .sales-boxes {
        flex-direction: column;
    }

        .home-content .sales-boxes .recent-sales,
        .home-content .sales-boxes .top-sales {
            width: 100%;
            margin: 10px 0;
        }
}