/*VARIÁVEIS E FONTES*/
@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

:root {
  --verde1: #b2dfdb;
  --verde2: #80cbc4;
  --verde3: #4db6ac;
  --verde4: #00897b;
  --verde5: #00695c;
  --fonte: 'Poppins', sans-serif; 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--cinza-claro); /* Ou seu fundo padrão */
}



/*RESET E BASE*/
* {
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f9f9f9;
  color: #333;
  font-family: 'Segoe UI', sans-serif;
}

/*CABEÇALHO E MENU */
.cabecalho {
  background-color: var(--verde4);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-dashboard {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  overflow: visible;
}

.cabecalho button:not(.usuario-nome) {
  background-color: var(--verde1);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cabecalho button:not(.usuario-nome):hover {
  background-color: var(--verde2);
}

/*USUÁRIO (MENU E DROPDOWN)*/
.usuario-menu {
  position: relative;
  z-index: 1000;
  margin-left: auto;
  flex-shrink: 0;
  min-width: 120px;
}

.usuario-nome {
  background-color: var(--verde4);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  min-width: 120px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1001;
  height: auto;
  transition: background-color 0.3s ease;
}

.usuario-nome:hover {
  background-color: var(--verde5);
}

.usuario-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
  min-width: 160px;
}

.usuario-dropdown button {
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  background: white;
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.usuario-dropdown button:hover {
  background-color: var(--verde1);
}

/*BOTÃO VOLTAR*/
.botao-voltar {
  background-color: var(--verde1);
  color: #333;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.botao-voltar:hover {
  background-color: var(--verde2);
}

/*CARDS DA TELA INICIAL*/
.cards-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 10rem 1rem;
}

.card {
  text-decoration: none;
  color: #333;
  width: 280px;
  text-align: center;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.05);
}

.circulo {
  width: 150px;
  height: 150px;
  background-color: var(--verde3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.circulo img {
  width: 70%;         /* imagem menor */
  height: 70%;        /* mantém o tamanho proporcional */
  object-fit: contain;
  opacity: 0.6;       /* mais transparente */
  transition: transform 0.3s ease;
}

.circulo:hover img {
  transform: scale(1.05); /* zoom suave ao passar o mouse (opcional) */
}


.card:hover .circulo {
  background-color: var(--verde5);
  transform: scale(1.1);
}

.card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--verde5);
}

.subtitulo {
  font-size: 0.95rem;
  color: #555;
}

/*PÁGINA ORGANIZAÇÃO*/
body.pagina-organizacao {
  background-color: #f5f5f5;
}

.organizacao-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 1rem;
  gap: 2rem;
}

.organizacao-ilustracao {
  flex: 1;
  text-align: center;
}

.organizacao-ilustracao h2 {
  margin-top: 1rem;
  font-size: 1.6rem;
  color: var(--verde5);
  line-height: 1.3;
}

.icone-pasta {
  width: 120px;
  height: 80px;
  margin: 0 auto;
  background: var(--verde2);
  border-radius: 10px 10px 4px 4px;
  position: relative;
}
.icone-pasta::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 60px;
  height: 20px;
  background: var(--verde4);
  border-radius: 6px 6px 0 0;
}

.organizacao-texto {
  flex: 1;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.organizacao-texto h3 {
  color: var(--verde4);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.organizacao-texto p {
  margin-bottom: 1.2rem;
  color: #444;
  line-height: 1.6;
  text-align: justify;
}

/*PÁGINA OBJETIVOS*/
body.pagina-objetivos {
  background-color: #f5f5f5;
}

.objetivos-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 1rem;
  gap: 2rem;
}

.objetivos-imagem {
  flex: 1;
  text-align: center;
}

.objetivos-imagem h2 {
  margin-top: 1.5rem;
  font-size: 1.6rem;
  color: var(--verde5);
  line-height: 1.3;
}

.ilustracao-carteira {
  width: 140px;
  height: 100px;
  margin: 0 auto;
  background: var(--verde3);
  border-radius: 12px;
  position: relative;
}

.ilustracao-carteira::before,
.ilustracao-carteira::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 100px;
  background: var(--verde1);
  border-radius: 12px;
  top: -12px;
  left: 10px;
  z-index: -1;
}

.objetivos-conteudo {
  flex: 1;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.objetivos-conteudo h3 {
  color: var(--verde4);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.objetivos-conteudo p {
  margin-bottom: 1.2rem;
  color: #444;
  line-height: 1.6;
  text-align: justify;
}

/*PÁGINA DECISÕES*/
body.pagina-decisoes {
  background-color: #f5f5f5;
}

.decisoes-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 1rem;
  gap: 2rem;
}

.decisoes-ilustracao {
  flex: 1;
  text-align: center;
}

.decisoes-ilustracao h2 {
  margin-top: 1rem;
  color: var(--verde5);
  font-size: 1.6rem;
  line-height: 1.3;
}

.figura-pessoa {
  position: relative;
  width: 140px;
  height: 160px;
  margin: 0 auto;
}

.cabeca {
  width: 80px;
  height: 80px;
  background: var(--verde3);
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
}

.oculos::before,
.oculos::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid white;
  background: transparent;
}

.oculos::before {
  left: 10px;
}

.oculos::after {
  right: 10px;
}

