@charset "UTF-8";

/*
    Paleta de cores
    Verde: #49a09d
    Lilás: #5f2c82
*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --color-default: #104181;
  --color-second: #0067ac;
  --color-white: #fff;
  --color-body: #ddeeff;
  --color-light: #d4d4d4;
}

/* CLASSE USADA PARA ESCONDER HTML*/
.hidden {
  display: none;
}

* {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center; /* Centraliza horizontalmente */
  align-items: center; /* Centraliza verticalmente */
  flex-direction: column; /* Alinha os filhos em coluna */
  min-height: calc(100vh); /* Altura mínima, deixando espaço para a borda */
  padding: 20px 0; /* Espaço acima e abaixo do conteúdo */
  background-color: var(--color-body); /* Fundo para destaque do formulário */
}

main {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-evenly; /* Centraliza horizontalmente */
  align-items: center; /* Centraliza verticalmente */
  padding: 0px 0; /* Espaço acima e abaixo do conteúdo */
  background-color: var(--color-white); /* Fundo para destaque do formulário */
  margin: 0px 0px 0px 20px;
  min-height: 200px;
  max-height: 900px;
  border-radius: 10px;
  width: 400px;
}

.home-section {
  position: relative;
  background-color: var(--color-body);
  min-height: 100vh;
  top: 0;
  left: 78px;
  width: calc(100% - 78px);
  transition: all 0.5s ease;
  z-index: 2;
}

.home-section .text {
  display: inline-block;
  color: var(--color-default);
  font-size: 25px;
  font-weight: 500;
  margin: 18px;
}

/* Mensagens */
.msg-container {
  background-color: var(--color-body);
  padding: 15px;
}

.msg {
  width: 100%;
  margin: 0 auto;
  padding: 10px;
  border: solid 1px #000;
  text-align: center;
}

.msg.error {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.msg.success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.fas.fa-bars {
  color: #fff;
}

/*CSS TELA DE LOGIN*/

/* Container do formulário de login e cadastro */
.form-container {
  max-width: 90%;
  width: 500px; /* Para telas grandes */
  border-radius: 0.75rem;
  background-color: var(--color-white);
  padding: 2rem;
  color: rgb(0, 0, 0);
  box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.4);
}

/* Media query para telas maiores */
@media screen and (min-width: 768px) {
  .form-container {
    max-width: 80%; /* Ajusta em telas maiores */
    width: 500px; /* Valor fixo */
  }
}

/* Media query para telas menores */
@media screen and (max-width: 480px) {
  .form-container {
    padding: 1rem; /* Reduz espaço interno */
    font-size: 0.9rem; /* Ajusta texto */
  }
}

/* Título do formulário */
.title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
}

/* Grupo de input */
.input-group {
  margin-top: 1.2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.input-group label {
  display: block;
  color: rgb(0, 0, 0);
  margin-bottom: 4px;
}

/* Estilo dos inputs */
.input-group input {
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid var(--color-light);
  padding: 0.75rem 1rem;
}

/* Foco nos inputs */
.input-group input:focus {
  border-color: var(--color-default);
}

/* Container e ícone para alternar visibilidade da senha */
.password-wrapper {
  position: relative;
}

#togglePassword,
#toggleConfirmPassword {
  position: absolute;
  right: 10px;
  top: 55%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--color-default);
  font-size: 1.2rem;
}

/* Link de recuperação de senha */
.forgot {
  display: flex;
  justify-content: flex-end;
  font-size: 0.75rem;
  color: rgba(156, 163, 175, 1);
  margin: 14px 0;
}

.forgot a,
.signup a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot a:hover,
.signup a:hover {
  text-decoration: underline #00b911;
}

/* Botão de envio do formulário */
.sign {
  display: block;
  width: 100%;
  background-color: var(--color-default);
  padding: 0.75rem;
  text-align: center;
  color: var(--color-white);
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  margin-top: 6%;
  transition: background-color 0.3s ease; /* Adicionando transições apenas na cor */
}

/* Efeito hover no botão de cadastrar */
.sign:hover {
  background-color: #0060a0;
}

/* Texto de cadastro */
.signup {
  text-align: center;
  font-size: 0.8rem;
  color: rgb(0, 0, 0);
}

/* Checkbox personalizado */
.checkbox-wrapper-46 {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 1rem;
}

.checkbox-wrapper-46 input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

.checkbox-wrapper-46 .cbx {
  margin: auto;
  user-select: none;
  cursor: pointer;
}

