/* Dashboard Simples e Limpo */
.dashboard-simples {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: #f8fafc;
  min-height: 100vh;
}

.dashboard-header {
  margin-bottom: 2rem;
  text-align: center;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.dashboard-header p {
  color: #64748b;
  font-size: 1.1rem;
}

.dashboard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: #64748b;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* RESUMO FINANCEIRO PRINCIPAL */
.resumo-principal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card-principal {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 5px solid;
}

.card-principal:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -4px rgba(0, 0, 0, 0.15);
}

.card-principal.receitas {
  border-left-color: #10b981;
}

.card-principal.despesas {
  border-left-color: #ef4444;
}

.card-principal.lucro {
  border-left-color: #3b82f6;
}

.card-icon {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.receitas .card-icon {
  background: #ecfdf5;
  color: #10b981;
}

.despesas .card-icon {
  background: #fef2f2;
  color: #ef4444;
}

.lucro .card-icon {
  background: #eff6ff;
  color: #3b82f6;
}

.card-icon svg {
  font-size: 2rem;
}

.card-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.valor-principal {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.subtexto {
  color: #64748b;
  font-size: 0.9rem;
}

/* SEÇÕES */
.secao-vendas-prazo,
.secao-parcelas {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.secao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.secao-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.total-prazo,
.total-parcelas {
  background: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  color: #3b82f6;
}

/* LISTA DE VENDAS A PRAZO */
.lista-vendas-prazo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.item-venda-prazo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.item-venda-prazo:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.venda-info {
  flex: 1;
}

.cliente {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.valor {
  color: #10b981;
  font-weight: 600;
  font-size: 1.1rem;
}

.venda-vencimento {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  margin: 0 1.5rem;
  font-weight: 500;
}

.btn-whatsapp-simples {
  background: #25d366;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-whatsapp-simples:hover {
  background: #22c55e;
  transform: scale(1.05);
}

.btn-whatsapp-simples svg {
  font-size: 1.2rem;
}

.mais-vendas {
  text-align: center;
  padding: 1rem;
  color: #64748b;
  font-style: italic;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

/* LISTA DE PARCELAS */
.lista-parcelas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.item-parcela {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.parcela-info {
  flex: 1;
}

.parcela-detalhes {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  color: #64748b;
  font-size: 0.9rem;
}

/* ESTATÍSTICAS RÁPIDAS */
.estatisticas-rapidas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s;
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 2rem;
  color: #3b82f6;
  background: #eff6ff;
  padding: 0.75rem;
  border-radius: 10px;
}

.stat-numero {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
}

/* EMPTY STATE */
.empty-recebimentos {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.empty-icon {
  font-size: 4rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.empty-recebimentos h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.empty-recebimentos p {
  color: #94a3b8;
  font-size: 1.1rem;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .dashboard-simples {
    padding: 1rem;
  }

  .dashboard-header h1 {
    font-size: 2rem;
  }

  .resumo-principal {
    grid-template-columns: 1fr;
  }

  .card-principal {
    padding: 1.5rem;
  }

  .valor-principal {
    font-size: 2rem;
  }

  .item-venda-prazo,
  .item-parcela {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .venda-vencimento {
    margin: 0;
  }

  .btn-whatsapp-simples {
    align-self: flex-end;
  }

  .parcela-detalhes {
    align-items: flex-start;
  }

  .estatisticas-rapidas {
    grid-template-columns: 1fr;
  }

  .secao-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
