/* ==========================================================================
   ISW ADMIN DASHBOARD
   Bootstrap 5
   ========================================================================== */

:root {

    --sidebar-width: 260px;

    --topbar-height: 70px;

    --primary: #1572e8;

    --dark: #1a2035;

    --sidebar: #1a2035;

    --body-bg: #f4f6f9;

    --card-bg: #ffffff;

    --border: #e7eaf0;

    --text: #2a2f3a;

    --muted: #8a92a6;

}


/* ==========================================================================
   GLOBAL
   ========================================================================== */

* {
    box-sizing: border-box;
}


body {

    margin: 0;

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--body-bg);

    color: var(--text);

    font-size: 14px;

}


a {
    text-decoration: none;
}


/* ==========================================================================
   DASHBOARD WRAPPER
   ========================================================================== */

.dashboard-wrapper {

    min-height: 100vh;

    width: 100%;

}


/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar {

    position: fixed;

    top: 0;

    left: 0;

    width: var(--sidebar-width);

    height: 100vh;

    background: var(--sidebar);

    color: #fff;

    z-index: 1050;

    overflow-y: auto;

    transition:
        transform .3s ease,
        width .3s ease;

}


.sidebar::-webkit-scrollbar {
    width: 5px;
}


.sidebar::-webkit-scrollbar-thumb {

    background: rgba(255,255,255,.15);

    border-radius: 10px;

}


/* BRAND */

.sidebar-brand {

    height: var(--topbar-height);

    display: flex;

    align-items: center;

    padding: 0 20px;

    border-bottom:
        1px solid
        rgba(255,255,255,.07);

}


.brand-link {

    display: flex;

    align-items: center;

    color: #fff;

    width: 100%;

}


.brand-logo {

    width: 38px;

    height: 38px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--primary);

    font-size: 13px;

    font-weight: 700;

}


.brand-text {

    display: flex;

    flex-direction: column;

    margin-left: 12px;

}


.brand-text strong {

    font-size: 16px;

    letter-spacing: .5px;

}


.brand-text small {

    color: rgba(255,255,255,.55);

    font-size: 10px;

}


.sidebar-close {

    margin-left: auto;

    background: transparent;

    border: 0;

    color: #fff;

    font-size: 18px;

}


/* USER */

.sidebar-user {

    padding: 18px 20px;

    display: flex;

    align-items: center;

    border-bottom:
        1px solid
        rgba(255,255,255,.07);

}


.user-avatar {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    background: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    color: #fff;

}


.user-details {

    display: flex;

    flex-direction: column;

    margin-left: 11px;

}


.user-details strong {

    font-size: 13px;

}


.user-details small {

    font-size: 11px;

    color: rgba(255,255,255,.55);

    margin-top: 3px;

}


/* MENU */

.sidebar-menu {

    padding: 15px 12px 30px;

}


.menu-heading {

    font-size: 10px;

    font-weight: 700;

    color: rgba(255,255,255,.4);

    letter-spacing: 1px;

    padding: 18px 12px 8px;

}


.sidebar .nav-link {

    position: relative;

    display: flex;

    align-items: center;

    gap: 12px;

    color: rgba(255,255,255,.72);

    padding: 11px 13px;

    border-radius: 6px;

    margin-bottom: 3px;

    font-size: 13px;

    transition: all .2s ease;

}


.sidebar .nav-link i:first-child {

    width: 18px;

    font-size: 16px;

}


.sidebar .nav-link:hover {

    background:
        rgba(255,255,255,.08);

    color: #fff;

}


.sidebar .nav-link.active {

    background: var(--primary);

    color: #fff;

}


.menu-arrow {

    margin-left: auto;

    font-size: 11px !important;

    width: auto !important;

}


.submenu {

    list-style: none;

    padding: 5px 0 5px 44px;

    margin: 0;

}


.submenu li a {

    display: block;

    color: rgba(255,255,255,.55);

    font-size: 12px;

    padding: 8px 10px;

    border-radius: 5px;

}


.submenu li a:hover {

    color: #fff;

    background:
        rgba(255,255,255,.05);

}


/* ==========================================================================
   MAIN PANEL
   ========================================================================== */

.main-panel {

    margin-left: var(--sidebar-width);

    min-height: 100vh;

    transition:
        margin-left .3s ease;

}


/* ==========================================================================
   TOPBAR
   ========================================================================== */

.topbar {

    position: sticky;

    top: 0;

    height: var(--topbar-height);

    background: #fff;

    border-bottom: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 25px;

    z-index: 1000;

}


.topbar-left,
.topbar-right {

    display: flex;

    align-items: center;

}


.menu-toggle {

    border: 0;

    background: transparent;

    font-size: 22px;

    color: #596273;

    margin-right: 20px;

    cursor: pointer;

}


.topbar-search {

    width: 260px;

    height: 38px;

    border: 1px solid var(--border);

    border-radius: 6px;

    display: flex;

    align-items: center;

    padding: 0 12px;

    color: #9aa1b2;

}


.topbar-search i {

    margin-right: 8px;

}


