/* Análise de Crédito Specific Styles */

body {
  background-color: #e9ecef;
}

.analysis-container {
  min-height: 100vh;
  padding-bottom: 3rem;
}

/* Header */
.analysis-header {
  background: transparent;
  color: #2c3e50;
  margin-bottom: 2rem;
}

.analysis-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.analysis-header p {
  font-size: 1.1rem;
  color: #6c757d;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-bottom: 2rem;
}

.progress-steps .step {
  flex: 1;
  text-align: center;
  position: relative;
}

.progress-steps .step-bar {
  height: 4px;
  background-color: #e9ecef;
  margin-bottom: 0.75rem;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.progress-steps .step.active .step-bar {
  background-color: #28a745;
}

.progress-steps .step.completed .step-bar {
  background-color: #28a745;
}

.progress-steps .step-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #adb5bd;
  transition: all 0.3s ease;
}

.progress-steps .step.active .step-label {
  color: #28a745;
  font-weight: 600;
}

.progress-steps .step.completed .step-label {
  color: #28a745;
}

/* Cards */
.analysis-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.analysis-card .card-title {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.25rem;
}

/* Form Controls */
.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

.form-control::placeholder {
  color: #adb5bd;
}

/* Buttons */
.btn {
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

.btn-outline-secondary:disabled {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #adb5bd;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Table */
.table {
  margin-bottom: 0;
}

.table thead th {
  border-bottom: 2px solid #dee2e6;
  color: #495057;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.table tbody td {
  vertical-align: middle;
  padding: 1rem;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fa;
}

/* Badge */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .analysis-header h1 {
    font-size: 1.75rem;
  }

  .analysis-header p {
    font-size: 0.95rem;
  }

  .progress-steps .step-label {
    font-size: 0.8rem;
  }

  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-pane.show {
  animation: fadeIn 0.3s ease;
}

/* Icons */
.card-title i {
  font-size: 1.1rem;
}

/* Range Slider */
.form-range {
  height: 8px;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: white;
  border: 3px solid #28a745;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-top: -15px;
}

.form-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: white;
  border: 3px solid #28a745;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.form-range::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
  border-radius: 4px;
}

.form-range::-moz-range-track {
  height: 8px;
  background: transparent;
  border-radius: 4px;
}

/* AI Analysis Modal */
.ai-brain-icon i {
  animation: brainPulse 2s ease-in-out infinite;
}

@keyframes brainPulse {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

.modal-content {
  border-radius: 16px;
}

/* Empty State */
.text-muted {
  color: #6c757d !important;
}
