﻿html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.wrapper {
    overflow-x: hidden;
}

.main-content {
    overflow-x: hidden;
}/*================ Sidebar ================*/
.tooltip {
    --bs-tooltip-bg: #111827;
    --bs-tooltip-color: #fff;
}

.tooltip-inner {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,.20);
}
.wrapper {
    display: flex;
    min-height: 100vh;
    background: #f4f7fc;
}

.sidebar {
    width: 290px;
    background: #ffffff;
    color: #1f2937;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-header {
    padding: 14px;
    border-bottom: 1px solid #eef2f7;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

    .sidebar-logo img {
        width: 150px;
        height: 45px;
        border-radius: 10px;
    }

    .sidebar-logo span {
        font-size: 22px;
        font-weight: 700;
    }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid #eef2f7;
}

    .sidebar-user img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .sidebar-user h6 {
        margin: 0;
        color: #111827;
    }

    .sidebar-user small {
        color: #6b7280;
    }

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

    .sidebar-menu li {
        margin: 3px 10px;
    }

        .sidebar-menu li a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 16px;
            border-radius: 12px;
            text-decoration: none;
            color: #475569;
            transition: .3s;
            font-size: 15px;
        }

            .sidebar-menu li a i {
                font-size: 18px;
            }
            .sidebar-menu li a:hover {
                background: #eff6ff;
                color: #2563eb;
            }
        .sidebar-menu li.active a {
            background: #2563eb;
            color: #fff;
            box-shadow: 0 10px 25px rgba(37,99,235,.18);
        }

.submenu {
    display: none;
    list-style: none;
    padding-left: 48px;
}

    .submenu li {
        margin: 4px 0;
    }

        .submenu li a {
            padding: 10px 12px;
            font-size: 14px;
            color: #cbd5e1;
        }

.has-sub.open > .submenu {
    display: block;
}

.arrow {
    transition: .3s;
}

.has-sub.open .arrow {
    transform: rotate(180deg);
}

/*================ SUB MENU =================*/

.has-sub {
    position: relative;
}

.submenu {
    display: none;
    list-style: none;
    margin: 7px 0 7px 16px;
    padding: 0 0 0 22px;
    position: relative;
}

    /* Vertical Line */

    .submenu::before {
        content: "";
        position: absolute;
        left: 8px;
        top: 2px;
        bottom: 10px;
        width: 2px;
        background: #dbe4f0;
    }

    /* Each Item */

    .submenu li {
        position: relative;
        margin: 5px 0;
    }

        /* Big Dot */

        .submenu li::before {
            content: "";
            position: absolute;
            left: -18px;
            top: 50%;
            transform: translateY(-50%);
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #2563eb;
            border: 2px solid #fff;
            z-index: 2;
        }

        /* Horizontal Connector */

        .submenu li::after {
            content: "";
            position: absolute;
            left: -18px;
            top: 50%;
            width: 18px;
            height: 2px;
            background: #dbe4f0;
        }

        /* Links */

        .submenu li a {
            display: block;
            padding: 10px 14px;
            border-radius: 10px;
            color: #64748b;
            background: transparent;
            text-decoration: none;
            transition: .3s;
            font-size: 14px;
        }

            .submenu li a:hover {
                background: #eef4ff;
                color: #2563eb;
            }

        .submenu li.active a {
            background: #2563eb;
            color: #fff;
            box-shadow: 0 6px 15px rgba(37,99,235,.18);
        }

/* Normal Sidebar */
.submenu-title {
    display: none;
}

/* Collapsed Popup */
.wrapper.collapsed .submenu-title {
    display: block;
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}
/*==========================================================
            COLLAPSED SIDEBAR
==========================================================*/

.sidebar,
.main-content {
    transition: all .35s ease;
}

/* Sidebar */

.wrapper.collapsed .sidebar {
    width: 80px;
    overflow: visible;
}

/* Main */

.wrapper.collapsed .main-content {
    margin-left: 80px;
    width: calc(100% - 80px);
}

/* Header */

.wrapper.collapsed .sidebar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0;
}

.wrapper.collapsed .sidebar-logo {
    justify-content: center;
}

    .wrapper.collapsed .sidebar-logo span {
        display: none;
    }

    .wrapper.collapsed .sidebar-logo img {
        width: 40px;
        height: 40px;
    }

/* User */

.wrapper.collapsed .sidebar-user {
    justify-content: center;
    padding: 15px 0;
}

    .wrapper.collapsed .sidebar-user div {
        display: none;
    }

    .wrapper.collapsed .sidebar-user img {
        width: 45px;
        height: 45px;
    }

/* Menu */