.topbar-search input {

    border: 0;

    outline: 0;

    width: 100%;

    font-size: 13px;

}


.topbar-icon {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: transparent;

    border: 0;

    color: #657083;

    font-size: 18px;

    border-radius: 50%;

    position: relative;

}


.topbar-icon:hover {

    background: #f4f6f9;

}


.notification-dot {

    width: 7px;

    height: 7px;

    background: #f25961;

    border-radius: 50%;

    position: absolute;

    top: 7px;

    right: 7px;

    border: 2px solid #fff;

}


/* PROFILE */

.profile-button {

    border: 0;

    background: transparent;

    display: flex;

    align-items: center;

    gap: 10px;

    margin-left: 12px;

    padding: 5px;

}


.profile-avatar {

    width: 38px;

    height: 38px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--primary);

    color: #fff;

    font-weight: 700;

}


.profile-avatar.large {

    width: 45px;

    height: 45px;

}


.profile-info {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.profile-info strong {

    font-size: 13px;

}


.profile-info small {

    font-size: 11px;

    color: var(--muted);

}


.profile-button > i {

    font-size: 11px;

    color: #8a92a6;

}


/* ==========================================================================
   CONTENT
   ========================================================================== */

.content {

    padding: 30px 25px;

}


.page-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

}


.page-title {

    font-size: 24px;

    font-weight: 600;

    margin: 0;

}


.page-subtitle {

    color: var(--muted);

    margin: 5px 0 0;

    font-size: 13px;

}


/* ==========================================================================
   STAT CARDS
   ========================================================================== */

.stat-card {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 20px;

    display: flex;

    align-items: center;

    min-height: 140px;

    transition: transform .2s ease,
                box-shadow .2s ease;

}


.stat-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(31,45,61,.08);

}


.stat-icon {

    width: 55px;

    height: 55px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-size: 23px;

    flex-shrink: 0;

}


.stat-content {

    margin-left: 15px;

}


.stat-label {

    margin: 0 0 4px;

    color: var(--muted);

    font-size: 12px;

}


.stat-content h2 {

    margin: 0;

    font-size: 26px;

    font-weight: 600;

}


.stat-link {

    display: block;

    margin-top: 5px;

}


.stat-link a {

    color: var(--primary);

    font-size: 11px;

}


.stat-link i {

    margin-left: 3px;

}


/* ==========================================================================
   DASHBOARD CARD
   ========================================================================== */

.dashboard-card {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 8px;

    overflow: hidden;

    height: 100%;

}


