body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f4f4;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #005b96;
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 2px 10px rgba(0,91,150,0.08);
}
.dashboard-header .logo {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dashboard-header .logo .emoji {
  font-size: 24px;
  margin-left: 6px;
}
.dashboard-header nav a, .dashboard-header nav button {
  color: #fff;
  background: none;
  border: none;
  text-decoration: none;
  margin-left: 10px;
  font-weight: bold;
  transition: color 0.15s;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  white-space: nowrap;
}
.dashboard-header nav a:hover, .dashboard-header nav button:hover {
  color: #ffc107;
}
.dashboard-header nav {
  display: flex;
  align-items: center;
}
.dashboard-header nav button {
  font-family: inherit;
}
.dashboard-container {
  display: flex;
  gap: 32px;
  margin: 32px auto 0 auto;
  max-width: 950px;
  padding: 0 8px;
  min-height: 90vh;
}
.coluna-esquerda, .coluna-direita {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1.5px 9px rgba(0,91,150,0.06);
  padding: 20px 16px;
  position: relative;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,91,150,0.08);
  padding: 18px 23px;
  margin-bottom: 18px;
  min-height: 78px;
}
.user-avatar {
  font-size: 46px;
  border-radius: 50%;
  background: #e2f1fa;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1.5px 9px rgba(0,91,150,0.09);
}
.user-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.user-name {
  font-size: 19px;
  font-weight: bold;
  color: #005b96;
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-email {
  font-size: 13px;
  color: #555;
  margin-top: 2px;
}
.user-saldo {
  font-size: 16px;
  font-weight: bold;
  color: #388e3c;
  margin-top: 3px;
  background: #e7ffe7;
  border-radius: 7px;
  padding: 3px 11px;
  display: inline-block;
  width: fit-content;
}
label { font-weight: bold; }
input, button {
  display: block;
  margin: 10px 0;
  padding: 7px;
  font-size: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}
button {
  background: #005b96;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
  font-weight: bold;
  margin-top: 6px;
  width: 100%;
}
button:hover { background: #004472; }
button:disabled { background: #9e9e9e; cursor: not-allowed; }
.painel-investimento { margin-bottom: 24px; }
.painel-investimento input[type="number"] { width: 120px; }
.help {
  color: #005b96;
  cursor: pointer;
  font-weight: bold;
  margin-left: 5px;
  position: relative;
  display: inline-block;
}
.help .tooltip {
  display: none;
  position: absolute;
  background: #fff;
  color: #333;
  font-size: 12px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 210px;
  z-index: 10;
  top: 20px;
  left: 0;
}
.help:hover .tooltip,
.help:focus .tooltip {
  display: block;
}
#modalInvestimentos, #modalTopInvestidores, #modalTotalPoupanca, #modalTotalFixa, #modalTotalAllInvestimentos, #modalSobre, #modalConfirmacaoTransferencia, #modalInvestimentoSucesso {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.2);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
#modalInvestimentos.active, #modalTopInvestidores.active, #modalTotalPoupanca.active, #modalTotalFixa.active, #modalTotalAllInvestimentos.active, #modalSobre.active, #modalConfirmacaoTransferencia.active, #modalInvestimentoSucesso.active {
  display: flex;
}
#modalInvestimentosContent, #modalTopInvestidoresContent, #modalTotalPoupancaContent, #modalTotalFixaContent, #modalTotalAllInvestimentosContent, #modalSobreContent, #modalConfirmacaoTransferenciaContent, #modalInvestimentoSucessoContent {
  background: #fff;
  border-radius: 12px;
  padding: 22px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.13);
  min-width: 270px;
  max-width: 95vw;
  max-height: 95vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
}
#listaInvestimentos, #listaTopInvestidores, #listaTotalPoupanca, #listaTotalFixa {
  max-height: 320px;
  overflow-y: auto;
  margin: 11px 0 20px 0;
}
#listaInvestimentos > div, #listaTopInvestidores > div, #listaTotalPoupanca > div, #listaTotalFixa > div {
  padding: 5px 0;
  margin: 7px 0;
  border-bottom: 1px solid #eee;
}
#modalExtrato {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.2);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
#modalExtrato.active {
  display: flex;
}
#modalExtratoContent {
  background: #fff;
  border-radius: 12px;
  padding: 22px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.13);
  min-width: 270px;
  max-width: 90vw;
}
#listaExtrato {
  max-height: 320px;
  overflow-y: auto;
  margin: 11px 0 20px 0;
  list-style: none;
  padding: 0;
}
#listaExtrato li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}
#listaExtrato li.entrada { color: green; }
#listaExtrato li.saida { color: red; }
.extrato-btn { margin-top: 8px; }
.destinatario-section { position: relative; }
#listaSugestoes {
  border:1px solid #aad;
  display:none;
  position:absolute;
  background:#fff;
  z-index:10;
  max-height:200px;
  overflow-y:auto;
  width:100%;
  box-shadow: 0 2px 7px rgba(0,91,150,0.07);
  font-size:15px;
}
#listaSugestoes div {
  padding:7px 12px;
  cursor:pointer;
  border-bottom:1px solid #eef;
  transition: background 0.1s;
}
#listaSugestoes div:last-child { border-bottom:none; }
#listaSugestoes div:hover, #listaSugestoes div:focus {
  background:#e7f4fa;
}
#listaSugestoes::-webkit-scrollbar { width: 6px; background: #f1f1f1; }
#listaSugestoes::-webkit-scrollbar-thumb { background: #cee6f7; border-radius: 3px; }
#areaPesquisaAluno {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1.5px 9px rgba(0,91,150,0.07);
  padding: 12px 13px 6px 13px;
  margin: 18px 0 0 0;
}
#pesquisaAluno {
  width: 100%;
  padding: 7px;
  font-size: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 8px;
  box-sizing: border-box;
}
#sugestoesAluno {
  border:1px solid #aad;
  display:none;
  position:absolute;
  background:#fff;
  z-index:20;
  max-height:200px;
  overflow-y:auto;
  width: calc(100% - 30px);
  box-shadow: 0 2px 7px rgba(0,91,150,0.07);
  font-size:15px;
}
#sugestoesAluno div {
  padding:7px 12px;
  cursor:pointer;
  border-bottom:1px solid #eef;
  transition: background 0.1s;
}
#sugestoesAluno div:last-child { border-bottom:none; }
#sugestoesAluno div:hover, #sugestoesAluno div:focus {
  background:#e7f4fa;
}
#infoAluno {
  margin-top: 11px;
  font-size: 16px;
  color: #005b96;
  background: #e2f1fa;
  border-radius: 8px;
  padding: 10px 16px;
}
#toast {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  background: #005b96;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  z-index: 999;
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(0,91,150,0.2);
  animation: fadein 0.4s, fadeout 0.4s 2.4s;
}
@keyframes fadein {
  from { opacity: 0; right: 0;}
  to { opacity: 1; right: 22px;}
}
@keyframes fadeout {
  from { opacity: 1; right: 22px;}
  to { opacity: 0; right: 0;}
}
@media (max-width: 900px) {
  .dashboard-container { flex-direction: column; gap: 0; }
  .coluna-esquerda, .coluna-direita { gap: 16px; }
  .dashboard-header { flex-direction: column; align-items: flex-start; padding: 12px 8px; }
  .dashboard-header nav { margin-top: 8px; }
  .dashboard-header nav a, .dashboard-header nav button { margin-left: 0; margin-right: 15px;}
  .user-card { flex-direction: column; align-items: flex-start;}
  .user-avatar { font-size: 34px; width: 42px; height: 42px;}
}
@media (max-width: 500px) {
  .card { padding: 12px 6px; }
  #modalInvestimentosContent, #modalTopInvestidoresContent, #modalTotalPoupancaContent, #modalTotalFixaContent, #modalTotalAllInvestimentosContent, #modalSobreContent, #modalConfirmacaoTransferenciaContent, #modalInvestimentoSucessoContent {
    padding: 10px 2px; min-width: unset;
  }
  #toast { padding: 9px 12px; font-size: 15px;}
  #areaPesquisaAluno { padding: 8px 3px 4px 3px; }
}

