#bloco-de-notas {
    position: relative;
    margin-right: -450px;
    display: flex;
    max-width: 450px;
    width: 100%;
    margin-top: 0;
    transition: right 0.3s;
    overflow-y: auto;
    z-index: 1000;
    flex-wrap: wrap;
    flex-direction: column;
    /* background: antiquewhite;*/
    transition: all 0.2s;
    margin-left: 20px;
    
}




@media screen and (max-width: 760px) {
    #bloco-de-notas {
        position: fixed;
        bottom: -100%; /* Inicialmente escondido */
        right: 0;
        left: 0;
        margin-right: 0;
        transition: bottom 0.3s, top 0.3s, height 0.3s; /* Animações suaves */
    }
    
    

    #bloco-de-notas .container-bloco-de-notas {
        max-width: 100%!important;
        width: 100%;
        padding: 18px;
        right: 0;
        height: calc(100vh - 310px);
        border-radius: 0!important;
    }


    #bloco-de-notas #texto-bloco-de-notas {
        height: calc(100vh - 449px);
    }


    #salvar-bloco-de-notas {
        width: 100%;
        right: 0;
        border-radius: 0;
        margin: 0;
    }
    


}


#bloco-de-notas .container-bloco-de-notas {
    position: fixed;
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
    padding: 18px;
    background: #fff3ec;
    border-radius: 20px;
    padding-bottom: 0;
}


#bloco-de-notas .botoes-bloco-de-notas {
    display: flex;
    align-items: center;
    justify-content: space-between;
}




#salvar-bloco-de-notas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 36px); /* Subtraindo o padding */
    padding: 16px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 18px;
}

#salvar-bloco-de-notas:hover {
    background-color: #45a049;
}



@media screen and (max-width: 760px) {
#mobile-popup #bloco-de-notas .container-bloco-de-notas {
    border-radius: 0;
    margin-left: -12px;
}
}


#texto-bloco-de-notas:focus {
    outline: none; /* Remove o contorno ao focar */
    box-shadow: none; /* Remove qualquer sombra que possa aparecer */
}

#texto-bloco-de-notas {
    margin-top: 8px;
    width: 100%; /* Ocupa toda a largura do container */
    height: calc(100vh - 332px); /* Subtraia a altura do seu botão se necessário */
    padding: 8px; /* Espaçamento interno para o texto */
    margin-bottom: 3rem;
    border: none; /* Sem borda */
    outline: none; /* Sem contorno ao focar */
    resize: none; /* Não permitir redimensionamento */
   /* background-image: linear-gradient(transparent 29px, #68a9f0 29px, #bbdbef 30px);*/
    color: #063881;
    line-height: 30px; /* Altura da linha ajustada para coincidir com as linhas do fundo */
    background-size: 100% 30.2px;
    background-attachment: local; /* Fundo rola com o texto */
    font-family: monospace; /* Fonte monoespaçada para melhor alinhamento */
    font-size: 14px; /* Ajuste conforme necessário */
    transition: all 0.2s;
}



#texto-bloco-de-notas.com-linhas {
    background-image: linear-gradient(transparent 29px, #68a9f0 29px, #bbdbef 30px); /* Linhas horizontais */
}


#fechar-bloco-de-notas {
    padding: 0;
    line-height: 0;
    background: none;
    border: none;
    color: #264a9d;
}



#titulo-bloco-de-notas {
    width: 100%;
    border: none;
    margin-top: 12px;
}

.container-bloco-de-notas #nova-anotacao {
    padding: 0;
    color: #0b71ff;
    background: transparent;
    border: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 2px 4px;
}


.container-bloco-de-notas #nova-anotacao svg {
    margin-right: 4px;
}



.container-bloco-de-notas #nova-anotacao:focus ,.container-bloco-de-notas #fechar-bloco-de-notas {
    box-shadow: none;
}


.container-bloco-de-notas #nova-anotacao:hover::after {
    content: '';
    position: absolute;
    left: 1px;
    right: 0;
    bottom: 0;
    border-bottom: 1.2px solid var(--bb-primary-color);
    width: 100%;
}




.botao-deslizar-notas {
    cursor: pointer; /* Estilo do cursor para o botão de deslizar */
}


#bloco-de-notas textarea {
    background-color: transparent;
            border: 0; /* Remove a borda caso exista */
}



