*{
    font-family: "Roboto", sans-serif;
}

#wrapper {
    padding-left: 0;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

#wrapper.toggled {
    /*    padding-left: 220px;*/
    padding-left: 220px;
}

/* Add collapsed state for sidebar */
#wrapper.sidebar-collapsed {
    padding-left: 70px;
}

#sidebar-wrapper {
    z-index: 1000;
    /*    left: 220px;*/
    left: 220px;
    width: 0;
    height: 100%;
    /*    margin-left: -220px;*/
    margin-left: -220px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Modern dark gradient background */
    /*    background: #1a1d30;*/
    background: #1e293b;
    /*background-image: linear-gradient(169deg, #1a1d30 34%, rgba(86, 97, 131, 0.9) 100%);*/
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Subtle scrollbar instead of hiding it completely */
#sidebar-wrapper::-webkit-scrollbar {
    width: 4px;
}

#sidebar-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

#sidebar-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#wrapper.toggled #sidebar-wrapper {
    /*    width: 220px;*/
    width: 220px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

#wrapper.sidebar-collapsed #sidebar-wrapper {
    width: 70px;
    margin-left: -70px;
    left: 70px;
}

#page-content-wrapper {
    width: 100%;
    padding-top: 0px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

#wrapper.toggled #page-content-wrapper {
    /*    margin-right: -220px;*/
    margin-right: -220px;
}

#wrapper.sidebar-collapsed #page-content-wrapper {
    margin-right: -70px;
}

/*-------------------------------*/
/*       Hamburger-Cross         */
/*-------------------------------*/

.hamburger {
    top: 2px;  
    z-index: 999;
    display: block;
    width: 18px;
    /*height: 32px;*/
    /*margin-left: 15px;*/
    background: transparent;
    border: none;
    position: relative;
}
.hamburger:hover,
.hamburger:focus,
.hamburger:active {
    outline: none;
}
.hamburger.is-closed:before {
    content: '';
    display: block;
    width: 100px;
    font-size: 14px;
    color: #fff;
    line-height: 32px;
    text-align: center;
    opacity: 0;
    -webkit-transform: translate3d(0,0,0);
    -webkit-transition: all .35s ease-in-out;
}
.hamburger.is-closed:hover:before {
    opacity: 1;
    display: block;
    -webkit-transform: translate3d(-100px,0,0);
    -webkit-transition: all .35s ease-in-out;
}

.hamburger.is-closed .hamb-top,
.hamburger.is-closed .hamb-middle,
.hamburger.is-closed .hamb-bottom,
.hamburger.is-open .hamb-top,
.hamburger.is-open .hamb-middle,
.hamburger.is-open .hamb-bottom {
    position: absolute;
    left: 0;
    height: 2px;
    width: 100%;
}
.hamburger.is-closed .hamb-top,
.hamburger.is-closed .hamb-middle,
.hamburger.is-closed .hamb-bottom {
    background-color: #282f44;
}
.hamburger.is-closed .hamb-top { 
    top: 5px; 
    -webkit-transition: all .35s ease-in-out;
}
.hamburger.is-closed .hamb-middle {
    top: 50%;
    margin-top: -2px;
}
.hamburger.is-closed .hamb-bottom {
    bottom: 7px;  
    -webkit-transition: all .35s ease-in-out;
}

.hamburger.is-closed:hover .hamb-top {
    top: 0;
    -webkit-transition: all .35s ease-in-out;
}
.hamburger.is-closed:hover .hamb-bottom {
    bottom: 0;
    -webkit-transition: all .35s ease-in-out;
}
.hamburger.is-open .hamb-top,
.hamburger.is-open .hamb-middle,
.hamburger.is-open .hamb-bottom {
    background-color: #282f44;
}
.hamburger.is-open .hamb-top,
.hamburger.is-open .hamb-bottom {
    top: 50%;
    margin-top: -2px;  
}
.hamburger.is-open .hamb-top { 
    -webkit-transform: rotate(45deg);
    -webkit-transition: -webkit-transform .2s cubic-bezier(.73,1,.28,.08);
}
.hamburger.is-open .hamb-middle { display: none; }
.hamburger.is-open .hamb-bottom {
    -webkit-transform: rotate(-45deg);
    -webkit-transition: -webkit-transform .2s cubic-bezier(.73,1,.28,.08);
}
.hamburger.is-open:before {
    content: '';
    display: block;
    width: 100px;
    font-size: 14px;
    color: #282828;
    line-height: 32px;
    text-align: center;
    opacity: 0;
    -webkit-transform: translate3d(0,0,0);
    -webkit-transition: all .35s ease-in-out;
}
.hamburger.is-open:hover:before {
    opacity: 1;
    display: block;
    -webkit-transform: translate3d(-100px,0,0);
    -webkit-transition: all .35s ease-in-out;
}

/*-------------------------------*/
/*     Sidebar nav styles        */
/*-------------------------------*/

.sidebar-nav {
    position: absolute;
    top: 0;
    /*    width: 220px;*/
    width: 220px;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: width 0.3s ease;
}

#wrapper.sidebar-collapsed .sidebar-nav {
    width: 70px;
}

.sidebar-nav li {
    position: relative; 
    line-height: 20px;
    display: inline-block;
    width: 100%;
}

/* Update the left border indicator for active menu items */
.sidebar-nav li:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    z-index: -1;
    height: 60%;
    width: 4px;
    transform: translateY(-50%);
    background-color: #4361ee;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.sidebar-logo {
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#wrapper.sidebar-collapsed .sidebar-logo img {
    max-width: 40px !important;
}

