/* Overlay escuro por trás */
#imageModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Card central da imagem */
#imageModalContent {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 1024px;
  height: 768px;
  max-height: 95vh;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#imageModalContent img {
  max-width: 1024px;
  max-height: 768px;
  width: 1024px;
  height: 768px;
  border-radius: 8px;
}

/* Botão de fechar */
#imageModalClose {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  font-weight: bold;
}

@media (max-width: 1100px) {
  #imageModalContent,
  #imageModalContent img {
    width: 90vw;
    height: auto;
    max-height: 90vh;
  }
}

/* Content box enhancements */
#conteudo-secoes .content-box {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

#conteudo-secoes .content-box:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

#conteudo-secoes .content-box .title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #007bff;
  display: inline-block;
}

/* Texto */
#conteudo-secoes .content-box .text.v2 p {
  margin-bottom: 10px;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

/* Enhanced image card wrapper */
#conteudo-secoes .image-card-wrapper {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#conteudo-secoes .image-card-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Imagem */
#conteudo-secoes .image-card-wrapper img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  display: block;
}

/* Enhanced amplify button */
#conteudo-secoes .image-card-wrapper a.ampliar {
  margin-top: 15px;
  font-size: 14px;
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid #007bff;
  border-radius: 25px;
  transition: all 0.3s ease;
  background: white;
}

#conteudo-secoes .image-card-wrapper a.ampliar:hover {
  background: #007bff;
  color: white;
  text-decoration: none;
  transform: scale(1.05);
}

#conteudo-secoes .image-card-wrapper a.ampliar i {
  margin-right: 5px;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Botão voltar */
.btn-voltar {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 20px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  margin-bottom: 15px !important;
  display: inline-block !important;
  text-decoration: none !important;
}

.btn-voltar:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
  text-decoration: none !important;
}

.btn-voltar i {
  margin-right: 8px;
}

/* Loading indicator */
#loading-indicator {
  display: none;
}

#loading-indicator .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Info card styles */
.info-card .card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.info-card .card-header {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border-radius: 12px 12px 0 0 !important;
  border: none;
  padding: 15px 20px;
}

.info-card .card-header h6 {
  margin: 0;
  font-weight: 600;
}

.info-card .card-body {
  padding: 20px;
}

.info-card .card-body li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-card .card-body li:last-child {
  border-bottom: none;
}

.info-card .card-body i {
  margin-right: 10px;
  width: 16px;
}

/* Breadcrumb improvements */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 15px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
}

.breadcrumb-item.active {
  color: #495057;
  font-weight: 600;
}

/* Step numbers */
.step-number {
  background: #007bff;
  color: white;
  padding: 2px 8px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  margin-right: 8px;
}

/* Alert styles */
.alert {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
}

.alert i {
  margin-right: 8px;
}

/* Action buttons */
.action-buttons {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.action-buttons .btn-group {
  gap: 10px;
}

.action-buttons .btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.action-buttons .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-buttons .btn i {
  margin-right: 5px;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .info-card {
    margin-top: 20px;
  }
  
  #conteudo-secoes .content-box {
    padding: 20px;
  }
  
  .breadcrumb {
    font-size: 14px;
  }
  
  .action-buttons .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .action-buttons .btn {
    margin-bottom: 5px;
  }
}
