/* Estilos para o overlay (o fundo escurecido) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Estilos para o conteúdo principal do modal */
.modal-content {
  background: #ffffff;
  padding: 24px 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Título do modal */
.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
  font-weight: 600;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

/* Grupo de formulário (label + input) */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

/* Estilos para os inputs e selects */
.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box; /* Garante que padding não afete a largura total */
}

.form-control:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.form-control.search-input {
    margin-bottom: 10px;
}

/* Estilos para a área de texto */
textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Contêiner para os botões de ação */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Estilos base para os botões */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

/* Botão primário (Salvar) */
.btn-primary {
  background-color: #4a90e2;
  color: white;
}

.btn-primary:hover {
  background-color: #357abd;
}

/* Botão secundário (Cancelar) */
.btn-secondary {
  background-color: #f0f2f5;
  color: #555;
}

.btn-secondary:hover {
  background-color: #e4e6e9;
}