@font-face {
    font-family: 'Ainslie Sans';
    src: url('../fonts/ainslie-sans-normal-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

*{
    margin: 0;
    padding: 0;
    font-family: 'Ainslie Sans';
    box-sizing: border-box;
}

body{
    background-color:#C1CFDD;
}

main{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.containerPrincipal{
    width: 90%;
    height: 90%;
    background: linear-gradient(180deg, #96A9D2 0%, #7F89AD 15%, #5A647C 35%, #4D576C 100%);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    border-radius: 20px;
}

.header{
    width: 100%;
    height: 10%;
    display: flex;
    align-items: center;
}
.date-time{
    margin-left: auto;
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 5px;
    color: white;
    font-size: 1rem;
    font-family: 'Ainslie Sans';
    font-weight: 500;
    margin-right: 3%;
}

#botao-opcoes{
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin-left: 2%;
}
#botao-opcoes img{
    width: 190%;
    height: auto;
}

.sidebar{
    height: 100%;
    width: 6%;
}

.sidebar ul{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 35px;
}
.activated{
    background-color: #C1CFDD;
    border-radius: 15px 0 0 15px;
}
.sidebar ul li:first-child {
    margin-top: 80%; /* Move apenas o primeiro item para baixo */
}
.sidebar ul li:last-child {
    margin-top: auto;
    margin-bottom: 20%;
}
.sidebar ul li{
    list-style: none;
    display: flex;
    width: 350px;
    align-items: center;
    color: white;
    margin-left: 15%;
    padding: 10px;
    padding-right: 300px;
}
.sidebar ul li span{
    margin-left: 50%;
    font-family: 'Ainslie Sans';
    font-weight: 400;
    font-size: 1.5rem;
    display: none;
}

@media (max-width: 1850px){
    .sidebar ul li span{
        font-size: 1rem;
    }
}


.sidebar li span.visivel {
   display: block;
}

#nome-ativado{
    color: #4D576C;
}
.sidebar ul li a{
    text-decoration: none;
    color: white;
}

.icones-menu{
   width: 50%;
   min-width: 25px;
   height: auto;
}

.container-bottom{
    width: 100%;
    display: flex;
    height: 90%;
}

.content-container{
    display: flex;
    justify-content: flex-start;
    background-color: #C1CFDD;
    width: 96%;
    height: 100%;
    border-radius: 20px 0 20px 0;
    flex-direction: column;
    transition: all 0.15s ease-in-out;
    box-shadow: 0px 30px 55px 8px #4D576C4D;
}
.content-container.expandido {
    width: 92%;
    margin-left: 8%;
}

.containerBotao{
    display: flex;
    justify-content: flex-end;
    padding: 2%;
}

#botaoAddPedido{
    border: none;
    cursor: pointer;
    font-family: 'Ainslie Sans';
    font-weight: 500;
    font-size: 2.2rem;
    color: #C1CFDD;
    background-color: #242535;
    padding: 1%;
    border-radius: 5px;
    width: 4%;
    aspect-ratio: 1 / 1;
    padding: 0;
    display: flex;
    justify-content: center; 
    align-items: center;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.256);
}

.gridBrancos{
    width: 92%;
    height: 75%;
    margin-left: 2%;

    display: grid;
    grid-template-columns: repeat(6, 22%); /* 5 colunas de tamanho igual */
    gap: 1rem; /* Espaço entre as caixas */
    padding: 1%;
    overflow-x: scroll; 
    overflow-y: scroll;
    background-color: #C1CFDD;

    
    &::-webkit-scrollbar {
        width: 10px;  
        height: 10px; 
    }

    /* Estiliza o fundo da trilha da barra de rolagem */
    &::-webkit-scrollbar-track {
        background: #C1CFDD; 
    }

    /* Estiliza o "polegar" (a parte que você arrasta) da barra de rolagem */
    &::-webkit-scrollbar-thumb {
        background: #8FA3BD; 
        border-radius: 10px; 
        
    }

    /* Estilo do polegar ao passar o mouse */
    &::-webkit-scrollbar-thumb:hover {
        background: #4D576C; 
    }

    &::-webkit-scrollbar-corner {
        background-color: #C1CFDD; 
        
    }
    
}



.caixaEstoque{
    background-color: #F6F4EA;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap:1.5rem;
    border-radius: 10px;
    padding-bottom: 15px;
}

.tituloCaixa{
    background-color: #8FA3BD;
    color: #F6F4EA;
    border-radius: 8px;
    width: 80%;
    height: fit-content;
    font-size: 1.5rem;
    justify-content: space-between;
    display: flex;
    margin-top: 5%;
    padding: 8px 8px; 
    margin-bottom: -2.5%;
}

