/* Simulador Avançado Specific Styles */

.simulador-section {
  background-color: #f8f9fa;
  min-height: calc(100vh - 250px);
}

/* Form Card */
.simulador-section .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.simulador-section .card-title {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.2rem;
}

.simulador-section .form-label {
  font-weight: 500;
  color: #495057;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.simulador-section .form-control,
.simulador-section .form-select {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.simulador-section .form-control:focus,
.simulador-section .form-select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

/* Submit Button */
.simulador-section .btn-success {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.simulador-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 {
  margin-bottom: 1.5rem;
}

.results-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

#novaSimulacaoBtn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1.25rem;
}

#novaSimulacaoBtn:hover {
  background-color: black;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Bank Cards Grid */
.banks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Compact Bank Card */
.bank-card-compact {
  background-color: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.bank-card-compact:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.bank-card-compact.best-option {
  border-color: #28a745;
}

.bank-card-compact .bank-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #28a745;
  margin-bottom: 0.5rem;
}

.bank-card-compact .parcela-label {
  font-size: 0.7rem;
  color: #6c757d;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.bank-card-compact .parcela-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.bank-card-compact .taxa-info {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.bank-card-compact .total-info {
  font-size: 0.75rem;
  color: #6c757d;
}

/* Alert Box */
.alert-box {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.alert-box i {
  color: #ffc107;
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.alert-box p {
  margin: 0;
  font-size: 0.9rem;
  color: #856404;
}

/* Detalhamento Table */
.detalhamento-section {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.detalhamento-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.detalhamento-table {
  width: 100%;
  border-collapse: collapse;
}

.detalhamento-table thead th {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid #e9ecef;
}

.detalhamento-table tbody td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #f1f3f5;
  font-size: 0.9rem;
  color: #495057;
}

.detalhamento-table tbody tr:hover {
  background-color: #f8f9fa;
}

.detalhamento-table .bank-name-cell {
  font-weight: 600;
  color: #2c3e50;
}

.detalhamento-table .taxa-cell {
  color: #dc3545;
  font-weight: 600;
}

.detalhamento-table .parcela-cell {
  color: #28a745;
  font-weight: 600;
}

.detalhamento-table .total-cell {
  font-weight: 600;
}

/* Loading Animation */
.loading-results {
  text-align: center;
  padding: 3rem 2rem;
}

.loading-results .spinner-border {
  width: 3rem;
  height: 3rem;
  color: #28a745;
}

/* Responsive */
@media (max-width: 768px) {
  .bank-card-body {
    grid-template-columns: 1fr;
  }
}
