﻿.btnn {
    border-radius: 20px;
    width: auto;
    height: auto;
    padding: 5px;
    border: 2px solid #22E9A2;
    background-color: white;
    color: #22E9A2;
    font-weight: 600;
}

    .btnn:hover {
        /*background-color: #048F8C;*/
        color: white;
        font-weight: 600;
        border: 1px solid;
        background: linear-gradient(180deg, #0DAFDC 0%, #22E9A2 100%);
    }

.sidebar .logo-details {
    height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
}

    .sidebar .logo-details i {
        font-size: 30px;
        color: black;
        height: 50px;
        min-width: 78px;
        text-align: center;
        line-height: 50px;
    }

    .sidebar .logo-details .logo_name {
        font-size: 22px;
        color: #048F8C;
        font-weight: 600;
        transition: 0.3s ease;
        transition-delay: 0.1s;
    }

.sidebar.close .logo-details .logo_name {
    transition-delay: 0s;
    opacity: 0;
    pointer-events: none;
}

.sidebar .nav-links {
    height: 100%;
    padding: 30px 0 150px 0;
    overflow: auto;
}

.sidebar.close .nav-links {
    overflow: visible;
}

.sidebar .nav-links::-webkit-scrollbar {
    display: none;
}

.sidebar .nav-links li {
    position: relative;
    list-style: none;
    transition: all 0.4s ease;
}



    .sidebar .nav-links li .iocn-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.sidebar.close .nav-links li .iocn-link {
    display: block
}

.sidebar .nav-links li i {
    height: 50px;
    min-width: 78px;
    text-align: center;
    line-height: 50px;
    color: black;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar .nav-links li.showMenu i.arrow {
    transform: rotate(-180deg);
}

.sidebar.close .nav-links i.arrow {
    display: none;
}

.sidebar .nav-links li a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

    .sidebar .nav-links li a .link_name {
        font-size: 16px;
        font-weight: 400;
        color: black;
        transition: all 0.4s ease;
    }

.sidebar .nav-links li:hover {
    background: #93deff;
    color: #fff;
    font-weight: 500;
}

.sidebar .nav-links li i:hover {
    color: #fff;
    font-weight: 500;
}

.sidebar .nav-links li .link_name:hover {
    color: #fff;
    font-weight: 500;
}

.sidebar.close .nav-links li a .link_name {
    opacity: 0;
    pointer-events: none;
}

.sidebar .nav-links li .sub-menu {
    padding: 6px 6px 14px 80px;
    margin-top: -10px;
    background: white;
    display: none;
}

.sidebar .nav-links li.showMenu .sub-menu {
    display: block;
}

.sidebar .nav-links li .sub-menu a {
    color: black;
    font-size: 15px;
    padding: 5px 0;
    white-space: nowrap;
    opacity: 0.6;
    transition: all 0.3s ease;
}

    .sidebar .nav-links li .sub-menu a:hover {
        opacity: 1;
        color: #fff;
    }

.sidebar.close .nav-links li .sub-menu {
    position: absolute;
    left: 100%;
    top: -10px;
    margin-top: 0;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    opacity: 0;
    display: block;
    pointer-events: none;
    transition: 0s;
}

.sidebar.close .nav-links li:hover .sub-menu {
    top: 0;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    color: #fff;
}

.sidebar .nav-links li .sub-menu .link_name {
    display: none;
}

.sidebar.close .nav-links li .sub-menu .link_name {
    font-size: 18px;
    opacity: 1;
    display: block;
}

.sidebar .nav-links li .sub-menu.blank {
    opacity: 1;
    pointer-events: auto;
    padding: 3px 20px 6px 16px;
    opacity: 0;
    pointer-events: none;
}

.sidebar .nav-links li:hover .sub-menu.blank {
    top: 50%;
    transform: translateY(-50%);
}

.sidebar .profile-details {
    position: fixed;
    bottom: 0;
    width: 260px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fff;
    padding: 12px 0;
    transition: all 0.5s ease;
}

.sidebar.close .profile-details {
    width: 78px;
    display: none;
}

.sidebar .profile-details .profile-content {
    display: flex;
    align-items: center;
}

.sidebar .close .profile-details .profile-content {
    display: none;
}

.sidebar .profile-details .profile-content {
    display: flex;
    align-items: center;
}

.sidebar .profile-details img {
    height: 52px;
    width: 52px;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 14px 0 12px;
    background: #1d1b31;
    transition: all 0.5s ease;
}

.sidebar.close .profile-details img {
    padding: 10px;
}

.sidebar .profile-details .profile_name,
.sidebar .profile-details .job {
    color: black;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar.close .profile-details i,
.sidebar.close .profile-details .profile_name,
.sidebar.close .profile-details .job {
    display: none;
}

.sidebar .profile-details .job {
    font-size: 12px;
}

.home-section {
    position: relative;
    /* background: #E4E9F7; */
    height: 100vh;
    left: 260px;
    width: calc(100% - 260px);
    transition: all 0.5s ease;
}

.sidebar.close ~ .home-section {
    left: 78px;
    width: calc(100% - 78px);
}

.home-section .home-content {
    height: 60px;
    display: flex;
    align-items: center;
}

    .home-section .home-content .bx-menu,
    .home-section .home-content .text {
        color: #11101d;
        font-size: 35px;
    }

    .home-section .home-content .bx-menu {
        margin: 0 15px;
        cursor: pointer;
    }

    .home-section .home-content .text {
        font-size: 26px;
        font-weight: 600;
    }

@media (max-width: 400px) {
    .sidebar.close .nav-links li .sub-menu {
        display: none;
    }

    .sidebar {
        width: 78px;
    }

        .sidebar.close {
            width: 0;
        }

    .home-section {
        left: 78px;
        width: calc(100% - 78px);
        z-index: 100;
    }

    .sidebar.close ~ .home-section {
        width: 100%;
        left: 0;
    }
}

.graph {
    transition: margin-left 0.3s ease, width 0.3s ease; /* Smooth transition for the graph container */
}

/* styles.css */



.statistics-container {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 1rem; /* Space between boxes */
    padding: 1rem;
    overflow-x: auto; /* Allow horizontal scrolling if necessary */
    max-width: 100vw; /* Prevent container from stretching beyond viewport */
}

.stat-box {
    background-color: white;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    padding: 1rem;
    text-align: center; /* Center align text inside the box */
    flex: 1 1 200px; /* Grow and shrink with a base width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .stat-box:hover {
        transform: translateY(-5px); /* Move the box up by 5 pixels on hover */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
        color: #048F8C;
        font-weight: 600;
    }
/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-box {
        flex: 1 1 150px; /* Reduce base width on smaller screens */
    }
}

@media (max-width: 480px) {
    .stat-box {
        flex: 1 1 120px; /* Further reduce base width for very small screens */
    }

    .stat-label {
        font-size: 0.9rem; /* Adjust font size for smaller screens */
    }

    .stat-value {
        font-size: 1.2rem; /* Adjust font size for smaller screens */
    }
}


/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%; /* Initially takes 10% width */
    background: #fff;
    z-index: 100;
    transition: width 0.3s ease;
}

    .sidebar.close {
        width: 78px; /* Expanded width */
    }

    .sidebar .logo-details {
        height: 60px;
        width: 100%;
        display: flex;
        align-items: center;
    }

        .sidebar .logo-details i {
            font-size: 30px;
            color: black;
            height: 50px;
            min-width: 78px;
            text-align: center;
            line-height: 50px;
        }

        .sidebar .logo-details .logo_name {
            font-size: 22px;
            color: #048F8C;
            font-weight: 600;
            transition: 0.3s ease;
            transition-delay: 0.1s;
        }

    .sidebar.close .logo-details .logo_name {
        transition-delay: 0s;
        opacity: 0;
        pointer-events: none;
    }

    .sidebar .nav-links {
        height: 100%;
        padding: 30px 0 150px 0;
        overflow: auto;
    }



        .sidebar .nav-links::-webkit-scrollbar {
            display: none;
        }



        .sidebar .nav-links li .iocn-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

    .sidebar.close .nav-links li .iocn-link {
        display: block;
    }

    .sidebar .nav-links li i {
        height: 50px;
        min-width: 78px;
        text-align: center;
        line-height: 50px;
        color: black;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .sidebar .nav-links li.showMenu i.arrow {
        transform: rotate(-180deg);
    }

    .sidebar.close .nav-links i.arrow {
        display: none;
    }



    .sidebar .nav-links li a .link_name {
        font-size: 16px;
        font-weight: 400;
        color: black;
        transition: all 0.4s ease;
    }

    .sidebar .nav-links li:hover {
        background: #048F8C;
        color: #fff;
        font-weight: 500;
    }

    .sidebar .nav-links li i:hover {
        color: #fff;
        font-weight: 500;
    }

    .sidebar .nav-links li .link_name:hover {
        color: #fff;
        font-weight: 500;
    }

    .sidebar.close .nav-links li a .link_name {
        opacity: 0;
        pointer-events: none;
    }

    .sidebar .nav-links li .sub-menu {
        padding: 6px 6px 14px 80px;
        margin-top: -10px;
        background: white;
        display: none;
    }

    .sidebar .nav-links li.showMenu .sub-menu {
        display: block;
    }

    .sidebar .nav-links li .sub-menu a {
        color: black;
        font-size: 15px;
        padding: 5px 0;
        white-space: nowrap;
        opacity: 0.6;
        transition: all 0.3s ease;
    }

        .sidebar .nav-links li .sub-menu a:hover {
            opacity: 1;
            color: #fff;
        }

    .sidebar.close .nav-links li .sub-menu {
        position: absolute;
        left: 100%;
        top: -10px;
        margin-top: 0;
        padding: 10px 20px;
        border-radius: 0 6px 6px 0;
        opacity: 0;
        display: block;
        pointer-events: none;
        transition: 0s;
    }

    .sidebar.close .nav-links li:hover .sub-menu {
        top: 0;
        opacity: 1;
        pointer-events: auto;
        transition: all 0.4s ease;
        color: #fff;
    }

    .sidebar .nav-links li .sub-menu .link_name {
        display: none;
    }

    .sidebar.close .nav-links li .sub-menu .link_name {
        font-size: 18px;
        opacity: 1;
        display: block;
    }

    .sidebar .nav-links li .sub-menu.blank {
        opacity: 1;
        pointer-events: auto;
        padding: 3px 20px 6px 16px;
        opacity: 0;
        pointer-events: none;
    }

    .sidebar .nav-links li:hover .sub-menu.blank {
        top: 50%;
        transform: translateY(-50%);
    }



    .sidebar.close .profile-details {
        width: 78px;
        display: none;
    }

    .sidebar .profile-details .profile-content {
        display: flex;
        align-items: center;
    }

    .sidebar .profile-details img {
        height: 52px;
        width: 52px;
        object-fit: cover;
        border-radius: 16px;
        margin: 0 14px 0 12px;
        background: #1d1b31;
        transition: all 0.5s ease;
    }

    .sidebar.close .profile-details img {
        padding: 10px;
    }

    .sidebar .profile-details .profile_name,
    .sidebar .profile-details .job {
        color: black;
        font-size: 18px;
        font-weight: 500;
        white-space: nowrap;
    }

    .sidebar.close .profile-details i,
    .sidebar.close .profile-details .profile_name,
    .sidebar.close .profile-details .job {
        display: none;
    }

    .sidebar .profile-details .job {
        font-size: 12px;
    }

/* Main Content */
.main-content {
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.mid-content {
    /* Adjust to account for initial sidebar width */
    width: 90%; /* Adjust to account for initial sidebar width */
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.sidebar.close ~ .mid-content {
    margin-left: 20%; /* Adjust to account for expanded sidebar width */
    width: 80%; /* Adjust to account for expanded sidebar width */
}

/* Responsive Styles */
@media (max-width: 400px) {
    .sidebar {
        width: 78px; /* Adjust for small screens */
    }

        .sidebar.close {
            width: 0;
        }

    .mid-content {
        margin-left: 78px;
        width: calc(100% - 78px);
    }

    .sidebar.close ~ .mid-content {
        width: 100%;
        margin-left: 0;
    }
}

.statistics-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 1rem;
    overflow-x: auto;
    max-width: 100vw;
}

.stat-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    flex: 1 1 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .stat-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        color: #048F8C;
        font-weight: 600;
    }

@media (max-width: 768px) {
    .stat-box {
        flex: 1 1 150px;
    }
}

@media (max-width: 480px) {
    .stat-box {
        flex: 1 1 120px;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }
}