.card-header-custom {

    padding: 20px;

    border-bottom: 1px solid var(--border);

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.card-header-custom h5 {

    margin: 0;

    font-size: 15px;

    font-weight: 600;

}


.card-header-custom small {

    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-top: 4px;

}


/* ==========================================================================
   CHART
   ========================================================================== */

.chart-container {

    height: 330px;

    padding: 20px;

}


/* ==========================================================================
   VISITOR SUMMARY
   ========================================================================== */

.visitor-summary {

    padding: 10px 20px 20px;

}


.summary-item {

    display: flex;

    align-items: center;

    padding: 14px 0;

    border-bottom: 1px solid #f0f1f4;

}


.summary-item:last-child {

    border-bottom: 0;

}


.summary-icon {

    width: 40px;

    height: 40px;

    border-radius: 7px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-right: 12px;

}


.summary-icon.today {

    background: #e8f1ff;

    color: #1572e8;

}


.summary-icon.yesterday {

    background: #f0e9ff;

    color: #6861ce;

}


.summary-icon.month {

    background: #e8f8f0;

    color: #31ce36;

}


.summary-icon.live {

    background: #ffebeb;

    color: #f25961;

}


.summary-item div:last-child {

    display: flex;

    flex-direction: column;

}


.summary-item span {

    font-size: 11px;

    color: var(--muted);

}


.summary-item strong {

    font-size: 17px;

    margin-top: 2px;

}


/* ==========================================================================
   TABLE
   ========================================================================== */

.dashboard-table {

    margin: 0;

}


.dashboard-table th {

    background: #fafbfc;

    border-bottom: 1px solid var(--border);

    color: #7c8496;

    font-size: 11px;

    font-weight: 600;

    padding: 13px 20px;

    text-transform: uppercase;

}


.dashboard-table td {

    padding: 14px 20px;

    vertical-align: middle;

    border-bottom: 1px solid #f0f1f4;

    font-size: 12px;

}


.dashboard-table tbody tr:last-child td {

    border-bottom: 0;

}


.news-title {

    display: flex;

    align-items: center;

    gap: 10px;

}


.news-icon {

    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #edf4ff;

    color: var(--primary);

    border-radius: 6px;

}


.empty-icon {

    font-size: 30px;

    color: #b5bbc8;

}


/* ==========================================================================
   ACTIVITY
   ========================================================================== */

.activity-list {

    padding: 10px 20px 20px;

}


.activity-item {

    display: flex;

    gap: 12px;

    padding: 14px 0;

    border-bottom: 1px solid #f0f1f4;

}


.activity-item:last-child {

    border-bottom: 0;

}


.activity-icon {

    width: 35px;

    height: 35px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #edf4ff;

    color: var(--primary);

    flex-shrink: 0;

}


.activity-content h6 {

    margin: 0;

    font-size: 12px;

    font-weight: 600;

}


.activity-content p {

    margin: 3px 0;

    color: var(--muted);

    font-size: 11px;

}


.activity-content small {

    color: #a1a8b5;

    font-size: 10px;

}


.empty-state {

    text-align: center;

    padding: 40px 10px;

    color: var(--muted);

}


.empty-state i {

    font-size: 30px;

}


/* ==========================================================================
   CONTENT STATISTICS
   ========================================================================== */

.content-stat-list {

    padding: 10px 20px 20px;

}


.content-stat {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid #f0f1f4;

}


.content-stat:last-child {

    border-bottom: 0;

}


.content-stat-left {

    display: flex;

    align-items: center;

    gap: 12px;

}


.content-stat-left span {

    font-size: 12px;

}


.content-stat strong {

    font-size: 15px;

}


.content-stat-icon {

    width: 38px;

    height: 38px;

    border-radius: 7px;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* ==========================================================================
   QUICK ACTIONS
   ========================================================================== */

.quick-action {

    border: 1px solid var(--border);

    border-radius: 7px;

    min-height: 100px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: #596273;

    transition: all .2s ease;

}


.quick-action:hover {

    border-color: var(--primary);

    color: var(--primary);

    background: #f8fbff;

}


.quick-action i {

    font-size: 25px;

    margin-bottom: 8px;

}


.quick-action span {

    font-size: 12px;

}


/* ==========================================================================
   NOTIFICATIONS
   ========================================================================== */

.notification-menu {

    width: 350px;

    padding: 0;

    border: 1px solid var(--border);

    box-shadow:
        0 10px 30px rgba(0,0,0,.1);

}


.notification-header {

    display: flex;

    justify-content: space-between;

    padding: 15px;

    border-bottom: 1px solid var(--border);

}


.notification-header span {

    color: var(--primary);

    font-size: 11px;

}


.notification-item {

    display: flex;

    gap: 10px;

    padding: 13px 15px;

    border-bottom: 1px solid #f0f1f4;

}


.notification-icon {

    width: 35px;

    height: 35px;

    border-radius: 7px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}


.notification-item div:last-child {

    display: flex;

    flex-direction: column;

}


.notification-item strong {

    font-size: 12px;

}


.notification-item small {

    color: var(--muted);

    font-size: 10px;

    margin-top: 2px;

}


.notification-item span {

    color: #a1a8b5;

    font-size: 9px;

    margin-top: 4px;

}


.notification-footer {

    padding: 12px;

    text-align: center;

}


.notification-footer a {

    font-size: 11px;

    color: var(--primary);

}


/* ==========================================================================
   PROFILE MENU
   ========================================================================== */

.profile-menu {

    min-width: 240px;

    padding: 8px;

}


.profile-menu-header {

    display: flex;

    gap: 10px;

    align-items: center;

    padding: 10px;

}


.profile-menu-header div:last-child {

    display: flex;

    flex-direction: column;

}


.profile-menu-header strong {

    font-size: 12px;

}


.profile-menu-header small {

    color: var(--muted);

    font-size: 10px;

}


.profile-menu .dropdown-item {

    font-size: 12px;

    padding: 9px 10px;

    border-radius: 5px;

}


.profile-menu .dropdown-item i {

    margin-right: 8px;

}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.dashboard-footer {

    min-height: 65px;

    background: #fff;

    border-top: 1px solid var(--border);

    padding: 0 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #8a92a6;

    font-size: 11px;

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

.sidebar-overlay {

    display: none;

}


@media (max-width: 991.98px) {

    .sidebar {

        transform: translateX(-100%);

    }


    .sidebar.show {

        transform: translateX(0);

    }


    .main-panel {

        margin-left: 0;

    }


    .sidebar-overlay.show {

        display: block;

        position: fixed;

        inset: 0;

        background: rgba(0,0,0,.4);

        z-index: 1040;

    }

}


@media (max-width: 767.98px) {

    .content {

        padding: 20px 15px;

    }


    .topbar {

        padding: 0 15px;

    }


    .page-header {

        align-items: flex-start;

        gap: 15px;

    }


    .page-title {

        font-size: 21px;

    }


    .page-header .btn {

        font-size: 11px;

    }


    .chart-container {

        height: 260px;

    }


    .dashboard-footer {

        flex-direction: column;

        justify-content: center;

        gap: 5px;

        padding: 15px;

        text-align: center;

    }


    .notification-menu {

        width: 300px;

        max-width: calc(100vw - 30px);

    }

}


@media (max-width: 575.98px) {

    .topbar-search {

        display: none;

    }


    .profile-button > i {

        display: none;

    }


    .stat-card {

        min-height: 120px;

    }


    .stat-content h2 {

        font-size: 22px;

    }


    .dashboard-table {

        min-width: 650px;

    }

}