﻿.sidebar-group {
    margin: 8px 0 14px;
}
.sidebar-group-header {
    width: 100%;
    display: flex;
    align-items: center;
    padding: .75rem 1rem;
    border: none;
    background: none;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: .04em;
    /*text-transform: uppercase;*/
    box-sizing: border-box;
}

.sidebar-group-header:hover {
    color: #0d6efd;
}

.sidebar-group-title {
    display: flex;
    align-items: center;
    gap: .6rem; /* Space between icon and title */
    flex: 1; /* Take remaining width */
}

.sidebar-chevron {
    margin-left: .75rem;
    transition: transform .25s ease;
    font-size: .9rem;
}

.sidebar-group-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .30s ease, opacity .25s ease;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-group-body.expanded {
    max-height: 900px;
    opacity: 1;
}

.sidebar-group-body.collapsed {
    max-height: 0;
}

.sidebar {
    width: 300px;
    height: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
}

./*sidebar {
    position: fixed;
    top: 72px;
    left: 0;
    width: 300px;
    height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    background: #fff;
}*/
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 30px;
}
.sidebar-menu::-webkit-scrollbar {
    width: 8px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 20px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #999;
}
.sidebar.collapsed {
    width: 100%;
}

.sidebar-header {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #edf2f7;
}

.sidebar-logo {
    width: 58px;
}

.sidebar-title {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.15;
}

.sidebar-city {
    color: #6c757d;
}

.sidebar-version {
    font-size: .82rem;
    color: #9aa5b1;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: calc(100% - 16px);
    margin: 4px 8px;
    padding: .75rem 1rem;
    border-radius: 12px;
    box-sizing: border-box;
}

.sidebar-item:hover {
    background: #eef4ff;
    color: #0d6efd;
}

.sidebar-item.active {
    background: #e8f2ff;
    color: #0d6efd;
    font-weight: 600;
}

.sidebar-item i {
    width: 22px;
    text-align: center;
    font-size: 1rem;
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .sidebar-city,
.sidebar.collapsed .sidebar-version {
    display: none;
}
.sidebar.collapsed .sidebar-header {
    justify-content: center;
}
.sidebar.collapsed .sidebar-item {
    justify-content: center;
    padding: 14px;
}
.sidebar.collapsed .sidebar-item span {
    display: none;
}
.sidebar.collapsed .sidebar-item i {
    font-size: 1.25rem;
    margin: 0;
}
.sidebar.collapsed .sidebar-group-header {
    display: none;
}
.sidebar-item span {
    opacity: 1;
    transition: opacity .2s ease;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-item span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.main-content {
    transition: .25s;
}
.topbar {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    position: sticky;
    top: 0;
    z-index: 100;
}
.sidebar-toggle {
    border: none;
    background: none;
    font-size: 1.5rem;
    margin-right: 20px;
}
.page-title {
    font-size: 1.25rem;
    font-weight: 600;
}
.topbar-spacer {
    flex: 1;
}

.notification-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    transition: .2s;
}

.notification-btn:hover {
    background: #f3f4f6;
}

.offcanvas {
    width: 280px;
}

.offcanvas-body {
    padding: 0;
}

/* =======================================
   Tablet
======================================= */

@media (max-width:1199px) {

    .sidebar {
        width: 78px;
        min-width: 78px;
        max-width: 78px;
    }
}
/* =======================================
   Mobile
======================================= */

@media (max-width:767px) {

    .sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}