@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f4f7fb;
    font-family: 'Poppins', sans-serif;
    color: #2d3748;
}

a {
    text-decoration: none;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===========================
   Sidebar
=========================== */

.sidebar {
    width: 270px;
    background: #fff;
    border-right: 1px solid #edf2f7;
    padding: 24px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    transition: .3s;
}

.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-right: 15px;
}

.logo-text h5 {
    margin-bottom: 2px;
    font-weight: 700;
}

.logo-text span {
    font-size: 13px;
    color: #94a3b8;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    border-radius: 14px;
    color: #64748b;
    transition: .25s;
    font-weight: 500;
}

.sidebar-menu a i {
    width: 28px;
    font-size: 20px;
}

.sidebar-menu a:hover {
    background: #eff6ff;
    color: #2563eb;
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .25);
}

/* ===========================
   Main
=========================== */

.main-content {
    margin-left: 270px;
    width: calc(100% - 270px);
}

/* ===========================
   Navbar
=========================== */

.topbar {
    height: 75px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid #edf2f7;
}

.menu-btn,
.notification-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: #f8fafc;
    border-radius: 12px;
    transition: .25s;
}

.menu-btn:hover,
.notification-btn:hover {
    background: #2563eb;
    color: #fff;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-profile img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.user-profile strong {
    display: block;
    font-size: 14px;
}

.user-profile small {
    color: #94a3b8;
}

/* ===========================
   Content
=========================== */

.content {
    padding: 30px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h3 {
    font-weight: 700;
}

.page-header p {
    color: #94a3b8;
}

/* ===========================
   Statistic Card
=========================== */

.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
    transition: .3s;
}

.stat-card:hover {
    transform: translateY(-6px);
}

.stat-card .icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    margin-right: 18px;
}

.stat-card h4 {
    margin-bottom: 4px;
    font-weight: 700;
}

.stat-card span {
    color: #94a3b8;
    font-size: 14px;
}

/* ===========================
   Content Card
=========================== */

.content-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
    overflow: hidden;
}

.card-header-custom {
    padding: 20px 25px;
    border-bottom: 1px solid #edf2f7;
}

.card-header-custom h5 {
    margin: 0;
    font-weight: 600;
}

.card-body-custom {
    padding: 25px;
    min-height: 320px;
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 992px) {

    .sidebar {
        left: -270px;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    .topbar {
        padding: 0 20px;
    }

    .content {
        padding: 20px;
    }

}

@media (max-width: 576px) {

    .user-profile div {
        display: none;
    }

    .topbar-right {
        gap: 10px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card .icon {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }

}

/* ===========================
   Sidebar Collapse
=========================== */

.sidebar.collapsed {
    width: 90px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed span {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar.collapsed .logo {
    margin-right: 0;
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
}

.sidebar.collapsed .sidebar-menu a i {
    margin-right: 0;
}

.main-content.expanded {
    margin-left: 90px;
    width: calc(100% - 90px);
}

/* ===========================
   Mobile Sidebar
=========================== */

@media (max-width: 992px) {

    .sidebar {
        left: -270px;
        z-index: 1050;
    }

    .sidebar.show {
        left: 0;
    }

}