.sidebar-nav li:first-child a {
    color: #fff;
    /*background: #1a1d30;*/
    height: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar-nav li:not(:first-child):before {
    background-color: #4361ee;   
    opacity: 0;
}

/* Modern hover effect */
.sidebar-nav li:hover:before,
.sidebar-nav li.open:hover:before,
.sidebar-nav li.active:before {
    opacity: 1;
    width: 4px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 12px 16px;
    transition: all 0.2s ease;
    border-radius: 12px;
    margin: 4px 8px;
}

#wrapper.sidebar-collapsed .sidebar-nav li a {
    padding: 12px 0;
    justify-content: center;
    margin: 4px 4px;
}

.sidebar-nav li a:hover,
.sidebar-nav li a:active,
.sidebar-nav li a:focus,
.sidebar-nav li.open a:hover,
.sidebar-nav li.open a:active,
.sidebar-nav li.open a:focus {
    color: white;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-nav li.active a {
    background: linear-gradient(90deg, rgba(67, 97, 238, 0.2) 0%, rgba(67, 97, 238, 0.05) 100%);
    color: white;
}

.sidebar-nav > .sidebar-brand {
    height: 95px;
    font-size: 20px;
    line-height: 44px;
}

.sidebar-nav .dropdown-menu {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    border-radius: 0;
    border: none;
    background-color: rgba(26, 29, 48, 0.7);
    box-shadow: none;
}

 Toggle button for sidebar 
.hamburger {
    position: fixed;
    right: -12px;
    top: 32px;
    z-index: 999;
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    background: #4361ee;
    border: none;
    border-radius: 50%;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

#wrapper.sidebar-collapsed .hamburger {
    transform: rotate(180deg);
}

.hamburger:hover,
.hamburger:focus,
.hamburger:active {
    outline: none;
}

/* Styling for PrimeFaces Menu */
.ui-menu.side {
    width: 100%;
    border: none;
    background: transparent;
    /*padding: 16px 0;*/
    box-shadow: none;
}

.ui-menu.side .ui-submenu-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    margin: 8px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ui-menu.side .ui-submenu-header:hover {
    color: rgba(255, 255, 255, 0.6);
}

#wrapper.sidebar-collapsed .ui-menu.side .ui-submenu-header {
    padding: 12px 0;
    text-align: center;
    font-size: 0;
}

.ui-menu.side .ui-menuitem {
    margin: 4px 8px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.ui-menu.side .ui-menuitem:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.ui-menu.side .ui-menuitem.ui-state-active {
    background: linear-gradient(90deg, rgba(67, 97, 238, 0.2) 0%, rgba(67, 97, 238, 0.05) 100%);
}

.ui-menu.side .ui-menuitem.ui-state-active:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 4px;
    background: #4361ee;
    border-radius: 0 4px 4px 0;
}

.ui-menu.side .ui-menuitem-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color 0.2s ease;
    border: none;
    position: relative;
}

.ui-menu.side .ui-menuitem-link:hover {
    color: white !important;
}

.ui-menu.side .ui-menuitem-icon {
    margin-right: 12px;
    display: inline-flex;
    /*width: 24px;*/
    /*height: 24px;*/
    justify-content: center;
    align-items: center;
}

#wrapper.sidebar-collapsed .ui-menu.side .ui-menuitem-text {
    display: none;
}

#wrapper.sidebar-collapsed .ui-menu.side .ui-menuitem-link {
    padding: 12px 0;
    justify-content: center;
}

#wrapper.sidebar-collapsed .ui-menu.side .ui-menuitem-icon {
    margin-right: 0;
}

/* Tooltip for collapsed sidebar */
.tooltip-menu {
    position: absolute;
    left: 70px;
    background-color: #1a1d30;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1100;
}

#wrapper.sidebar-collapsed .ui-menuitem:hover .tooltip-menu {
    opacity: 1;
}

/* Keep remaining styles */
.overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(250,250,250,.8);
    z-index: 1;
}

/* Horizontal top nav */
.top-nav-container {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    border-bottom: 0.2px solid transparent;
}

.top-nav-controls {
    float: right;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.top-nav-controls:hover {
    background-color: #F8D12E;
}

.top-nav-container > li {
    float: right;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.top-nav-container > li:hover {
    background-color: #F8D12E;
}

.top-nav-app-sales {
    float: left !important;
    width: 12em;
    background: #3cb878 !important;
    font-weight: bold !important;
    font-size: 15px;
}

.top-nav-app-admin {
    float: left !important;
    width: 12em;
    background: #f43851 !important;
    font-weight: bold !important;
    font-size: 15px;
}

.nav>li>a:hover, .nav>li>a:focus {
    background-color: transparent !important;
}

.container {
    height: 100%;
}

.sidebar-nav .ui-menu{
    background:transparent;
}

.sidebar-nav .ui-menuitem-text{
    color: #fff !important;
    /*font-family: Roboto;*/
}

.side .ui-menu-list .ui-widget-header{
    background: transparent !important;
    color: #fff !important;
    font-family: Roboto;
}

.ui-menu-list .ui-widget-header h3{
    font-size: 12px !important;
    /*color: #bbb5ea  !important;*/
    text-shadow: none !important;
    /*letter-spacing: 1px;*/
    /*border-top: 1px solid #bbb5ea;*/
    /*padding-top: 9px !important;*/
    text-transform: uppercase;
    color: #a1adbf !important;;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.side .ui-menuitem-link.ui-state-hover{
    background: transparent !important;
}

.sidebar-nav .ui-menu .ui-menu-list .ui-menuitem .ui-menuitem-link{
    display: block;
    color: #ddd;
    text-decoration: none;
    /*padding: 10px 15px 10px 30px;*/   
    padding: 10px 0px 10px 10px;
}

.side label{
    margin-bottom: 0;
}