.TipoPeca{
    background-color: #B5C1CE99;
    border-radius: 8px;
    width: 80%;
    display: flex;
    padding: 10px 8px;
    font-size: 1.1rem;
    justify-content: space-between;
    align-items: center;
}

.EditIcon{
    padding-top: 1%;
    cursor: pointer;
    height: 26px;
}

.TrashIcon{
    cursor: pointer;
    height: 1.5rem;
    justify-self: center;
    margin-right: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.TrashIcon.visivel{
    opacity: 1;
    pointer-events: auto;
}

.SmallTrashIcon{
    align-self: flex-start;
    color:#B0BDCA;
    height: 1.2rem;
    align-self: center;
    margin-top: 10%;
}

.FundoLixo{
    width: 20%;
    height: 1000%;
    background-color: #CB1616;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.PopupDeletar{
    background-color: #242535;
    border-radius: 6px;
    z-index: 1000;
    display: none;
    position: absolute;
    justify-content: center;
    padding:1rem;
    color: #F6F4EA;
    align-items: center;
    gap:1rem;
    font-weight: lighter;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.headerPopup{
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 9.5%;
    gap:0;
    width: 100%;
    font-weight: lighter;
}

.BodyPopup{
    display: flex;
    flex-direction: column;
    gap:0.6rem;
    width: 100%;
    align-items: center;
    color:#242535;

}

.RemoverPeca, .Voltar{
    width: 90%;
    border:none;
    background-color: #C0CEDB;
    border-radius: 4px;
    gap:0.8rem;
    align-items: center;
    justify-content: flex-start;
    font-size: 1rem;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: row;
}

.Voltar{
    justify-content: center;
    padding: 0.25rem;
}

.RemoverPeca:hover,.Voltar:hover{
    background-color: #D9D9D9;
}


.descTecido{
    display: flex;
    flex-direction: column;
    width: 90%;
    height: 10%;
}

.descCor{
    display: flex;
    justify-content: space-between;
    width: 90%;
    padding-left: 5%;
}

.descCor p{ 
    font-size: 1.1rem;
    color: #242535;
}

.WrapTecido{
    display: flex;
    flex-direction: row;
    width: 100%;
}

.barraCor{
    width: 90%;
    height: 30%;
    margin-top: 6%;
    margin-left: 5%;
    border-radius: 6px;
    background-color: #8FA3BD;
    overflow: hidden;
}

.barraCor-progresso{
    width: 0%;
    height: 100%;
}


#BotaoAddPeca,.BotaoAddCor{
    display: flex;
    align-self: start;
    justify-content: center;
    background-color: #242535;
    font-size: 1.8rem;
    color:#C1CFDD;
    border-radius: 8px;
    margin-left: 9.5%;
    aspect-ratio: 1/1;
    margin-bottom: 5%;
    height:1.8rem;
    line-height: 1;
    border: none;
    cursor:pointer;
}

.BotaoAddCor{
    margin-left: 9%;
}

#PopupAddPeca,.PopupAddCor,#PopupAddTecido{
    opacity: 0;
    transform: translateY(-10px);
    display: none;
    position: absolute;
    background-color: #242535;
    z-index: 100;
    padding: 1rem 0.5rem;
    border-radius: 8px;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#PopupAddPeca.ativo,.PopupAddCor.ativo,#PopupAddTecido.ativo{
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.popupPeca,.popupCor{
    background-color: #242535;
    padding: 1rem;
    border-radius: 4px;
    color:#F6F4EA;
    min-width: 250px;
    max-width: 90vw;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.PopupHeader{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: lighter;
}

.PopupBody{
    display:flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.popupPeca input[type="text"],.popupCor input[type="text"]{
    background-color: #242535;
    border: 1px solid #DEE1DE;
    color:#F6F4EA;
    padding: 0.5rem;
    border-radius: 4px;
    width: 100%;
    font-size: 1rem;
}



.popupPeca input[type="text"]::placeholder,.popupCor input[type="text"]::placeholder{
    color:#F6F4EA;
    opacity: 0.5;
}

#FechaPopupPeca,.FechaPopupCor,#FechaPopupTecido{
    background-color: #D9D9D9;
    border: none;
    color:#242535;
    cursor:pointer;
    border-radius: 4px;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

#ConfirmaPopupPeca,.ConfirmaPopupCor,#ConfirmaPopupTecido{
    background-color: #80D08F;
    color:#242535;
    border:none;
    padding: 0.5rem;
    margin-top: 0.5rem;
    width: fit-content;
    border-radius: 4px;
    cursor: pointer;
}