/* === Estilo base === */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  color: #E0E0E0;
}

header {
  background-color: #1A1A1A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
  color: #00C853;
}

.nav a {
  color: #B0BEC5;
  margin: 0 1rem;
  text-decoration: none;
  transition: color 0.3s;
}

.nav a:hover {
  color: #00C853;
}

/* === Seção principal === */
.container {
  text-align: center;
  padding: 3rem 2rem;
}

/*========= teste fundo topo ========= */



/* =============================*/




.hero h1 {
  font-size: 2.2rem;
  color: #FFD600;
}

.hero p {
  font-size: 1.1rem;
  color: #B0BEC5;
  margin-bottom: 2rem;
}

.cta {
  background-color: #00C853;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.cta:hover {
  background-color: #009624;
}

/* === Área do app === */
.app-section {
  background-color: #1E1E1E;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  margin: 2rem auto;
  max-width: 800px;
}

/* === Rodapé === */
.footer {
  background-color: #1A1A1A;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}






/*teste unificado ------------------------------------*/


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --secondary: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-input: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #475569;
  --shadow: rgba(0, 0, 0, 0.3);
}

body {
 /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;*/
  background: linear-gradient(135deg, var(--bg-main) 0%, #1e293b 100%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
}

.header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  padding: 0.5rem;
  border-radius: 12px;
  overflow-x: auto;
  flex-wrap: wrap;
}

.tab-button {
  flex: 1;
  min-width: 150px;
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-button:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

.tab-button.active {
  background: var(--primary);
  color: white;
}


.a topoSim.active {
  background: var(--primary);
  color: white;
}


.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px var(--shadow);
  margin-bottom: 2rem;
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-wrapper {
  position: relative;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-main);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.suffix {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.btn {
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.result-item {
  background: var(--bg-input);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.result-item h3 {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-item p {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.result-item.highlight {
  border-left-color: var(--secondary);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent);
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
  border-radius: 12px;
  background: var(--bg-input);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--bg-main);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-primary);
}

tbody tr:hover {
  background: var(--bg-card);
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.summary-card.success {
  background: linear-gradient(135deg, var(--secondary), #059669);
}

.summary-card.warning {
  background: linear-gradient(135deg, var(--warning), #d97706);
}

.summary-card h4 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.summary-card p {
  font-size: 1.5rem;
  font-weight: 700;
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-option {
  flex: 1;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-option label {
  display: block;
  padding: 1rem;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + label {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.radio-option label:hover {
  border-color: var(--primary-light);
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.no-results svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

@media (max-width: 768px) {
  #app {
    padding: 1rem 0.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .tabs {
    flex-direction: column;
  }

  .tab-button {
    min-width: 100%;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-item p {
    font-size: 1.5rem;
  }

  th, td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }
}

.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/*===========  teste fundo====*/


/*novo landing css -----*/


/* Fundo de imagem da seção hero */
.hero {
  position: relative;
  background-image: url("img/fundo_investimentos.webp"); /* coloque aqui o caminho da sua imagem */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 60vh; /* ocupa quase toda a parte de cima */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}

/* Camada escura sobre a imagem para contraste */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* escurece a imagem */
  z-index: 0;
}

/* Garante que o texto fique acima do overlay */
.hero h1,
.hero p {
  position: relative;
  z-index: 1;
}

/* Ajuste no header para sobrepor o fundo suavemente */
.header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.nav a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav a:hover {
  color: #ffd700;
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
    padding: 1.5rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
}