.wrapper.collapsed .sidebar-menu {
    padding: 12px 0;
}

    .wrapper.collapsed .sidebar-menu > li {
        position: relative;
        display: flex;
        justify-content: center;
        margin: 10px 0;
    }

        .wrapper.collapsed .sidebar-menu > li > a {
            width: 46px;
            height: 46px;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0;
            border-radius: 14px;
        }

            .wrapper.collapsed .sidebar-menu > li > a span {
                display: none;
            }

            .wrapper.collapsed .sidebar-menu > li > a i {
                font-size: 21px;
                margin: 0;
            }

/* Arrow Hide */

.wrapper.collapsed .arrow {
    display: none;
}


/*==========================================================
                FLYOUT MENU
==========================================================*/

.wrapper.collapsed .has-sub {
    position: relative;
}

/* Remove Expanded Design */

.wrapper.collapsed .submenu::before,
.wrapper.collapsed .submenu li::before,
.wrapper.collapsed .submenu li::after {
    display: none !important;
    content: none !important;
}

/* Popup */
.wrapper.collapsed .submenu {
    position: fixed;
    left: 90px;
    width: 240px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 45px rgba(15,23,42,.18);
    padding: 10px;
    display: none;
    z-index: 99999;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Show */

.wrapper.collapsed .has-sub:hover > .submenu {
    display: block;
}

/* Title */

.wrapper.collapsed .submenu-title {
    display: block;
    list-style: none;
    padding: 10px 14px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #111827;
    border-bottom: 1px solid #edf2f7;
}

/* Items */

.wrapper.collapsed .submenu li {
    margin: 2px 0;
}

    .wrapper.collapsed .submenu li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 11px 14px;
        border-radius: 10px;
        color: #475569;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        background: none;
        transition: .25s;
    }

        /* Hover */

        .wrapper.collapsed .submenu li a:hover {
            background: #2563eb;
            color: #fff;
            transform: translateX(5px);
        }

    /* Active */

    .wrapper.collapsed .submenu li.active a {
        background: #2563eb;
        color: #fff;
        box-shadow: none;
    }
/* Chrome */

.wrapper.collapsed .submenu::-webkit-scrollbar {
    width: 6px;
}

.wrapper.collapsed .submenu::-webkit-scrollbar-track {
    background: transparent;
}

.wrapper.collapsed .submenu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 30px;
}

    .wrapper.collapsed .submenu::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }


/*================ GitHub Style Scrollbar =================*/

.sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}

    /* Chrome / Edge */

    .sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 20px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: transparent;
        border-radius: 20px;
        transition: all .25s ease;
    }

    /* Hover on Sidebar */

    .sidebar:hover::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.18);
    }

    /* Hover on Thumb */

    .sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(255,255,255,.35);
    }

    /* While Clicking */

    .sidebar::-webkit-scrollbar-thumb:active {
        background: rgba(255,255,255,.55);
    }

    .sidebar::-webkit-scrollbar-corner {
        background: transparent;
    }
    /*================ TOPBAR =================*/

.main-content {
    margin-left: 290px;
    width: calc(100% - 270px);
}

.topbar {
    height: 75px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    border: none;
    background: none;
    font-size: 26px;
}

.search-box {
    width: 320px;
    height: 46px;
    background: #f5f7fb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 18px;
}

    .search-box i {
        color: #777;
    }

    .search-box input {
        flex: 1;
        border: none;
        background: none;
        outline: none;
        padding-left: 12px;
    }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f5f7fb;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    position: relative;
    text-decoration: none;
}

    .top-icon i {
        font-size: 20px;
    }

.badge-count {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
}

.profile-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-dropdown h6 {
    margin: 0;
    font-size: 15px;
}

.profile-dropdown small {
    color: #777;
}

.dropdown-toggle::after {
    margin-left: 10px;
}

/*================ DASHBOARD =================*/

.page-content {
    padding: 25px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

    .dashboard-header h2 {
        font-weight: 700;
        margin-bottom: 4px;
    }

    .dashboard-header p {
        color: #777;
        margin: 0;
    }

.stat-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 28px;
}

.blue {
    background: #2563eb;
}

.green {
    background: #16a34a;
}

.orange {
    background: #ea580c;
}

.red {
    background: #dc2626;
}

.stat-card h3 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
}

.stat-card span {
    color: #777;
}

.dashboard-box {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.box-header {
    margin-bottom: 20px;
}

    .box-header h4 {
        font-weight: 700;
    }

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px;
    border-radius: 16px;
    background: #f8faff;
    border: 1px solid #edf2ff;
    text-decoration: none;
    color: #333;
    transition: .3s;
}

    .quick-card:hover {
        transform: translateY(-6px);
        border-color: #2563eb;
        box-shadow: 0 15px 35px rgba(37,99,235,.15);
        color: #2563eb;
    }

    .quick-card i {
        font-size: 34px;
        margin-bottom: 12px;
    }

    .quick-card span {
        font-weight: 600;
    }
