/* Estudo de Viabilidade Specific Styles */

.estudos-section {
  background-color: #f8f9fa;
  min-height: calc(100vh - 250px);
}

.estudos-section h4 {
  color: #2c3e50;
  font-weight: 600;
}

/* Table Styles */
.table {
  font-size: 0.9rem;
}

.table thead th {
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  color: #212529;
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Badge Styles */
.badge-tipo {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
}

.badge-residencial {
  background-color: #e3f2fd;
  color: #1976d2;
}

.badge-comercial {
  background-color: #fff3e0;
  color: #f57c00;
}

.badge-misto {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

/* VGV Value Styles */
.vgv-value {
  font-weight: 600;
  color: #28a745;
  font-size: 1rem;
}

/* Action Button Styles */
.btn-visualizar {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-visualizar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state h5 {
  margin-bottom: 0.5rem;
  color: #495057;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .table {
    font-size: 0.8rem;
  }

  .table thead th,
  .table tbody td {
    padding: 0.75rem 0.5rem;
  }

  .btn-visualizar {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
}

/* Loading State */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  color: #28a745;
}

/* Novo Estudo Form Styles */
.novo-estudo-section {
  background-color: #f8f9fa;
  min-height: calc(100vh - 250px);
}

.novo-estudo-section h2 {
  color: #2c3e50;
  font-weight: 700;
  font-size: 2rem;
}

.novo-estudo-section .text-muted {
  font-size: 1rem;
}

/* Centered Form Card */
.form-card-centered {
  max-width: 900px;
  margin: 0 auto;
}

.novo-estudo-section .form-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.novo-estudo-section .form-control,
.novo-estudo-section .form-select {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.novo-estudo-section .form-control:focus,
.novo-estudo-section .form-select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

.novo-estudo-section .form-control::placeholder {
  color: #adb5bd;
  font-size: 0.9rem;
}

/* Turbinar Section */
.turbinar-section {
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.turbinar-section h5 {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1rem;
}

.turbinar-section .form-check {
  padding-left: 1.8rem;
}

.turbinar-section .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  border: 2px solid #28a745;
  cursor: pointer;
}

.turbinar-section .form-check-input:checked {
  background-color: #28a745;
  border-color: #28a745;
}

.turbinar-section .form-check-label {
  color: #495057;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Submit Button */
.btn-lg.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-lg.px-5:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Required asterisk */
.text-danger {
  color: #dc3545 !important;
}

/* Voltar button */
#voltarHistoricoBtn {
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

#voltarHistoricoBtn:hover {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

/* Relatório Section Styles */
.relatorio-section {
  background-color: #f8f9fa;
  min-height: calc(100vh - 250px);
}

.relatorio-section h2 {
  color: #2c3e50;
  font-weight: 700;
  font-size: 2rem;
}

.relatorio-section .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.relatorio-section .card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.relatorio-section .card-title {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1rem;
}

.relatorio-section .info-item {
  margin-bottom: 0.75rem;
}

.relatorio-section .info-item small {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.relatorio-section .info-item div {
  font-size: 0.95rem;
  color: #495057;
  font-weight: 500;
}

/* Chart containers */
.relatorio-section canvas {
  max-height: 250px;
}

/* Fazer Novo Balanço button */
#fazerNovoBalanco {
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#fazerNovoBalanco:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Loading Section Styles */
.loading-section {
  background-color: #f8f9fa;
  min-height: calc(100vh - 250px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-container {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.loading-container h3 {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.8rem;
}

.loading-container p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Robot Container */
.robot-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
}

.robot-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.robot-icon i {
  font-size: 2.5rem;
  color: #28a745;
}

/* Spinning Circle */
.spinning-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border: 4px solid transparent;
  border-top-color: #28a745;
  border-right-color: #28a745;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  z-index: 1;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Loading Steps */
.loading-steps {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.loading-step {
  background-color: white;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.5s ease forwards;
}

.loading-step i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.loading-step span {
  color: #6c757d;
  font-size: 0.9rem;
  text-align: left;
}

/* Staggered animation for each step */
#step1 {
  animation-delay: 0.3s;
}

#step2 {
  animation-delay: 0.8s;
}

#step3 {
  animation-delay: 1.3s;
}

#step4 {
  animation-delay: 1.8s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .loading-steps {
    flex-direction: column;
    align-items: center;
  }

  .loading-step {
    width: 100%;
    max-width: 300px;
  }
}
