:root {
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --header-height: 64px;
    --primary-color: #3b8cf0;
    --hover-color: #4B7DCF;
    --active-color: #4B7DCF;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --border-color: rgba(255, 255, 255, 0.1);
}

#common-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    margin: 0 !important;
}

body.g-sidenav-show {
    padding-top: var(--header-height);
    transition: margin-left 0.3s ease;
}

body.g-sidenav-show .main-content {
    margin-left: var(--sidebar-width) !important;
    transition: margin-left 0.3s ease;
}

body.g-sidenav-show.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width) !important;
}

.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    height: calc(100vh - var(--header-height));
    width: var(--sidebar-width);
    transition: all 0.3s ease;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    z-index: 1200;
    color: rgb(255, 255, 255);
    outline: 0px;
    background: rgb(60, 129, 224);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.sidebar-header {
    padding-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
}

.sidebar-brand {
    padding-left: 15px;
}

.brand-logo {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.flag-logo {
    width: 22px;
    height: 18px;
    object-fit: cover;
}

.brand-text {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    padding-left: 3px;
}

.sidebar.collapsed .brand-text {
    opacity: 0;
    width: 0;
}

.sidebar-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3b8cf0;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: absolute;
    right: -14px;
    top: 18px;
    z-index: 9999;
}

.sidebar-toggle:hover {
    background: #357ABD;
    transform: scale(1.1);
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar-nav {
    padding: 10px 0;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
}


.nav-section {
    margin-bottom: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--hover-color);
    color: var(--text-primary) !important;
}

.nav-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    font-size: 18px;
}

.nav-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25rem;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    background-color: rgb(74, 143, 231);
    font-family: 'Montserrat', sans-serif;
}

.nav-dropdown.collapsed+.nav-submenu {
    display: none;
}

.nav-dropdown:not(.collapsed) {
    background: var(--active-color);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.nav-dropdown.collapsed .dropdown-arrow {
    transform: rotate(-90deg);
}

.nav-dropdown {
    background-color: rgb(74, 143, 231) !important;
}

.nav-submenu {
    padding-bottom: 8px;
}

.nav-subitem {
    display: flex;
    align-items: center;
    padding: 8px 16px 8px 50px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none !important;
    font-size: 14.5px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 0.75rem;
    height: 40px;
    font-family: 'Montserrat', sans-serif;
}

.nav-subitem:hover {
    background: var(--hover-color);
    color: rgba(255, 255, 255, 0.95) !important;
}

.nav-subitem.active {
    background: var(--active-color);
    color: white !important;
}

.badge-new,
.badge-beta {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    margin-left: 8px;
    background: #FF5722 !important;
    color: white !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed .badge-new,
.sidebar.collapsed .badge-beta {
    display: none;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .dropdown-arrow,
.sidebar.collapsed .badge-new,
.sidebar.collapsed .badge-beta,
.sidebar.collapsed .brand-logo,
.sidebar.collapsed .flag-logo {
    display: none !important;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 10px 0;
}

.sidebar.collapsed .nav-icon {
    margin: 0;
    justify-content: center;
}

.sidebar.collapsed .nav-subitem {
    padding-left: 0;
    justify-content: center;
}

/* subheder icon  */
.fas.fa-chevron-left::before {
    display: inline-block;
}