/* Estilo para todos os navegadores */
#texto-bloco-de-notas::-webkit-scrollbar {
    width: 5px; /* Largura da barra de rolagem */
    border-radius: 10px;
}

#texto-bloco-de-notas::-webkit-scrollbar-track {
    background: transparent; /* Fundo da trilha da barra de rolagem */
}

#texto-bloco-de-notas::-webkit-scrollbar-thumb {
    background: #888; /* Cor da barra de rolagem */
    border-radius: 10px;
    cursor: pointer; /* Adiciona o cursor pointer */
}

#texto-bloco-de-notas::-webkit-scrollbar-thumb:hover {
    background: #555; /* Cor da barra de rolagem ao passar o mouse */
    border-radius: 10px;
}

/* Estilo para o Microsoft Edge */
#texto-bloco-de-notas {
    scrollbar-width: thin; /* Ajuste para a largura da barra de rolagem no Edge */
    scrollbar-color: #888 transparent; /* Cor da barra e cor da trilha */
}








/********************************************************/
/* Temas*/


.popup-opcoes {
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #e7e7e7;
    z-index: 1000;
    width: 100%;
    right: 0;
    bottom: 0;
    border-radius: 30px 30px 20px 20px;
}



.popup-opcoes .tema {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 78px;
    border-radius: 16px;
    margin-right: 8px;
}



.btn-temas-container {
    display: flex;
    justify-content: space-between;
    padding: 16px 8px 16px 16px;
    overflow-x: auto;
}

.btn-temas-container li {
    margin-bottom: 0!important;
}



#botao-opcoes {
    cursor: pointer;
}



.temas-bloco-title {
    display: flex;
}


.temas-bloco-title svg {
    margin-right: 4px;
    color: #bac4d7;
}



/* Estilos para a lista dentro do popup */
.popup-opcoes ul {
    list-style-type: none;
    margin: 0;
    
}

.popup-opcoes ul li {
    margin-bottom: 10px;
}

/* Estilos para submenus (temas) */
.popup-opcoes ul li ul {
    padding-left: 20px;
}




.btn-tema-vintage {
    background: #ffe9dc;
    border: none;
    color: black;
}


.btn-tema-vintage svg {
    color: #f8c3a3;
}


.btn-tema-notas {
    background: #fff5cc;
    border: none;
    color: black;
}

.btn-tema-notas svg {
    color: #fed387;
}



.btn-tema-gelo {
    background: #f1f3f7;
    border: none;
    color: black;
}


.btn-tema-gelo svg {
    color: #9dcdff;
}



.btn-tema-white {
    background: white;
    border: 1.2px solid #e7e7e7;
    color: black;
}


.btn-tema-white svg {
    color: #ffe051;
}


.btn-tema-dark {
    background: #32405f;
    border: none;
    color: white;
}


.btn-tema-dark svg {
    color: white;
}


.title-tema-btn-linha {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px 0;
}



.btn-ver-anotacoes-notas {
    padding: 10px;
    background: #ebeeff;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 16px 12px 16px;
}


.btn-ver-anotacoes-notas .arrow {
    background: white;
    padding: 6px;
    border-radius: 100%;
}


.mostrar-linhas-bloco  label {
    font-size: 16px;
    display: flex;
    font-weight: 500;
}



.mostrar-linhas-bloco  input[type=checkbox] {
    margin-right: 8px;    
}



.btn-ver-anotacoes-notas a {
    display: flex;
    align-items: center;
    color: #274963;
    font-weight: 500;
}


.btn-ver-anotacoes-notas a .note {
    margin-right: 6px;
    color: #bac4d7;
}


/* Tema Vintage */
.tema-vintage #bloco-de-notas .container-bloco-de-notas {
    background: #fff3ec;
    color: #063881;
}


.tema-vintage #texto-bloco-de-notas.com-linhas {
    background-image: linear-gradient(transparent 29px, #68a9f0 29px, #bbdbef 30px); /* Linhas horizontais */
}


.tema-vintage #salvar-bloco-de-notas {
    background-color: #0067fd;
    color: white;
    border: none;
    font-size: 16px;
    border-radius: 12px;
}


.tema-vintage #salvar-bloco-de-notas:hover {
    background-color: #075ddd;
}


