/* ============================= */
/* AJUSTE DO BOTÃO TOGGLE        */
/* ============================= */
.newcustom-menu {
    position: absolute;
    top: 10px; /* Ajuste conforme necessário */
    left: calc(100% + 10px); /* Posiciona o botão à direita do menu */
    z-index: 1050;
}

.newcustom-menu .btn {
    width: 40px;
    height: 40px;
    border-radius: 8px; /* Para um botão mais quadrado */
    background: #20B486;
    color: #FFFFFF;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    border: none;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.newcustom-menu .btn:hover {
    background: #f2f2f2;
    color: #000;
    transform: scale(1.05);
}

/* ============================= */
/* AJUSTE DO LOGO                */
/* ============================= */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-bottom: 30px;
    margin-top: -30px;
}

.logo img {
    max-width: 230px; /* Ajuste conforme necessário */
    height: auto;
}
/* ============================= */
/* SIDEBAR                       */
/* ============================= */
#newsidebar {
    min-width: 300px;
    max-width: 300px;
    background: #FFFFFF;
    color: #000;
    min-height: calc(100vh + 260px);
    height: auto;
    transition: width 0.3s ease-in-out, transform 0.3s ease-in-out;
    position: relative;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    top: -260px;
    left: 0;
    margin-bottom: -260px;
}

/* 🔹 Quando a sidebar está recolhida */
body.sidebar-collapsed #newsidebar {
    width: 0px;
    transform: translateX(-100%);
    overflow-x: hidden !important;
}

/* 🔹 Ajusta o conteúdo para acompanhar a sidebar */
#content {
    transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
    margin-left: 0px; /* Inicia com espaço para a sidebar */
    width: 100%;
}

/* 🔹 Quando a sidebar está recolhida, o conteúdo ocupa toda a largura */
body.sidebar-collapsed #content {
    margin-left: -300px;
    min-width: 1900px;
    width: 100%;
}

/* ============================= */
/* AJUSTE DOS ITENS DO MENU       */
/* ============================= */
#newsidebar ul.components {
    padding: 0;
    list-style: none;
    flex-grow: 1;
}

#newsidebar ul li {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    width: 100%;
    color: #6F6F6F;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

#newsidebar ul li a {
    display: block;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    width: 100%;
    border-radius: 4px;
}

#newsidebar .dropdown-toggle a {
    margin-left: -50px !important;
}

#newsidebar ul li a.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    width: 100%;
    border-radius: 4px;
}

#newsidebar ul li a:hover {
    background: rgba(224, 224, 224, 0.8);
    color: #000;
}

.nav-item i {
    font-size: 20px !important;
    margin-right: 8px !important;
    color: #555 !important;
}

/* Estilo base para o link de navegação */
#newsidebar .nav-item.new-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espaça o texto para esquerda e seta para direita */
    width: 100%;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Texto do menu */
#newsidebar .nav-item.new-dropdown-toggle .nav-text {
    flex-grow: 1; /* Faz o texto ocupar espaço central */
    margin-left: 8px;
    font-weight: 500;
}

/* Ícone da seta */
#newsidebar .nav-item.new-dropdown-toggle .icon-span {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 24px;
}

/* Ícone de seta */
#newsidebar .nav-item.new-dropdown-toggle .icon-span i {
    font-size: 14px;
    color: #6F6F6F;
    transition: transform 0.3s ease-in-out;
}

#newsidebar ul li ul .nav-item i {
    font-size: 14px;
    color: #6F6F6F !important;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}


/* ============================= */
/* DROPDOWN SETA PERSONALIZADA   */
/* ============================= */
#newsidebar ul li a .dropdown-icon {
    transition: transform 0.3s ease-in-out;
    color: #20B486;
}

#newsidebar ul li.active > a .dropdown-icon {
    transform: rotate(180deg);
}

/* ============================= */
/* ITEM ATIVO PRINCIPAL          */
/* ============================= */
#newsidebar ul > li.active > a.new-dropdown-toggle {
    position: relative;
    background: #fff;
    color: #3D5EE1;
    padding-left: 25px;
    font-weight: bold;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

#newsidebar ul > li.active > a {
    position: relative;
    background: #fff;
    color: #3D5EE1;
    padding-left: 25px;
    font-weight: bold;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

#newsidebar ul > li.active i {
    color: #3D5EE1 !important;
    margin-right: 8px !important;
    font-weight: bold !important;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

#newsidebar ul > li.active > a.new-dropdown-toggle::before {
    content: "";
    position: absolute;
    left: -23px;
    top: 50%;
    width: 6px;
    height: 110%;
    background: #20B486;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    transform: translateY(-50%);
    transition: height 0.3s ease-in-out;
}

#newsidebar ul > li.active > a::before {
    content: "";
    position: absolute;
    left: -23px;
    top: 50%;
    width: 6px;
    height: 110%;
    background: #20B486;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    transform: translateY(-50%);
    transition: height 0.3s ease-in-out;
}

#newsidebar ul > li.active > a::before {
    color: #000 !important;
}

/* ============================= */
/* ITEM ATIVO NO SUBMENU         */
/* ============================= */
#newsidebar ul li ul li.active > a {
    background: #20B486;
    color: #ffffff !important;
    font-weight: 400 !important;
    padding: 7px;
    padding-left: 35px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    border-radius: 6px;
}

#newsidebar ul li ul li.active > a:hover {
    background: #ffffff;
    border: 1px solid #20B486;
    font-weight: 400 !important;
    padding: 7px;
    padding-left: 35px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    border-radius: 6px;
}

#newsidebar ul li ul li.active i {
    color: #ffffff !important;
}

#newsidebar ul li ul li.active > a::before {
    display: none;
}

/* ============================= */
/* SUBMENUS                      */
/* ============================= */
#newsidebar ul li ul {
    display: none;
    padding-left: 10px;
    padding: 5px 15px;
}

#newsidebar ul li.active ul {
    display: block;
}

#newsidebar ul li ul li a{
    font-size: 14px;
    color: #6F6F6F !important;
    padding-left: 30px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

#newsidebar ul li ul li a:hover {
    color: #20B486 !important;
    background: rgba(240, 240, 240, 0.8);
}

#newsidebar ul li ul li a:hover i {
    color: #20B486 !important;
}

/* ============================= */
/* BOTÃO HAMBURGUER (MENU MOBILE) */
/* ============================= */
#newsidebar .custom-menu {
    display: inline-block;
    position: absolute;
    top: 20px;
    right: 0;
    transition: 0.3s;
}

#newsidebar .custom-menu .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    border: none;
    transition: background 0.3s ease-in-out;
}

#newsidebar .custom-menu .btn:hover {
    background: #f2f2f2;
    color: #000;
}

/* ============================= */
/* REMOVER SETA PADRÃO DO DROPDOWN */
/* ============================= */
.dropdown-toggle::after {
    display: none !important;
}