/* Simulador de Rentabilidade Specific Styles */

.rentabilidade-section {
  background-color: #f8f9fa;
  min-height: calc(100vh - 250px);
}

/* Form Card */
.rentabilidade-section .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.rentabilidade-section .card-title {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.2rem;
}

.rentabilidade-section .form-label {
  font-weight: 500;
  color: #495057;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.rentabilidade-section .form-control,
.rentabilidade-section .form-select {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.rentabilidade-section .form-control:focus,
.rentabilidade-section .form-select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

/* Submit Button */
.rentabilidade-section .btn-success {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.rentabilidade-section .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Results Container */
.results-container {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Empty State */
.empty-state {
  padding: 3rem 2rem;
}

.empty-state i {
  opacity: 0.3;
}

.empty-state p {
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* Results Content */
#resultsContent {
  width: 100%;
  padding: 1.5rem !important;
  background-color: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Results Header */
.results-header {
  margin-bottom: 1.5rem;
}

.results-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* Metrics Cards 3x2 Grid */
.metrics-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card-compact {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.metric-card-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.metric-icon {
  font-size: 2rem;
  color: #28a745;
  margin-bottom: 0.75rem;
}

.metric-label-compact {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.metric-value-compact {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
}

.metric-value-compact.positive {
  color: #28a745;
}

.metric-value-compact.negative {
  color: #dc3545;
}

/* Recomendação IA */
.recomendacao-ia {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.recomendacao-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #2c3e50;
}

.recomendacao-header i {
  color: #ffc107;
  font-size: 1.2rem;
}

.recomendacao-text {
  margin: 0;
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.6;
}

/* Details Section */
.details-section {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.details-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f3f5;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.9rem;
  color: #6c757d;
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
}

.detail-value.positive {
  color: #28a745;
}

.detail-value.negative {
  color: #dc3545;
}

/* Chart Section */
.chart-section {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Loading Animation */
.loading-results {
  text-align: center;
  padding: 3rem 2rem;
}

.loading-results .spinner-border {
  width: 3rem;
  height: 3rem;
  color: #28a745;
}

/* Nova Análise Button */
#novaAnaliseResultBtn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1.25rem;
}

#novaAnaliseResultBtn:hover {
  background-color: black;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .metrics-grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .metrics-grid-3x2 {
    grid-template-columns: 1fr;
  }
}