.gravata {
  width: 20px;
  height: 30px;
  background: var(--verde1);
  margin: 10px auto 0;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.baloes {
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
}

.bolha {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: white;
}

.bolha-check {
  background-color: var(--verde4);
}

.bolha-x {
  background-color: crimson;
}

.decisoes-texto {
  flex: 1;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.decisoes-texto h3 {
  color: var(--verde4);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.decisoes-texto p {
  margin-bottom: 1.2rem;
  color: #444;
  line-height: 1.6;
  text-align: justify;
}

/*DASHBOARD*/
body.pagina-dashboard {
  background-color: #f5f5f5;
}

.dashboard-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  width: 100%;
  height: calc(100vh - 70px);
  margin: 0;
  gap: 2rem;
  background: transparent; /* importante! */
}



.mensagem {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: transparent; 
}

.mensagem h2 {
  font-family: 'Questrial', sans-serif;
  font-size: 2rem;
  color: var(--verde5);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.menu-opcoes {
  flex: 1.5;
  background-color: var(--verde2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 2rem;
  min-height: 200px;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 100px); 
}


.menu-opcoes h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 2rem;
}

.menu-opcoes button {
  background-color: var(--verde4);
  color: white;
  border: none;
  padding: 1rem 2rem;
  margin: 0.5rem 0;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  width: 80%;
  max-width: 300px;
  transition: background-color 0.3s ease;
}

.menu-opcoes button:hover {
  background-color: var(--verde5);
}

/*FORMULÁRIOS (LOGIN, RENDA, GASTOS, RESERVA, PERFIL)*/
body.tela-login {
  background: #f2f2f2;
  margin: 0;
}

.login-container {
  display: flex;
  max-width: 1000px;
  margin: 4rem auto;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

.login-form,
.cadastro-form {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-form {
  background-color: #ecf6dc;
}

.login-form h2,
.cadastro-form h2 {
  margin-bottom: 1rem;
  color: var(--verde5);
}

.login-container input {
  width: 80%;
  margin: 0.5rem auto;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.google-btn {
  background: #db4437;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 1rem;
}

.entrar,
.cadastrar {
  background: var(--verde3);
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  margin-top: 1rem;
  cursor: pointer;
}

.login-form a {
  font-size: 0.9rem;
  color: var(--verde4);
  text-decoration: none;
  margin-top: 0.5rem;
}

body.pagina-renda,
body.pagina-gastos,
body.pagina-reserva,
body.pagina-perfil {
  background-color: var(--verde3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
}

.renda-container,
.gastos-container,
.reserva-container,
.perfil-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  color: black;
}

.card-renda,
.card-gastos,
.card-reserva {
  background-color: var(--verde5);
  color: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.campo-renda,
.campo-gastos,
.campo-reserva,
.campo-descricao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.campo-renda label,
.campo-gastos label,
.campo-reserva label,
.campo-descricao label {
  font-size: 1.2rem;
  font-weight: bold;
}

.campo-renda input,
.campo-gastos input,
.campo-reserva input {
  width: 140px;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  text-align: right;
  font-size: 1.2rem;
}

.campo-descricao input {
  width: 200px;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  text-align: left;
  font-size: 1rem;
}

.btn-salvar {
  background-color: white;
  color: var(--verde5);
  border: none;
  padding: 0.6rem 1.5rem;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-salvar:hover {
  background-color: #eee;
}

.btn-voltar {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/*PAINEL E TABELAS*/
body.pagina-painel {
  background-color: var(--verde3);
  color: white;
  font-family: 'Segoe UI', sans-serif;
  padding: 2rem;
}

.painel-container {
  max-width: 900px;
  margin: 0 auto;
}

.painel-bloco {
  margin-bottom: 2rem;
}

h2, h3 {
  color: white;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  color: black;
  border-radius: 8px;
  overflow: hidden;
}

table thead {
  background: var(--verde1);
  color: white;
}

table th, table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ccc;
}

/*PERFIL*/
.form-perfil {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-perfil label {
  font-weight: bold;
}

.form-perfil input {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/*RESPONSIVO*/
@media (max-width: 768px) {
  .organizacao-section,
  .objetivos-section,
  .decisoes-section {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .organizacao-ilustracao,
  .objetivos-imagem,
  .decisoes-ilustracao,
  .organizacao-texto,
  .objetivos-conteudo,
  .decisoes-texto {
    width: 100%;
    text-align: center;
  }

  .login-container {
    flex-direction: column;
  }

  .login-form,
  .cadastro-form {
    width: 100%;
  }

  .dashboard-container {
    flex-direction: column;
  }

  .mensagem,
  .menu-opcoes {
    width: 100%;
    padding: 2rem 1rem;
  }

  @media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .menu-opcoes {
    width: 100%;
    flex: unset;
    min-height: unset;
  }
}
}

@media (max-width: 900px) {
  .dashboard-container {
    flex-direction: column;
    padding: 1rem 0.5rem;
    height: auto;
    min-height: unset;
    gap: 1rem;
  }
  .menu-opcoes {
    width: 100%;
    flex: unset;
    min-width: unset;
    min-height: unset;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .mensagem {
    width: 100%;
    padding: 1rem 0.5rem;
    justify-content: center;
    align-items: center;
  }
}

/* ILUSTRAÇÕES E ANIMAÇÕES */
.ilustracao-carteira {
  width: 180px;
  height: 140px;
  background-color: var(--verde3); 
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--verde1); 
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.ilustracao-carteira img {
  width: 80%;
  height: 80%;
  object-fit: contain;   
  opacity: 0.7;          
  transition: transform 0.3s ease;
}

.ilustracao-carteira img:hover {
  transform: scale(1.05); 
}