.tema-vintage #fechar-bloco-de-notas {
    color: #f0b18c;
}

.tema-vintage #botao-opcoes {
    color: #f0b18c;
}











/* Tema Notas */

.tema-notas #bloco-de-notas .container-bloco-de-notas {
    background: #fff4d2;
    color: #354370;
}


.tema-notas .container-bloco-de-notas #nova-anotacao {
    color: #0030fd;
}


.tema-notas .container-bloco-de-notas #nova-anotacao:hover::after {
    border-bottom: 1.2px solid #0030fd;
}


.tema-notas #texto-bloco-de-notas.com-linhas {
    background-image: linear-gradient(transparent 29px, #68a9f0 29px, #bbdbef 30px); /* Linhas horizontais */
}


.tema-notas #salvar-bloco-de-notas {
    background-color: #0030fd;
    color: white;
    border: none;
    font-size: 16px;
}


.tema-notas #salvar-bloco-de-notas:hover {
    background-color: #032adc;
}


.tema-notas #fechar-bloco-de-notas {
    color: #033572;
}

.tema-notas #botao-opcoes {
    color: #033572;
}




/* Tema Gelo */

.tema-gelo #bloco-de-notas .container-bloco-de-notas {
    background: #f7f8f9;
    color: #354370;
}


.tema-gelo .container-bloco-de-notas #nova-anotacao {
    color: #0030fd;
}


.tema-dark .container-bloco-de-notas #nova-anotacao:hover::after {
    border-bottom: 1.2px solid #0030fd;
}


.tema-gelo #texto-bloco-de-notas.com-linhas {
    background-image: linear-gradient(transparent 29px, #033572 29px, #bbdbef 30px); /* Linhas horizontais */
}


.tema-gelo #salvar-bloco-de-notas {
    background-color: #262c46;
    color: white;
    border: none;
    font-size: 16px;
}


.tema-gelo #salvar-bloco-de-notas:hover {
    background-color: #293155;
}


.tema-gelo #fechar-bloco-de-notas {
    color: #033572;
}

.tema-gelo #botao-opcoes {
    color: #033572;
}






/* Tema White */

.tema-white #bloco-de-notas .container-bloco-de-notas {
    background: white;
    color: #32343d;
    box-shadow: inset 0 0 0 1px #d6dce9;
}

.tema-white #titulo-bloco-de-notas {
    background: #f9f9f9;
    box-shadow: 0 0 0 1px #f1f1f1;
}


.tema-white .container-bloco-de-notas #nova-anotacao {
    color: #0030fd;
}


.tema-dark .container-bloco-de-notas #nova-anotacao:hover::after {
    border-bottom: 1.2px solid #0030fd;
}

.tema-white #texto-bloco-de-notas.com-linhas {
    background-image: linear-gradient(transparent 29px, #7e95b1 29px, #ffffff 30px);
}


.tema-white #salvar-bloco-de-notas {
    background-color: #0030fd;
    color: white;
    border: none;
    font-size: 16px;
}


.tema-white #salvar-bloco-de-notas:hover {
    background-color: #0c31d7;
}


.tema-white #fechar-bloco-de-notas {
    color: #033572;
}

.tema-white #botao-opcoes {
    color: #033572;
}





/* Tema Dark */

.tema-dark #bloco-de-notas .container-bloco-de-notas {
    background: #171d25;
    color: white;
}

.tema-dark #titulo-bloco-de-notas {
    background: #333844;
    color: white;
}

.tema-dark #bloco-de-notas textarea {
     color: white;
}


.tema-dark .container-bloco-de-notas #nova-anotacao {
    color: white;
}


.tema-dark .container-bloco-de-notas #nova-anotacao:hover::after {
    border-bottom: 1.2px solid white;
}


.tema-dark #texto-bloco-de-notas.com-linhas {
    background-image: linear-gradient(transparent 29px, #20344d 29px, #303134 30px);
}


.tema-dark #salvar-bloco-de-notas {
    background-color: #2c85ff;
    color: white;
    border: none;
    font-size: 16px;
}


.tema-dark #salvar-bloco-de-notas:hover {
    background-color: #2275e9;
}


.tema-dark #fechar-bloco-de-notas {
    color: #abb8c9;
}

.tema-dark #botao-opcoes {
    color: #abb8c9;
}