* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  min-height: 100vh;
  padding: 24px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.header-content h1 {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 8px;
}

.header-content p {
  color: #bebebf;
  font-size: 16px;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #10569b;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-download:hover {
  background-color: #0d3f7a;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.card {
  background: #2a2a3e;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  padding: 24px;
  border-left: 4px solid #ff41f2;
}

.card h3 {
  font-size: 12px;
  font-weight: 600;
  color: #bebebf;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-value {
  font-size: 32px;
  font-weight: bold;
  color: #ff41f2;
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 12px;
  color: #656562;
}

.card input[type="number"] {
  font-size: 32px;
  font-weight: bold;
  color: #ff41f2;
  background: transparent;
  border: none;
  border-bottom: 2px solid #ff41f2;
  width: 100%;
  outline: none;
  padding: 8px 0;
  color: #ffffff;
}

.section {
  background: #2a2a3e;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  padding: 24px;
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.section h2 {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #10569b;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-add:hover {
  background-color: #0d3f7a;
}

.projecao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  padding: 8px 12px;
  border: 1px solid #404052;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
  background-color: #1a1a2e;
  color: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #ff41f2;
}

.resumo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  font-size: 14px;
}

.resumo-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #404052;
  color: #bebebf;
}

.resumo-item:last-child {
  border-bottom: none;
  padding-top: 8px;
  font-weight: bold;
  font-size: 16px;
}

.resumo-item span:last-child {
  font-weight: 600;
  color: #ff41f2;
}

.row-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #404052;
  margin-bottom: 12px;
}

.row-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.row-content {
  flex: 1;
}

.row-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #404052;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 8px;
  outline: none;
  background-color: #1a1a2e;
  color: #ffffff;
}

.row-input:focus {
  border-color: #ff41f2;
}

.row-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}

.row-input-small {
  padding: 8px;
  border: 1px solid #404052;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  background-color: #1a1a2e;
  color: #ffffff;
}

.row-input-small:focus {
  border-color: #ff41f2;
}

.row-total {
  padding: 8px;
  background-color: #1a1a2e;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  color: #ff41f2;
  border: 1px solid #404052;
}

.btn-remove {
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s;
  align-self: flex-start;
  margin-top: 8px;
}

.btn-remove:hover {
  background-color: #dc2626;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .row-inputs-grid {
    grid-template-columns: 1fr;
  }
}
