
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    ---laranja: #FF6A00;
    ---cinza: #ecf0f1;
    ---azul: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

.table-primary th{
    background-color: var(---cinza)!important;
    border: none;
}

.btn-outline-primary{
    border: solid 1px var(---laranja)!important;
    color: var(---laranja)!important;
    background-color: transparent!important;
}

.btn-primary{
    border: solid 1px var(---laranja)!important;
    color: var(---laranja)!important;
    background-color: transparent!important;
}

.btn-primary:hover{
    border: solid 1px var(---laranja)!important;
    background-color: var(---laranja)!important;
    color: black!important;
    
}

.btn-outline-primary:hover{
    border: solid 1px var(---laranja)!important;
    background-color: var(---laranja)!important;
    color: black!important;
}

.hidden{
    display: none;
}

.dropdown-item{
    margin-left: 50px;
    margin-top: 8px;
}

.dropdown-item:hover{
    color: darkorange;
}

.dropdown-item.active {
font-weight: bold;
color: darkorange !important;
position: relative;
}

.dropdown-item.active::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color:#FF6A00;
    border-radius: 50%;
}

main {
    padding: 20px;
    z-index: 1;
    padding-left: calc(70px + 20px);
}

#div-logo{
    position: fixed;
    height: 10vh;
    width: 100vw;
    top: 0;
    left: 0;
    right: 0;
    background-color:#ecf0f1 ;
}

#sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    height: 90vh;
    border-radius: 0px 0px 0px 0px;
    position: fixed;
    min-width: 82px;
    z-index: 2;
    top: 10vh;
    left: 0;
    bottom: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: #2c3e50;
}

.btn-setor{
    width: 30vh;
    height: 2.8vw;
    font-size: 20px;
    margin-left: 10vw;

}

.sub-items{
    display: flex;
    flex-direction: column;
    display: none;
    margin-top: 0; 
    padding-top: 0; 
}

.sub-items:not(.hidden) {
    display: flex;
    flex-direction: column;
    margin-left: 0px; /* Alinhamento com o texto principal */
    margin-top:0px; /* Espaçamento mínimo */
}


.side-item a{
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center; /* Mantenha sempre o mesmo alinhamento */
    color: #0a0a0a;
    min-height: 20px; /* Altura mínima consistente */
}


.nav-icons-and-palavras{
    color: #ffffff;
}

#sidebar_content {
    padding: 12px;
    scroll-behavior: smooth;
}

#user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

#user_avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 20px;
}

#user_infos {
    display: flex;
    flex-direction: column; 
}

#user_infos span:last-child {
    color: #6b6b6b;
    font-size: 12px;
}

#side_items {
    display: flex;
    flex-direction: column;
    padding: 0px;
    margin: 0px;
    gap: 8px;
    list-style: none;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 62vh;
    contain: content; /* Melhora performance */
    will-change: transform;
    
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    margin-left: 5px;

}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color:#ecf0f1 ;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color:#ecf0f1 ;
    
}

::-webkit-scrollbar-corner {
background: transparent;
}

.side-item {
    transition: all 0.2s ease;
    margin: 3px 0;
    
}

.btn-outline-primary{
    margin-left: 15px;
}

.side-item.active {
    margin-right: 7px;

    background-color:#FF6A00 ;
}

.side-item.open > a {
    background-color: #1e3a8a;
    color: white;
    
}

.side-item:hover:not(.active),
#logout_btn:hover {
    background-color: #000000;
    margin-right: 7px;
    border-radius: 20px;
}

.side-item a {
    justify-content: flex-start; /* Sempre alinhado à esquerda */
    gap: 14px; /* Espaço consistente entre ícone e texto */
    padding: 8px 12px; /* Espaçamento interno consistente */
}

.side-item.active a {
    color: #e3e9f7;
    
}

.side-item a i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

#logout {
    padding: 12px;
}

#logout_btn {
    border: none;
    padding: 12px;
    font-size: 14px;
    display: flex;
    gap: 20px;
    align-items: center;
    border-radius: 8px;
    text-align: start;
    cursor: pointer;
    background-color: transparent;
}

#open_btn {
    position: absolute;
    top: 30px;
    right: -10px;
    background-color: #4f46e5;
    color: #e3e9f7;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    border: none;
    cursor: pointer;
}

#open_btn_icon {
    transition: transform .3s ease;
}

.btn-outline-primary{
    background-color: #ffffff !important;
}

.open-sidebar #open_btn_icon {
    transform: rotate(180deg);
}

.item-description {
    width: 0px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    transition: width 0.3s ease; 
    height: auto; 
    opacity: 0; 
    transition: width 0.3s ease, opacity 0.2s ease;
}

#sidebar.open-sidebar {
    min-width: 15%;
}

#sidebar.open-sidebar .item-description {
    width: 150px;
    opacity: 1;
}

#sidebar.open-sidebar .side-item a {
    justify-content: flex-start;
    gap: 14px;
}

.actions-cell {
    width: 40px;
    padding: 0;
    position: relative;
}

.custom-dropdown {
    display: inline-block;
    position: relative;
}

.dropdown-trigger {
    color: #666;
    padding: 5px 10px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.dropdown-trigger:hover {
    color: #333;
}

.dropdown-options {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    min-width: 140px;
    z-index: 100;
    display: none;
    flex-direction: column;
    padding: 5px 0;
}

.dropdown-options.show {
    display: flex;
}

.dropdown-options a {
    padding: 6px 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-options a:hover {
    background: #f5f5f5;
}

.dropdown-options i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}