.checkbox-wrapper-46 .cbx span {
  display: inline-block;
  vertical-align: middle;
}

/* Estilo da caixa de seleção e animação de marcação */
.checkbox-wrapper-46 .cbx span:first-child {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid #9098a9;
  transition: all 0.2s ease;
}

.checkbox-wrapper-46 .cbx span:first-child svg {
  position: absolute;
  top: 3px;
  left: 2px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16px;
  stroke-dashoffset: 16px;
  transition: all 0.3s ease;
  transition-delay: 0.1s;
}

.checkbox-wrapper-46 .cbx span:first-child:before {
  content: "";
  width: 100%;
  height: 100%;
  background: #00b911;
  display: block;
  transform: scale(0);
  opacity: 1;
  border-radius: 50%;
}

.checkbox-wrapper-46 .cbx:hover span:first-child {
  border-color: #00b911;
}

.checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child {
  background: #00b911;
  border-color: #00b911;
  animation: wave-46 0.4s ease;
}

.checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child svg {
  stroke-dashoffset: 0;
}

.checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child:before {
  transform: scale(3.5);
  opacity: 0;
  transition: all 0.6s ease;
}

/* Link dentro do texto da checkbox */
.checkbox-wrapper-46 .cbx span:last-child {
  padding-left: 8px;
}

.checkbox-wrapper-46 .cbx span:last-child a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 1rem;
}

.checkbox-wrapper-46 .cbx span:last-child a:hover {
  text-decoration: underline #00b911;
}

/* Animação para o efeito de onda da checkbox */
@keyframes wave-46 {
  50% {
    transform: scale(0.9);
  }
}

/* PARÁGRAFOS QUE CONTÉM OS REQUERIMENTOS DA SENHA */
div#password-requirements p {
  margin-top: 0.5rem;
}

div#password-requirements {
  margin-top: 1rem;
}

/* ---POP UP TERMS---*/

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  z-index: 1000;
  width: 60%;
  max-width: 600px;
  max-height: 80%;
  overflow-y: auto;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

/* ---MESSAGE--- */
.align {
  margin-top: 0px;
  margin-bottom: 0px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: row;
  flex-wrap: wrap-reverse;
  align-content: space-around;
}

/* CHOOSE CATEGORY AND ITEM DIV, INPUTS, LABEL AND BUTTONS */
.category-containers {
  display: flex;
  flex-flow: column nowrap;
  font-weight: bold;
  text-align: center;
  height: 120px;
  justify-content: space-evenly;
  align-items: center;
}

.category-label {
  white-space: nowrap;
}

.category-checkbox {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  font-size: 18px;
  gap: 6px;
}

.items-containers {
  display: flex;
  flex-flow: column nowrap;
  min-width: 200px;
  padding: 10px;
  border-radius: 10px;
  background-color: rgba(145, 145, 145, 0.671);
}

.buttons-containers {
  display: flex;
  flex-flow: row nowrap;
  gap: 5px;
}

.checkLabel input {
  margin-right: 5px;
}

.item-label {
  display: flex;
  width: 100%;
  flex-flow: row nowrap;
  justify-content: space-between;
  margin-bottom: 5%;
}

.item-label label {
  white-space: nowrap; /* Garante que o texto do label não quebre linha */
  margin-right: 5px;
}

/* BUTTONS STYLE*/
.btn {
  background-color: #104181;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border: none !important;
  transition: all linear 160ms;
  cursor: pointer;
}

.btn-warning {
  background-color: rgb(255, 193, 7);
  color: black;
}

.btn-delete {
  background-color: rgb(220, 53, 69);
}

.btn:disabled {
  cursor: not-allowed; /* Indica que o campo está desabilitado */
  color: white;
  background-color: #104181;
}

.btn:hover {
  background-color: #032857;
  color: #ddeef6;
}

.button-container {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.add-container {
  margin-bottom: 2rem;
}

input[type="checkbox"]:disabled + label {
  color: #666666; /* Cor mais clara para indicar desativado */
  cursor: not-allowed; /* Cursor indicando que não é clicável */
  /* Estilização do Modal */
}

.modal {
  display: none; /* Oculto por padrão */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Fundo escuro */
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 5px;
  width: 80%;
  max-width: 400px;
  text-align: center;
}

.modal-content h3 {
  white-space: nowrap;
  margin-bottom: 15px;
}

.modal-content input {
  margin-bottom: 15px;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.modal-buttons .btn {
  padding: 10px 20px;
  cursor: pointer;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
