* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f6f9;
    color: #333;
}

.container {
    width: 100%;
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    color: rgb(61, 61, 161);
}

form {
    display: flex;
    flex-direction: column;
}

input, select {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

button {
    padding: 12px;
    border: none;
    background: #1e88e5;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #1565c0;
}

.link {
    text-align: center;
    margin-top: 15px;
}

.link a {
    text-decoration: none;
    color: black;
}

.dashboard {
    max-width: 900px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 10px;
}

.receitas {
    border-left: 6px solid #4caf50;
}

.despesas {
    border-left: 6px solid #f44336;
}

.saldo {
    border-left: 6px solid #2196f3;
}

.resumo-financeiro,
.comparativo-despesas {
  width: 50%;
}

.menu {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.menu a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.menu div {
    display: flex;
    gap: 15px;
}

.lista {
    margin-top: 15px;
}

.item-lista {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.item-lista strong {
    color: #1e88e5;
}

.valor-receita {
    color: #2e7d32;
    font-weight: bold;
}

.valor-despesa {
    color: #c62828;
    font-weight: bold;
}

.barra {
    background: #e0e0e0;
    height: 12px;
    border-radius: 20px;
    margin-top: 8px;
    overflow: hidden;
}

.barra-preenchida {
    height: 100%;
    background: #1e88e5;
}

.graficos-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  grid-column: 1 / -1;
}

.graficos-grid-1 {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-top: 30px;
  width: 100%;
  align-items: stretch;
}

.graficos-grid-2 {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-top: 30px;
  width: 100%;
  align-items: center;
}

.grafico-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  height: 450px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #eef0f5;
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
}

.grafico-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.grafico-card h3,
.grafico-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #2f3552;
  margin-bottom: 16px;
  text-align: center;
}

.grafico-box {
  width: 100%;
  height: 240px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grafico-box canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

/* Melhor ajuste para telas médias */
@media (max-width: 992px) {
  .graficos-grid {
    grid-template-columns: 1fr;
  }

  .grafico-card {
    min-height: 380px;
  }

  .grafico-box {
    height: 300px;
  }
}


/* Celular */
@media (max-width: 576px) {
  .graficos-grid {
    gap: 18px;
    margin-top: 20px;
  }

  .grafico-card {
    padding: 18px;
    border-radius: 14px;
  }

  .grafico-box {
    height: 260px;
  }

  .grafico-card h3,
  .grafico-card h4 {
    font-size: 16px;
  }
}


.progresso-meta {
    margin-top: 10px;
}

.progresso-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.progresso-barra {
    width: 100%;
    height: 14px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
}

.progresso-preenchido {
    height: 100%;
    background: #43a047;
    border-radius: 20px;
}

.despesas-categoria {
    width: 100%;
}

/* =========================
   FEEDBACK
========================= */

.texto-ajuda {
    margin-bottom: 20px;
    color: #555;
    text-align: center;
    line-height: 1.5;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 15px;
    font-family: Arial, sans-serif;
}

.feedback-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 5px solid #1e88e5;
}

.feedback-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.feedback-nota {
    font-size: 18px;
}

.feedback-data {
    font-size: 13px;
    color: #777;
}

.feedback-comentario {
    line-height: 1.6;
    color: #444;
}

.feedback-vazio {
    text-align: center;
    color: #777;
    padding: 20px;
}

.caixa-ia {
    margin-top: 20px;
    background: #eef6ff;
    border-left: 5px solid #1e88e5;
    padding: 18px;
    border-radius: 12px;
    line-height: 1.6;
}

.caixa-ia strong {
    color: #1e88e5;
}
